public class ConnectorTutorial.SitedRectangle extends BasicRectangle
| Constructor and Description |
|---|
SitedRectangle(double x,
double y,
double width,
double height,
Color color)
Create a new instance of this figure.
|
| Modifier and Type | Method and Description |
|---|---|
Site |
getE()
Get the east site.
|
Site |
getN()
Get the north site.
|
Site |
getS()
Get the south site.
|
Site |
getW()
Get the west site.
|
void |
transform(AffineTransform at)
Update the geometry
|
void |
translate(double x,
double y)
Update the geometry
|
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getShape, getStrokePaint, hit, paint, setComposite, setDashArray, setFillPaint, setLineWidth, setShape, setStroke, setStrokePaintcontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipTextisVisible, paint, setVisiblegetTransformContext, repaint, repaintgetUserObject, setUserObjectpublic SitedRectangle(double x,
double y,
double width,
double height,
Color color)
public Site getN()
public Site getS()
public Site getE()
public Site getW()
public void transform(AffineTransform at)
transform in interface Figuretransform in class BasicFigurepublic void translate(double x,
double y)
translate in interface Figuretranslate in class BasicRectangleCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.