public class IdLayoutContext extends LayoutContext
LayoutContext suitable for usage
within an IdPattern. Besides the usual LayoutContext options
this context object also stores the associated GraphicsAlgorithm for
the PictogramElement of the context and the root
PictogramElement of the pattern. The latter may be of use for easier
finding a certain child within a pattern representation.| Constructor and Description |
|---|
IdLayoutContext(PictogramElement pictogramElement,
GraphicsAlgorithm graphicsAlgorithm,
PictogramElement rootPictogramElement)
Creates a new
IdLayoutContext instance holding the given
pictogram model instances. |
| Modifier and Type | Method and Description |
|---|---|
GraphicsAlgorithm |
getGraphicsAlgorithm()
Returns the stored
GraphicsAlgorithm. |
PictogramElement |
getRootPictogramElement()
Returns the stored root
PictogramElement. |
void |
setGraphicsAlgorithm(GraphicsAlgorithm graphicsAlgorithm)
Sets a new
GraphicsAlgorithm for the PictogramElement to
layout. |
void |
setRootPictogramElement(PictogramElement rootPictogramElement)
Sets a new root
PictogramElement. |
getPictogramElement, toStringgetProperty, getPropertyKeys, putPropertyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPictogramElementgetProperty, getPropertyKeys, putPropertypublic IdLayoutContext(PictogramElement pictogramElement, GraphicsAlgorithm graphicsAlgorithm, PictogramElement rootPictogramElement)
IdLayoutContext instance holding the given
pictogram model instances.pictogramElement - The PictogramElement that shall be layouted, see
LayoutContext.graphicsAlgorithm - The associated GraphicsAlgorithm for the
PictogramElementrootPictogramElement - The root pictogram element, this is the one that holds the ID
property for the patternpublic GraphicsAlgorithm getGraphicsAlgorithm()
GraphicsAlgorithm.GraphicsAlgorithm for the
PictogramElement to layout.public void setGraphicsAlgorithm(GraphicsAlgorithm graphicsAlgorithm)
GraphicsAlgorithm for the PictogramElement to
layout.graphicsAlgorithm - The new instance to set.public PictogramElement getRootPictogramElement()
PictogramElement.PictogramElement.public void setRootPictogramElement(PictogramElement rootPictogramElement)
PictogramElement.rootPictogramElement - The new instance to set.