public final class RectangleView extends AbstractSingleColorFillView
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() |
addMouseChangedListener, isFilled, removeMouseChangedListener, setFilled, setMouseManager
getColor, setColor
addRotation, externalToInternalCoordinates, getRotation, internalToExternalCoordinates, move, setRotation
getPosition, getPositionX, getPositionY, move, setPosition, setPosition, setPositionX, setPositionY
addDrawableChangeListener, fireChanged, getParent, globalToInternalCoordinates, init, internalToGlobalCoordinates, removeDrawableChangeListener, setParent
public 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)
AbstractDrawableMovableRotatableObject
g2d
, 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 AbstractSingleColorView
public boolean containsInternal(Position position)
containsInternal
in interface MouseEventDrawableSource
containsInternal
in class AbstractSingleColorFillView
public java.lang.String toString()
toString
in class AbstractSingleColorFillView