Element
, ElementBox
, InteractionSource
ElementObject
public class ElementBox extends AbstractTile implements ElementBox
Title: ElementBox
Description: Painter's algorithm implementation of a Box
corners, numberOfTiles
TARGET_POSITION, TARGET_SIZE
targetPosition, targetSize
Constructor | Description |
---|---|
ElementBox() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
computeCorners() |
This will be used by subclasses whenever there is a need to recompute
the actual values of the corners before drawing.
|
static XML.ObjectLoader |
getLoader() |
Returns an XML.ObjectLoader to save and load object data.
|
boolean |
isClosedBottom() |
Whether the box is closed at its bottom.
|
boolean |
isClosedTop() |
Whether the box is closed at its top.
|
void |
setClosedBottom(boolean close) |
Whether the box should be closed at its bottom.
|
void |
setClosedTop(boolean close) |
Whether the box should be closed at its top.
|
getTargetHit, projectPoints, setColorBelowWhenEqual, setColorOriginAndDirection, setColorRegions, setCorners, setDrawQuickInterior
getDrawingPanel3D, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
addInteractionListener, getAxesMode, getDrawingPanel3D, getHotSpotBodyCoordinates, getInteractionTarget, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isReallyVisible, isVisible, loadUnmutableObjects, removeInteractionListener, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
addInteractionListener, getInteractionTarget, removeInteractionListener
public void setClosedBottom(boolean close)
ElementBox
setClosedBottom
in interface ElementBox
close
- the desired valuepublic boolean isClosedBottom()
ElementBox
isClosedBottom
in interface ElementBox
public void setClosedTop(boolean close)
ElementBox
setClosedTop
in interface ElementBox
close
- the desired valuepublic boolean isClosedTop()
ElementBox
isClosedTop
in interface ElementBox
protected void computeCorners()
AbstractTile
computeCorners
in class AbstractTile
public static XML.ObjectLoader getLoader()