|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Canvas
Defines a common abstraction for implementations that manage the display. Canvas can be extended
for cartesian display or any kind. A Canvas with an XY (Cartesian) display field should
support the following properties:
| Method Summary | |
|---|---|
void |
addCanvasListener(CanvasListener listener)
Adds the given listener that will be notified when the state of this Canvas has changed. |
CanvasController |
getController()
Returns the controller that allows the programmer to modify the Canvas's properties. |
Object |
getRenderingHint(RenderingHints.Key hintKey)
Returns the rendering hint associated with the hint name. |
CanvasState |
getState()
Returns a copy of the current state of this Canvas. |
boolean |
isVisible(DirectPosition coordinate)
Returns true if the given coordinate is visible on this Canvas. |
void |
removeCanvasListener(CanvasListener listener)
Removes the given listener. |
void |
setRenderingHint(RenderingHints.Key hintKey,
Object hint)
Sets a rendering hint for implementation or platform specific rendering information. |
| Method Detail |
|---|
CanvasState getState()
Canvas. The object returned will
implement CanvasState or one of its subinterfaces, depending on the type
of canvas.
boolean isVisible(DirectPosition coordinate)
true if the given coordinate is visible on this Canvas.
coordinate - The coordinate to test for visibility.
true if the given coordinate is visible on this canvas.CanvasController getController()
Canvas's properties.
void setRenderingHint(RenderingHints.Key hintKey,
Object hint)
hintKey - The key of the hint.hint - The rendering hint.Object getRenderingHint(RenderingHints.Key hintKey)
hintKey - The key of the hint.
void addCanvasListener(CanvasListener listener)
Canvas has changed.
listener - The listener to add.void removeCanvasListener(CanvasListener listener)
listener - The listener to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||