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, setStrokePaint
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText
isVisible, paint, setVisible
getTransformContext, repaint, repaint
getUserObject, setUserObject
public 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 Figure
transform
in class BasicFigure
public void translate(double x, double y)
translate
in interface Figure
translate
in class BasicRectangle
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.