public class OvalPortrayal2D extends AbstractShapePortrayal2D
Modifier and Type | Field and Description |
---|---|
protected double |
offset |
filled, paint, scale
TYPE_HIT_OBJECT, TYPE_SELECTED_OBJECT
Constructor and Description |
---|
OvalPortrayal2D() |
OvalPortrayal2D(double scale) |
OvalPortrayal2D(double scale,
boolean filled) |
OvalPortrayal2D(java.awt.Paint paint) |
OvalPortrayal2D(java.awt.Paint paint,
boolean filled) |
OvalPortrayal2D(java.awt.Paint paint,
double scale) |
OvalPortrayal2D(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 OvalPortrayal2D()
public OvalPortrayal2D(java.awt.Paint paint)
public OvalPortrayal2D(double scale)
public OvalPortrayal2D(java.awt.Paint paint, double scale)
public OvalPortrayal2D(java.awt.Paint paint, boolean filled)
public OvalPortrayal2D(double scale, boolean filled)
public OvalPortrayal2D(java.awt.Paint paint, double scale, boolean filled)
public void draw(java.lang.Object object, java.awt.Graphics2D graphics, DrawInfo2D info)
Portrayal2D
draw
in interface Portrayal2D
draw
in class SimplePortrayal2D
public boolean hitObject(java.lang.Object object, DrawInfo2D range)
hitObject
in class SimplePortrayal2D