|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.chartinfo.AbstractShapeCollection
com.ijchart.xychart.chartinfo.LegendShapeCollection
public class LegendShapeCollection
Title: IJChart
Description: a chart library for the Java(tm) platform.
Collection to be used to store the shapes in legend area.Copyright: Copyright (c) 2013
Company:
Field Summary |
---|
Fields inherited from class com.ijchart.xychart.chartinfo.AbstractShapeCollection |
---|
shapeIdSequence |
Constructor Summary | |
---|---|
LegendShapeCollection()
No argument constructor. |
Method Summary | |
---|---|
void |
addLegendShape(IChartShape shape)
Add a legend shape. |
void |
clearLegendShapes()
Remove all legend shapes. |
void |
clearSelectedShapes()
Sets all shapes to unselected. |
void |
clearShapesListener()
Remove all the shapes of the listener. |
java.lang.Object |
clone()
Returns a clone of the axis. |
void |
draw(java.awt.Graphics2D g2)
Drawing all ChartShape in this collection. |
boolean |
equals(java.lang.Object obj)
Tests this axis for equality with another object. |
IChartShape |
findChartShape(java.awt.geom.Point2D point,
ChartShapeDrawType drawType)
Returns the IChartShape whose area contains the specified point. |
IChartShape |
getBorderShape()
The border shape. |
java.util.List |
getHotspotAreas(java.util.List drawTypes,
IAreaFragment fragment)
Returns the hotspot areas. |
java.util.List |
getLegendAxisShapeCollection()
Returns the list of axis shape collection and is unmodifiable. |
java.util.List |
getLegendShapes()
Returns the list of legend shapes and is unmodifiable. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setBorderShape(IChartShape borderShape)
Sets the border shape. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
translate(double x,
double y)
Translates the origin of the all shape in this chart to the point (x, y) in the current coordinate system. |
Methods inherited from class com.ijchart.xychart.chartinfo.AbstractShapeCollection |
---|
addChangeListener, addHotspotArea, addHotspotArea, chartShapeChanged, clearSelectedShape, clearSelectedShape, clearShapesListener, clip, draw, findShape, fireChartShapeChanged, getDrawArea, hasListener, isDrawAreaContains, notifyListeners, removeAllChangeListener, removeChangeListener, removeShapesListener, resetShapeIdSequence, restoreClip, setDrawArea, translate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LegendShapeCollection()
Method Detail |
---|
public void setBorderShape(IChartShape borderShape)
borderShape
- IChartShape
The border shape (null permitted).public IChartShape getBorderShape()
public void addLegendShape(IChartShape shape)
shape
- IChartShape
A legend shape (null permitted).public java.util.List getLegendShapes()
public void clearLegendShapes()
public java.util.List getLegendAxisShapeCollection()
public void draw(java.awt.Graphics2D g2)
draw
in interface IShapeCollection
g2
- Graphics2D
The graphics device (null not permitted).public void translate(double x, double y)
translate
in interface IShapeCollection
translate
in class AbstractShapeCollection
x
- double
The x coordinate.y
- double
The y coordinate.public void clearShapesListener()
clearShapesListener
in interface IShapeCollection
public void clearSelectedShapes()
clearSelectedShapes
in interface IShapeCollection
public IChartShape findChartShape(java.awt.geom.Point2D point, ChartShapeDrawType drawType)
IChartShape
whose area contains the specified point.
findChartShape
in interface IShapeCollection
point
- Point2D
The point (null not permitted).drawType
- ChartShapeDrawType
The shape draw shape (null permitted).
public java.util.List getHotspotAreas(java.util.List drawTypes, IAreaFragment fragment)
getHotspotAreas
in interface IShapeCollection
getHotspotAreas
in class AbstractShapeCollection
drawTypes
- List
The types of hotspot shape.fragment
- IAreaFragment
The IAreaFragment
object (maybe null).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractShapeCollection
java.lang.CloneNotSupportedException
- if some component of the axis does
not support cloning.public int hashCode()
hashCode
in class AbstractShapeCollection
public boolean equals(java.lang.Object obj)
equals
in class AbstractShapeCollection
obj
-
The object (null permitted).
public java.lang.String toString()
toString
in class AbstractShapeCollection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |