public final class RectangleView extends AbstractSingleColorFillView implements MouseEventSource
DEFAULT_COLOR| Constructor and Description |
|---|
RectangleView(GroupView parent,
double centerX,
double centerY,
double width,
double height) |
RectangleView(GroupView parent,
double centerX,
double centerY,
double width,
double height,
double angle,
java.awt.Color color) |
RectangleView(GroupView parent,
double centerX,
double centerY,
double width,
double height,
double angle,
java.awt.Color color,
boolean fill) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsInternal(Position position) |
void |
draw(java.awt.Graphics2D g2d)
Vykreslenie objektu.
|
double |
getHeigh()
Vrati vysku obdlznika
|
double |
getWidth()
Vrati sirku obdlznika
|
java.lang.String |
toString() |
addMouseListener, addMouseMotionListener, addMouseWheelListener, isFilled, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, setFilled, setMouseManagergetColor, setColoraddRotation, externalToInternalCoordinates, getRotation, internalToExternalCoordinates, move, setRotationgetPosition, getPositionX, getPositionY, move, setPosition, setPosition, setPositionX, setPositionYaddDrawableChangeListener, fireChanged, getParent, globalToInternalCoordinates, init, internalToGlobalCoordinates, removeDrawableChangeListener, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddMouseListener, addMouseMotionListener, addMouseWheelListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, setMouseManagerpublic RectangleView(GroupView parent, double centerX, double centerY, double width, double height, double angle, java.awt.Color color, boolean fill)
public RectangleView(GroupView parent, double centerX, double centerY, double width, double height, double angle, java.awt.Color color)
public RectangleView(GroupView parent, double centerX, double centerY, double width, double height)
public double getWidth()
public double getHeigh()
public void draw(java.awt.Graphics2D g2d)
AbstractDrawableMovableRotatableObjectg2d, takze
1) g2d obsahuje defaultne stavove informacie
2) stavove informacie v g2d nie je potrebne vratit do povodneho stavu.
Metoda posunie stred suradnicovej sustavy g2d podla pozicie objektu.
Metoda natoci suradnicovu sustavu g2d podla natocenia objektu.draw in class AbstractSingleColorViewpublic boolean containsInternal(Position position)
containsInternal in interface MouseEventSourcecontainsInternal in class AbstractSingleColorFillViewpublic java.lang.String toString()
toString in class AbstractSingleColorFillView