public class RectanglePortrayal2D extends AbstractShapePortrayal2D
filled, paint, scale
TYPE_HIT_OBJECT, TYPE_SELECTED_OBJECT
Constructor and Description |
---|
RectanglePortrayal2D() |
RectanglePortrayal2D(double scale) |
RectanglePortrayal2D(double scale,
boolean filled) |
RectanglePortrayal2D(java.awt.Paint paint) |
RectanglePortrayal2D(java.awt.Paint paint,
boolean filled) |
RectanglePortrayal2D(java.awt.Paint paint,
double scale) |
RectanglePortrayal2D(java.awt.Paint paint,
double scale,
boolean filled) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.lang.Object object,
java.awt.Graphics2D graphics,
DrawInfo2D info)
Draw a the given object with an origin at (info.draw.x, info.draw.y),
and with the coordinate system scaled by so that 1 unit is in the x and
y directions are equal to info.draw.width and info.draw.height respectively
in pixels.
|
boolean |
hitObject(java.lang.Object object,
DrawInfo2D range)
If drawing area intersects selected area, add last portrayed object to the bag
|
getInspector, getName, getStatus, handleMouseEvent, setSelected
public RectanglePortrayal2D()
public RectanglePortrayal2D(java.awt.Paint paint)
public RectanglePortrayal2D(double scale)
public RectanglePortrayal2D(java.awt.Paint paint, double scale)
public RectanglePortrayal2D(java.awt.Paint paint, boolean filled)
public RectanglePortrayal2D(double scale, boolean filled)
public RectanglePortrayal2D(java.awt.Paint paint, double scale, boolean filled)
public boolean hitObject(java.lang.Object object, DrawInfo2D range)
hitObject
in class SimplePortrayal2D
public void draw(java.lang.Object object, java.awt.Graphics2D graphics, DrawInfo2D info)
Portrayal2D
draw
in interface Portrayal2D
draw
in class SimplePortrayal2D