Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

diva.canvas
Interface CanvasComponent

All Known Subinterfaces:
Connector, EventAcceptor, Figure, FigureContainer, GrabHandle, ShapedFigure, Terminal, VisibleComponent
All Known Implementing Classes:
AbstractConnector, AbstractFigure, AbstractFigureContainer, BasicFigure, BasicGrabHandle, CanvasLayer, CanvasPane, EventLayer, FigureLayer, GridLayer, MoveHandle, OverlayLayer, PaneWrapper, StraightTerminal, TerminalFigure

public interface CanvasComponent

A CanvasComponent is an object that can be inserted into the display tree of a JCanvas. The tree is rooted by an instance of CanvasPane, then consists of CanvasLayers, Figures, and other kinds of recursively-structured CanvasComponents.

Version:
$Id: CanvasComponent.java,v 1.9 2005年07月08日 19:54:44 cxh Exp $
Author:
John Reekie
Accepted Rating:
Yellow

Method Summary
CanvasComponent getParent()
Return the parent of this component.
TransformContext getTransformContext()
Return the transform context of the component.
void repaint()
Schedule a repaint of the component.
void repaint(DamageRegion d)
Accept notification that a repaint has occurred somewhere in the tree below this component.

Method Detail

getParent

public CanvasComponent getParent()
Return the parent of this component. Return null if the component does not have a parent.


getTransformContext

public TransformContext getTransformContext()
Return the transform context of the component. If the component has its own transform context, this method should return it, otherwise it should return the transform context of its parent.


repaint

public void repaint()
Schedule a repaint of the component. This should be called after performing modifications on the component.


repaint

public void repaint(DamageRegion d)
Accept notification that a repaint has occurred somewhere in the tree below this component. The component must clear any cached data that depends on its children and forward the notification upwards.


Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /