public static class ConnectorTutorial.SitedRectangle extends BasicRectangle
Constructor and Description |
---|
SitedRectangle(double x,
double y,
double width,
double height,
java.awt.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(java.awt.geom.AffineTransform at)
Update the geometry
|
void |
translate(double x,
double y)
Update the geometry
|
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getOrigin, getRotation, getShape, getStrokePaint, hit, isCentered, paint, setCentered, setComposite, setDashArray, setFillPaint, setLineWidth, setPrototypeShape, setRotation, setShape, setStroke, setStrokePaint
contains, getInteractor, getLayer, 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, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText
isVisible, paint, setVisible
getTransformContext, repaint, repaint
getUserObject, setUserObject
public SitedRectangle(double x, double y, double width, double height, java.awt.Color color)
public Site getN()
public Site getS()
public Site getE()
public Site getW()
public void transform(java.awt.geom.AffineTransform at)
transform
in interface Figure
transform
in class BasicFigure
at
- The transform to be used.public void translate(double x, double y)
translate
in interface Figure
translate
in class BasicRectangle
x
- The x value to be moved.y
- The y value to be moved.