Package nl.colorize.multimedialib.stage
Class DisplayListLocation
java.lang.Object
nl.colorize.multimedialib.stage.DisplayListLocation
Attached to a
Graphic2D
and used by the renderer to determine when
and how this graphic should be displayed.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Attaches thisDisplayListLocation
to the specified parent in the display list.void
detach()
Detaches thisDisplayListLocation
, effectively removing the attached graphic from the stage.Returns the current global transform, which is relative to the stage.getId()
-
Constructor Details
-
DisplayListLocation
-
-
Method Details
-
attach
Attaches thisDisplayListLocation
to the specified parent in the display list.- Throws:
IllegalStateException
- when already attached to a parent.IllegalArgumentException
- when trying to attach to itself.
-
detach
public void detach()Detaches thisDisplayListLocation
, effectively removing the attached graphic from the stage. If the graphics are already detached this method does nothing. -
getGlobalTransform
Returns the current global transform, which is relative to the stage. SeeGraphic2D.getGlobalTransform()
for more information. -
getId
-
getGraphic
-
getLocalTransform
-
getParent
-
getChildren
-
getAddedChildren
-
getRemovedChildren
-