public class FastHexaObjectGridPortrayal2D extends HexaObjectGridPortrayal2D
ObjectGridPortrayal2D.Message
locationToPass
DEFAULT, DONT_USE_BUFFER, USE_BUFFER
classPortrayals, field, immutableField, portrayalForAll, portrayalForNonNull, portrayalForNull, portrayalForRemainder, portrayals
Constructor and Description |
---|
FastHexaObjectGridPortrayal2D()
Equivalent to FastHexaObjectGridPortrayal2D(false);
|
FastHexaObjectGridPortrayal2D(boolean immutableField)
If immutableField is true, we presume that the grid doesn't change.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue(java.lang.Object obj)
Override this as necessary to map the provided object into a double value.
|
void |
draw(java.lang.Object object,
java.awt.Graphics2D graphics,
DrawInfo2D info)
Draws the field with its origin at [info.draw.x,info.draw.y], relative to the
scaled coordinate system defined by [info.draw.width,info.draw.height].
|
int |
getBuffering()
Returns whether or not the FieldPortrayal2D will use a buffering "trick" to draw quickly.
|
ColorMap |
getMap() |
boolean |
isDirtyField() |
void |
reset()
Deprecated.
Resets the underlying FastHexaValueGridPortrayal2D.
|
void |
setBuffering(int val)
Sets whether or not the FieldPortrayal2D will use a buffering "trick" to draw quickly.
|
void |
setDirtyField(boolean val) |
void |
setField(java.lang.Object field)
Sets the field, and sets the dirtyField flag to true.
|
void |
setImmutableField(boolean immutableField)
Specifies that the underlying field is (or is not) to be assumed unchanging --
thus there's no reason to update once we're created.
|
void |
setMap(ColorMap m) |
getLocationPosition, getPositionLocation, getScale, hitOrDraw, setBorder, setGridLines
getDefaultNullPortrayal, getDefaultPortrayal, getObjectLocation, getWrapper, setBorderColor, setBorderLineFraction, setBorderLineMinMaxWidth, setGridColor, setGridLineFraction, setGridLineMinMaxWidth, setGridMinSpacing, setGridModulus, setSelected
getClipLocation, getObjectPosition, getRelativeObjectPosition, hitObjects, setObjectPosition
getField, getInspector, getName, getPortrayalForAll, getPortrayalForNonNull, getPortrayalForNull, getPortrayalForObject, getPortrayalForRemainder, getStatus, isImmutableField, setObjectLocation, setPortrayalForAll, setPortrayalForClass, setPortrayalForNonNull, setPortrayalForNull, setPortrayalForObject, setPortrayalForRemainder, setSelected
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInspector, getName, getStatus
public FastHexaObjectGridPortrayal2D(boolean immutableField)
public FastHexaObjectGridPortrayal2D()
public void setImmutableField(boolean immutableField)
FieldPortrayal
setImmutableField
in class FieldPortrayal
public void setField(java.lang.Object field)
FieldPortrayal
setField
in class ObjectGridPortrayal2D
public double doubleValue(java.lang.Object obj)
The default form of this function is:
public void reset()
reset
in class FieldPortrayal
public void setDirtyField(boolean val)
setDirtyField
in class FieldPortrayal
public boolean isDirtyField()
isDirtyField
in class FieldPortrayal
public ColorMap getMap()
public void setMap(ColorMap m)
public int getBuffering()
FieldPortrayal2D
getBuffering
in class FieldPortrayal2D
public void setBuffering(int val)
FieldPortrayal2D
setBuffering
in class FieldPortrayal2D
public void draw(java.lang.Object object, java.awt.Graphics2D graphics, DrawInfo2D info)
FieldPortrayal2D
draw
in interface Portrayal2D
draw
in class FieldPortrayal2D