|
|||||||||
| 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.AxisShapeCollection
public class AxisShapeCollection
Title: IJChart
Description: a chart library for the Java(tm) platform.
Collection to be used to store the shapes in axis.Copyright: Copyright (c) 2013
Company:
| Field Summary |
|---|
| Fields inherited from class com.ijchart.xychart.chartinfo.AbstractShapeCollection |
|---|
shapeIdSequence |
| Constructor Summary | |
|---|---|
AxisShapeCollection()
No argument constructor. |
|
| Method Summary | |
|---|---|
void |
addAxisLabelShape(IChartShape axisLabelShape)
Add an axis label shape. |
void |
addAxisLine3DShape(IChartShape line3DShape)
Add an axis line 3D area shape. |
void |
addAxisLineShape(IChartShape axisLineShape)
Add an axis line shape. |
void |
addTickLabelShape(IChartShape labelShape)
Add an axis tick label shape. |
void |
addTickMarkShape(IChartShape markShape)
Add an axis tick mark shape. |
void |
clearAxisLabelShapes()
Remove all axis label shapes. |
void |
clearAxisLine3DShapes()
Remove all axis line 3D area shapes. |
void |
clearAxisLineShapes()
Remove all axis line shapes. |
void |
clearSelectedShapes()
Sets all shapes to unselected. |
void |
clearShapesListener()
Remove all the shapes of the listener. |
void |
clearTickMarkShapes()
Remove all tick mark shapes. |
java.lang.Object |
clone()
Returns a clone of the axis. |
void |
copyShapes(AxisShapeCollection axisShapes)
Add all shapes of a AxisShapeCollection to this object. |
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. |
java.util.List |
getAxisLabelShapes()
Returns the list of axis label shapes and is unmodifiable. |
java.util.List |
getAxisLine3DShapes()
Returns the list of axis line 3D area and is unmodifiable. |
java.util.List |
getAxisLineShapes()
Returns the list of axis line shape and is unmodifiable. |
RectangleEdge |
getEdge()
Returns the axis edge. |
java.util.List |
getHotspotAreas(java.util.List drawTypes,
IAreaFragment fragment)
Returns the hotspot areas. |
java.util.List |
getTickLabelShapes()
Returns the list of axis tick label shapes and is unmodifiable. |
java.util.List |
getTickMarkShapes()
Returns the list of axis tick mark shapes and is unmodifiable. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setEdge(RectangleEdge edge)
Sets the axis edge. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
translate(double x,
double y)
Translates the origin of the all shapes(not include axisLine3DShape) 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 AxisShapeCollection()
| Method Detail |
|---|
public RectangleEdge getEdge()
public void setEdge(RectangleEdge edge)
edge - RectangleEdge
The axis edge.public java.util.List getAxisLabelShapes()
public void clearAxisLabelShapes()
public void addAxisLabelShape(IChartShape axisLabelShape)
axisLabelShape - IChartShape
The axis label shape (null permitted).public void addAxisLineShape(IChartShape axisLineShape)
axisLineShape - IChartShape
The axis line shape (null permitted).public java.util.List getAxisLineShapes()
public void clearAxisLineShapes()
public void addAxisLine3DShape(IChartShape line3DShape)
line3DShape - IChartShape
The axis line 3D area (null permitted).public java.util.List getAxisLine3DShapes()
public void clearAxisLine3DShapes()
public void addTickLabelShape(IChartShape labelShape)
labelShape - IChartShape
An axis tick label shape (null permitted).public java.util.List getTickLabelShapes()
public void addTickMarkShape(IChartShape markShape)
markShape - IChartShape
An axis tick mark shape (null permitted).public java.util.List getTickMarkShapes()
public void clearTickMarkShapes()
public void draw(java.awt.Graphics2D g2)
draw in interface IShapeCollectiong2 - Graphics2D
The graphics device (null not permitted).
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 IShapeCollectionpublic void clearSelectedShapes()
clearSelectedShapes in interface IShapeCollectionpublic void copyShapes(AxisShapeCollection axisShapes)
axisShapes - AxisShapeCollection
The AxisShapeCollection (null permitted).
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 java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractShapeCollectionjava.lang.CloneNotSupportedException - if some component of the axis does
not support cloning.public int hashCode()
hashCode in class AbstractShapeCollectionpublic boolean equals(java.lang.Object obj)
equals in class AbstractShapeCollectionobj -
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 | ||||||||