|
|||||||||
| 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.ChartShapeCollection
public class ChartShapeCollection
Title: IJChart
Description: a chart library for the Java(tm) platform.
All elements in chart is aIChartShape ,
type is:title,legend,plot.
Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static double |
DEFAULT_SCALE_X_AXIS
The default scale value of x-axis. |
static double |
DEFAULT_SCALE_Y_AXIS
The default scale value of y-axis. |
| Fields inherited from class com.ijchart.xychart.chartinfo.AbstractShapeCollection |
|---|
shapeIdSequence |
| Constructor Summary | |
|---|---|
ChartShapeCollection()
No argument constructor. |
|
| Method Summary | |
|---|---|
void |
addPlotShapes(PlotShapeCollection plotShapes)
Adds the plot shapes collection. |
void |
addTitleShapes(TitleShapeCollection titleShape)
Add a title shape. |
void |
chartShapeChanged(ChartShapeChangeEvent event)
Receives notification of an IChartShape change event. |
void |
clearPlotShapes()
Remove all plots shape collection. |
void |
clearSelectedShapes()
Sets all shapes to unselected. |
void |
clearShapesListener()
Remove all the shapes of the listener. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
void |
draw(java.awt.Graphics2D g2)
Drawing all ChartShape in this collection. |
boolean |
equals(java.lang.Object obj)
Override equals method. |
IChartShape |
findChartShape(java.awt.geom.Point2D point,
ChartShapeDrawType drawType)
Returns the IChartShape whose area contains the specified point. |
void |
forceChartChanged()
Sets the boolean flag that the chart is changed. |
java.util.Collection |
getAllPlotShapes()
Returns the shapes collection of all plot. |
IChartShape |
getBackgroundImageShape()
Returns the background image shape. |
IChartShape |
getBackgroundShape()
Returns the background shape. |
IChartShape |
getBorderShape()
The border shape. |
IChangeChartShape |
getChangeChartShape()
Returns the shape change object. |
java.util.List |
getHotspotAreas(java.util.List drawTypes,
IAreaFragment fragment)
Returns the hotspot areas. |
IJChart |
getIJChart()
Returns the IJChart object. |
LegendShapeCollection |
getLegendShapes()
Returns the legend shapes collection. |
PlotShapeCollection |
getPlotShapes()
Returns the first plot shapes collection. |
PlotShapeCollection |
getPlotShapes(int index)
Returns the plot shapes collection of the specified index. |
double |
getScaleX()
Returns the scale value of x-axis. |
double |
getScaleY()
Returns the scale value of y-axis. |
TitleShapeCollection |
getTitleShapes()
Returns the first title shapes collection. |
TitleShapeCollection |
getTitleShapes(int index)
Returns the title shapes collection of the specified index. |
java.util.List |
getTitleShapesList()
Returns the list of title shapes and is unmodifiable. |
int |
hashCode()
Override hasCode method. |
boolean |
isShapeChanged()
Returns the boolean flag that controls whether or not the shape is changed. |
void |
setBackgroundImageShape(IChartShape shape)
Sets the background image shape. |
void |
setBackgroundShape(IChartShape shape)
Sets the background shape. |
void |
setBorderShape(IChartShape borderShape)
Sets the border shape. |
void |
setChangeChartShape(IChangeChartShape change)
Sets the shape change object. |
void |
setIJChart(IJChart chart)
Sets the IJChart object. |
void |
setLegendShapes(LegendShapeCollection legendShapes)
Sets the legend shapes collection. |
void |
setScaleX(double scale)
Sets the scale value of x-axis. |
void |
setScaleY(double scale)
Sets the scale value of y-axis. |
void |
setShapeChanged(boolean flag)
Sets the boolean flag that controls whether or not the shape is changed. |
java.lang.String |
toString()
Override toString method. |
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, 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 |
| Field Detail |
|---|
public static final double DEFAULT_SCALE_X_AXIS
public static final double DEFAULT_SCALE_Y_AXIS
| Constructor Detail |
|---|
public ChartShapeCollection()
| Method Detail |
|---|
public IChartShape getBackgroundShape()
public void setBackgroundShape(IChartShape shape)
shape - IChartShape
The background shape (null permitted).public IChartShape getBackgroundImageShape()
public void setBackgroundImageShape(IChartShape shape)
shape - IChartShape
The background image shape (null permitted).public void setBorderShape(IChartShape borderShape)
borderShape - IChartShape
The border shape (null permitted).public IChartShape getBorderShape()
public java.util.List getTitleShapesList()
public void addTitleShapes(TitleShapeCollection titleShape)
titleShape - TitleShapeCollection
A title shape (null permitted).public TitleShapeCollection getTitleShapes()
public TitleShapeCollection getTitleShapes(int index)
index - int
The index.
public LegendShapeCollection getLegendShapes()
public void setLegendShapes(LegendShapeCollection legendShapes)
legendShapes - LegendShapeCollection
The legend shapes collection (null permitted).public void addPlotShapes(PlotShapeCollection plotShapes)
plotShapes - PlotShapeCollection
The plot shapes collection (null permitted).public PlotShapeCollection getPlotShapes()
public PlotShapeCollection getPlotShapes(int index)
index - int
The index.
public java.util.Collection getAllPlotShapes()
public void clearPlotShapes()
public IJChart getIJChart()
public void setIJChart(IJChart chart)
chart - IJChart
The IJChart (null not permitted).public boolean isShapeChanged()
public void setShapeChanged(boolean flag)
flag - boolean
A boolean.public void forceChartChanged()
public double getScaleX()
public void setScaleX(double scale)
scale - double
The scale value.public double getScaleY()
public void setScaleY(double scale)
scale - double
The scale value.public IChangeChartShape getChangeChartShape()
public void setChangeChartShape(IChangeChartShape change)
change - IChangeChartShape
The shape change object.public void draw(java.awt.Graphics2D g2)
draw in interface IShapeCollectiong2 - Graphics2D
The graphics device (null not permitted).public void chartShapeChanged(ChartShapeChangeEvent event)
IChartShape change event.
chartShapeChanged in interface IChartShapeChangeListenerchartShapeChanged in class AbstractShapeCollectionevent - ChartShapeChangeEvent
Information about the event.
public void translate(double x,
double y)
translate in interface IShapeCollectiontranslate in class AbstractShapeCollectionx - double
The x coordinate.y - double
The y coordinate.public void clearShapesListener()
clearShapesListener in interface IShapeCollection
public IChartShape findChartShape(java.awt.geom.Point2D point,
ChartShapeDrawType drawType)
IChartShape whose area contains the specified point.
findChartShape in interface IShapeCollectionpoint - 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 IShapeCollectiongetHotspotAreas in class AbstractShapeCollectiondrawTypes - List
The types of hotspot shape.fragment - IAreaFragment
The IAreaFragment object (maybe null).
public void clearSelectedShapes()
clearSelectedShapes in interface IShapeCollectionpublic int hashCode()
hashCode in class AbstractShapeCollectionpublic boolean equals(java.lang.Object obj)
equals in class AbstractShapeCollectionobj - Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractShapeCollectionjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class AbstractShapeCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||