public class ValuePortrayal2D extends RectanglePortrayal2D
Modifier and Type | Class and Description |
---|---|
static class |
ValuePortrayal2D.DoubleFilter |
static class |
ValuePortrayal2D.Filter |
static class |
ValuePortrayal2D.IntFilter |
filled, paint, scale
TYPE_HIT_OBJECT, TYPE_SELECTED_OBJECT
Constructor and Description |
---|
ValuePortrayal2D() |
ValuePortrayal2D(ValueGridPortrayal2D parent)
Deprecated.
|
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.
|
Inspector |
getInspector(LocationWrapper wrapper,
GUIState state)
Provide an inspector for an object.
|
java.lang.String |
getName(LocationWrapper wrapper)
Returns a static, one-line name for the given object that is useful for a human
to distinguish it from other objects.
|
java.lang.String |
getStatus(LocationWrapper wrapper)
Returns a simple, informative one-line description of the current status of the object,
which may change at any time to reflect how the object is changing.
|
void |
setParent(ValueGridPortrayal2D parent)
Deprecated.
does nothing now
|
hitObject
handleMouseEvent, setSelected
public ValuePortrayal2D()
public ValuePortrayal2D(ValueGridPortrayal2D parent)
public void setParent(ValueGridPortrayal2D parent)
public void draw(java.lang.Object object, java.awt.Graphics2D graphics, DrawInfo2D info)
Portrayal2D
draw
in interface Portrayal2D
draw
in class RectanglePortrayal2D
public Inspector getInspector(LocationWrapper wrapper, GUIState state)
Portrayal
getInspector
in interface Portrayal
getInspector
in class SimplePortrayal2D
public java.lang.String getStatus(LocationWrapper wrapper)
Portrayal
getStatus
in interface Portrayal
getStatus
in class SimplePortrayal2D
public java.lang.String getName(LocationWrapper wrapper)
Portrayal
getName
in interface Portrayal
getName
in class SimplePortrayal2D