|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IShapeCollection
Title: IJChart
Description: a chart library for the Java(tm) platform.
All elements in chart is aIChartShape
,
type is:title,legend,X-axis,Y-axis(possible multiple),main.
Each type need to define a separate class to store IChartShape
elements.
Copyright: Copyright (c) 2013
Company:
Method Summary | |
---|---|
void |
clearSelectedShapes()
Sets all shapes to unselected. |
void |
clearShapesListener()
Remove all the shapes of the listener. |
void |
draw(java.awt.Graphics2D g2)
Drawing all ChartShape in this collection. |
IChartShape |
findChartShape(java.awt.geom.Point2D point,
ChartShapeDrawType drawType)
Returns the IChartShape whose area contains the specified point. |
java.awt.geom.Rectangle2D |
getDrawArea()
Returns the draw area for all shapes. |
java.util.List |
getHotspotAreas(java.util.List drawTypes,
IAreaFragment fragment)
Returns the hotspot areas. |
boolean |
isDrawAreaContains(java.awt.geom.Point2D point)
Whether or not the draw area contains a point. |
void |
resetShapeIdSequence()
Reset the sequence of shape to 0. |
void |
setDrawArea(java.awt.geom.Rectangle2D drawArea)
For a series of graphics and their common belonging to a particular region, by recording the region, in dealing with the incident when the mouse to provide faster, no need to determine whether all the graphics are selected by the mouse, optional through this area To narrow the scope of the search. |
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. |
Method Detail |
---|
void setDrawArea(java.awt.geom.Rectangle2D drawArea)
drawArea
- Rectangle2D
The draw area for all shapes (null permitted).java.awt.geom.Rectangle2D getDrawArea()
boolean isDrawAreaContains(java.awt.geom.Point2D point)
point
- Point2D
The point (null not permitted).
IChartShape findChartShape(java.awt.geom.Point2D point, ChartShapeDrawType drawType)
IChartShape
whose area contains the specified point.
point
- Point2D
The point (null not permitted).drawType
- ChartShapeDrawType
The shape draw shape (null permitted).
void draw(java.awt.Graphics2D g2)
g2
- Graphics2D
The graphics device (null not permitted).void translate(double x, double y)
x
- double
The x coordinate.y
- double
The y coordinate.void clearShapesListener()
void resetShapeIdSequence()
void clearSelectedShapes()
java.util.List getHotspotAreas(java.util.List drawTypes, IAreaFragment fragment)
drawTypes
- List
The types of hotspot shape (null not permitted).fragment
- IAreaFragment
The IAreaFragment object (maybe null).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |