|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChartItem
Name: ChartItem
Description: Interface for chart items.
Method Summary | |
---|---|
void |
alignItem(Rectangle2D viewport)
Aligns the item inside the given viewport. |
void |
draw(Rectangle2D viewport,
Graphics2D graphics)
Draws the item to the given graphic instance. |
double |
getHeight(Rectangle2D viewport,
Graphics2D graphics)
Gets the height of the item box. |
Rectangle2D |
getOutputArea(Rectangle2D viewport,
Graphics2D graphics)
Gets the output area ot the chart item. |
ChartItemPosition |
getPosition()
Gets the position of the chart item. |
double |
getWidth(Rectangle2D viewport,
Graphics2D graphics)
Gets the width of the item box. |
void |
move(double x,
double y)
Moves the item position. |
void |
moveTo(double x,
double y)
Moves the item to the desired position. |
void |
resetMetrics()
Resets the calculated metrics to enforce re-calculation of the item's output area. |
Method Detail |
---|
ChartItemPosition getPosition()
Rectangle2D getOutputArea(Rectangle2D viewport, Graphics2D graphics)
viewport
- The viewport for chart output.graphics
- The graphics object, needed to calculate the metrics.
void resetMetrics()
void draw(Rectangle2D viewport, Graphics2D graphics)
viewport
- The viewport for chart output.graphics
- The graphics object, used for output.double getWidth(Rectangle2D viewport, Graphics2D graphics)
viewport
- The viewport for chart output.graphics
- The graphics object, used for output.
double getHeight(Rectangle2D viewport, Graphics2D graphics)
viewport
- The viewport for chart output.graphics
- The graphics object, used for output.
void move(double x, double y)
x
- The number of pixels by which to move the item horizontally.y
- The number of pixels by which to move the item vertically.void moveTo(double x, double y)
x
- The new horizontal position.y
- The new vertical position.void alignItem(Rectangle2D viewport)
viewport
- The area to place the item.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |