diva.canvas
Interface CanvasComponent
- All Known Subinterfaces:
- Connector, DrawFigure, EventAcceptor, Figure, FigureContainer, GrabHandle, ShapedFigure, Terminal, VisibleComponent
- All Known Implementing Classes:
- AbstractConnector, AbstractFigure, AbstractFigureContainer, ArcConnector, ArcManipulator, BackgroundedCompositeFigure, BasicCanvasPane, BasicEllipse, BasicFigure, BasicGrabHandle, BasicHighlighter, BasicRectangle, BoundsManipulator, BubblePane, CanvasLayer, CanvasPane, CircleManipulator, CompositeFigure, ConnectorManipulator, ConnectorTutorial.SitedRectangle, DrawBasicFigure, DrawCompositeFigure, DrawEllipseFigure, DrawFreehandFigure, DrawGraphicsPane, DrawLabelFigure, DrawLineFigure, DrawPathFigure, DrawPolygonFigure, DrawPolylineFigure, DrawRectangleFigure, EventLayer, FigureDecorator, FigureLayer, FigureTutorial.CustomRectangle, FigureWrapper, GraphicsPane, GraphPane, GridLayer, IconFigure, ImageFigure, ImageFigure, ImageFigureGroup, ImageLabel, ImageLayer, InterpolatedCurveFigure, InterpolatedCurveManipulator, LabeledImageFigure, LabelFigure, LabelWrapper, ManhattanConnector, Manipulator, MoveHandle, NavigatorPane, OverlayLayer, PaintedFigure, PaintedFigure, PaneWrapper, PathFigure, PathManipulator, RangeManipulator, RootPane, SelectionPane, SimplePane, SketchLayer, SketchPane, SketchTest2.LocalSketchPane, SketchTest3.LocalSketchPane, StateBubble, StraightConnector, StraightTerminal, SwingWrapper, SymbolLayer, TerminalFigure, TracePane, TransformedFigureTutorial.CloudFigure, TypedDecorator, VectorFigure, WarpImageFigure, XRangeFigure
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:
- $Revision: 1.5 $
- Author:
- John Reekie
getParent
CanvasComponent getParent()
- Return the parent of this component. Return null if the component
does not have a parent.
getTransformContext
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
void repaint()
- Schedule a repaint of the component. This should be called after
performing modifications on the component.
repaint
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.
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.