public class DenseGrid3DPortrayal2D extends ObjectGrid3DPortrayal2D
ObjectGridPortrayal2D.Message
Modifier and Type | Field and Description |
---|---|
DrawPolicy |
policy |
locationToPass
DEFAULT, DONT_USE_BUFFER, USE_BUFFER
classPortrayals, field, immutableField, portrayalForAll, portrayalForNonNull, portrayalForNull, portrayalForRemainder, portrayals
Constructor and Description |
---|
DenseGrid3DPortrayal2D() |
Modifier and Type | Method and Description |
---|---|
DrawPolicy |
getDrawPolicy() |
java.lang.Object |
getObjectLocation(java.lang.Object object,
GUIState gui)
Returns the first location in the underlying field of the given object, if such a thing
is reasonable.
|
LocationWrapper |
getWrapper(java.lang.Object object,
Int3D location) |
protected void |
hitOrDraw(java.awt.Graphics2D graphics,
DrawInfo2D info,
Bag putInHere)
Instead of overriding the draw and hitObjects methods, you can optionally override
this method to provide both the draw(...) and hitObjects(...)
functionality in a single method, as it's common that these two methods have nearly
identical code.
|
void |
setDrawPolicy(DrawPolicy policy) |
void |
setField(java.lang.Object field)
Sets the field, and sets the dirtyField flag to true.
|
getIgnoresEmpty, getLocationPosition, getPositionLocation, getScale, setIgnoresEmpty
getDefaultNullPortrayal, getDefaultPortrayal, getWrapper, setBorder, setBorderColor, setBorderLineFraction, setBorderLineMinMaxWidth, setGridColor, setGridLineFraction, setGridLineMinMaxWidth, setGridLines, setGridMinSpacing, setGridModulus, setSelected
draw, getBuffering, getClipLocation, getObjectPosition, getRelativeObjectPosition, hitObjects, setBuffering, setObjectPosition
getField, getInspector, getName, getPortrayalForAll, getPortrayalForNonNull, getPortrayalForNull, getPortrayalForObject, getPortrayalForRemainder, getStatus, isDirtyField, isImmutableField, reset, setDirtyField, setImmutableField, setObjectLocation, setPortrayalForAll, setPortrayalForClass, setPortrayalForNonNull, setPortrayalForNull, setPortrayalForObject, setPortrayalForRemainder, setSelected
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInspector, getName, getStatus
public DrawPolicy policy
public void setDrawPolicy(DrawPolicy policy)
public DrawPolicy getDrawPolicy()
public void setField(java.lang.Object field)
FieldPortrayal
setField
in class ObjectGrid3DPortrayal2D
public java.lang.Object getObjectLocation(java.lang.Object object, GUIState gui)
FieldPortrayal
getObjectLocation
in class ObjectGrid3DPortrayal2D
protected void hitOrDraw(java.awt.Graphics2D graphics, DrawInfo2D info, Bag putInHere)
FieldPortrayal2D
hitOrDraw
in class ObjectGrid3DPortrayal2D
public LocationWrapper getWrapper(java.lang.Object object, Int3D location)
getWrapper
in class ObjectGrid3DPortrayal2D