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.toolbox
Class RoundedRectangle

java.lang.Object
 extended bydiva.canvas.AbstractFigure
 extended bydiva.canvas.toolbox.BasicFigure
 extended bydiva.canvas.toolbox.RoundedRectangle
All Implemented Interfaces:
CanvasComponent, Figure, ShapedFigure, UserObjectContainer, VisibleComponent

public class RoundedRectangle
extends BasicFigure

A figure that displays as a rounded rectangle. This is a convenience class for creating rectangles. It inherits from BasicFigure, and so contains a single RoundRectangle2D as its shape. It provides a useful set of constructors.

Since:
Ptolemy II 6.0
Version:
$Id: RoundedRectangle.java,v 1.4.2.2 2006年12月30日 22:24:25 cxh Exp $
Author:
Edward A. Lee

Constructor Summary
RoundedRectangle(double x, double y, double width, double height, java.awt.Paint fill, float lineWidth, double arcWidth, double arcHeight)
Create a new rectangle with the given origin, size, fill, outline width, arc width, and arc height.
Method Summary
void translate(double x, double y)
Translate the rectangle the given distance
Methods inherited from class diva.canvas.toolbox.BasicFigure
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getOrigin, getShape, getStrokePaint, hit, isCentered, paint, setCentered, setComposite, setDashArray, setFillPaint, setLineWidth, setPrototypeShape, setShape, setStroke, setStrokePaint, transform
Methods inherited from class diva.canvas.AbstractFigure
contains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface diva.canvas.Figure
contains, getInteractor, getLayer, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint, setVisible
Methods inherited from interface diva.canvas.CanvasComponent
getTransformContext, repaint, repaint
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject

Constructor Detail

RoundedRectangle

public RoundedRectangle(double x,
 double y,
 double width,
 double height,
 java.awt.Paint fill,
 float lineWidth,
 double arcWidth,
 double arcHeight)
Create a new rectangle with the given origin, size, fill, outline width, arc width, and arc height.

Method Detail

translate

public void translate(double x,
 double y)
Translate the rectangle the given distance

Specified by:
translate in interface Figure
Overrides:
translate in class AbstractFigure

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