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 VisibleComponent

All Superinterfaces:
CanvasComponent
All Known Subinterfaces:
Connector, Figure, FigureContainer, GrabHandle, ShapedFigure, Terminal
All Known Implementing Classes:
AbstractConnector, AbstractFigure, AbstractFigureContainer, BasicFigure, BasicGrabHandle, FigureLayer, GridLayer, MoveHandle, OverlayLayer, StraightTerminal, TerminalFigure

public interface VisibleComponent
extends CanvasComponent

A visible component is a canvas component that is painted onto a graphics context. This interface contains a small set of methods that are required by any such object. It is also used as a tagging interface so that paint routines can tell whether certain objects want to be painted or not.

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

Method Summary
boolean isVisible()
Test the visibility flag of this object.
void paint(java.awt.Graphics2D g2d)
Paint this object onto a 2D graphics object.
void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D region)
Paint this object onto a 2D graphics object, within the given region.
void setVisible(boolean flag)
Set the visibility flag of this object.
Methods inherited from interface diva.canvas.CanvasComponent
getParent, getTransformContext, repaint, repaint

Method Detail

isVisible

public boolean isVisible()
Test the visibility flag of this object. Note that this flag does not indicate whether the object is actually visible on the screen, as one of its ancestors may not be visible.


paint

public void paint(java.awt.Graphics2D g2d)
Paint this object onto a 2D graphics object. Implementors should first test if the visibility flag is set, and paint the object if it is.


paint

public void paint(java.awt.Graphics2D g,
 java.awt.geom.Rectangle2D region)
Paint this object onto a 2D graphics object, within the given region. Implementors should first test if the visibility flag is set, and paint the object if it is. The provided region can be used to optimize the paint, but implementors can assume that the clip region is correctly set beforehand.


setVisible

public void setVisible(boolean flag)
Set the visibility flag of this object. If the flag is false, then the object will not be painted on the screen.


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 によって変換されたページ (->オリジナル) /