public class LabelingData extends LayoutData
GenericLabeling
.Constructor and Description |
---|
LabelingData() |
Modifier and Type | Method and Description |
---|---|
void |
apply(LayoutGraphAdapter adapter,
ILayoutAlgorithm layout,
CopiedLayoutGraph layoutGraph)
Applies this layout data to the specified
layoutGraphAdapter . |
AbortHandler |
getAbortHandler()
Gets the AbortHandler used during the layout.
|
DpKeyItemCollection<ILabel> |
getAffectedLabels()
Gets the collection of labels that shall be placed by the algorithm.
|
ItemMapping<ILabel,IEdgeLabelLayoutModel> |
getEdgeLabelModels()
Gets the mapping from edge labels to an
IEdgeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
ItemMapping<INode,NodeHalo> |
getNodeHalos()
Gets the mapping from nodes to their
NodeHalo . |
ItemMapping<ILabel,INodeLabelLayoutModel> |
getNodeLabelModels()
Gets the mapping from node labels to an
INodeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
ItemMapping<IEdge,Object> |
getSourceGroupIds()
Gets a mapping from edges to an object representing their source edge group.
|
ItemMapping<IEdge,Object> |
getTargetGroupIds()
Gets a mapping from edges to an object representing their target edge group.
|
void |
setAbortHandler(AbortHandler value)
Sets the AbortHandler used during the layout.
|
void |
setAffectedLabels(DpKeyItemCollection<ILabel> value)
Sets the collection of labels that shall be placed by the algorithm.
|
void |
setEdgeLabelModels(ItemMapping<ILabel,IEdgeLabelLayoutModel> value)
Sets the mapping from edge labels to an
IEdgeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
void |
setNodeHalos(ItemMapping<INode,NodeHalo> value)
Sets the mapping from nodes to their
NodeHalo . |
void |
setNodeLabelModels(ItemMapping<ILabel,INodeLabelLayoutModel> value)
Sets the mapping from node labels to an
INodeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
void |
setSourceGroupIds(ItemMapping<IEdge,Object> value)
Sets a mapping from edges to an object representing their source edge group.
|
void |
setTargetGroupIds(ItemMapping<IEdge,Object> value)
Sets a mapping from edges to an object representing their target edge group.
|
public void apply(LayoutGraphAdapter adapter, ILayoutAlgorithm layout, CopiedLayoutGraph layoutGraph)
LayoutData
layoutGraphAdapter
.apply
in class LayoutData
adapter
- The adapter to add the layout data to.layout
- The layout that shall use this layout data.layoutGraph
- The layout graph used for the layout calculation.public final AbortHandler getAbortHandler()
AbortHandler.ABORT_HANDLER_DPKEY
,
setAbortHandler(AbortHandler)
public final DpKeyItemCollection<ILabel> getAffectedLabels()
Note that the DpKey
has to be set to the key assigned to
AffectedLabelsDpKey
.
AbstractLabeling.getAffectedLabelsDpKey()
,
setAffectedLabels(DpKeyItemCollection)
public final ItemMapping<ILabel,IEdgeLabelLayoutModel> getEdgeLabelModels()
IEdgeLabelLayoutModel
used by the labeling algorithm instead of the
original label model.
If a label has no mapping, the original model is used as normal.
AbstractLabeling.LABEL_MODEL_DPKEY
,
setEdgeLabelModels(ItemMapping)
public final ItemMapping<INode,NodeHalo> getNodeHalos()
NodeHalo
.NodeHalo.NODE_HALO_DPKEY
,
setNodeHalos(ItemMapping)
public final ItemMapping<ILabel,INodeLabelLayoutModel> getNodeLabelModels()
INodeLabelLayoutModel
used by the labeling algorithm instead of the
original label model.
If a label has no mapping, the original model is used as normal.
AbstractLabeling.LABEL_MODEL_DPKEY
,
setNodeLabelModels(ItemMapping)
public final ItemMapping<IEdge,Object> getSourceGroupIds()
PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
,
setSourceGroupIds(ItemMapping)
public final ItemMapping<IEdge,Object> getTargetGroupIds()
PortConstraintKeys.TARGET_GROUP_ID_DPKEY
,
setTargetGroupIds(ItemMapping)
public final void setAbortHandler(AbortHandler value)
value
- The AbortHandler to set.AbortHandler.ABORT_HANDLER_DPKEY
,
getAbortHandler()
public final void setAffectedLabels(DpKeyItemCollection<ILabel> value)
Note that the DpKey
has to be set to the key assigned to
AffectedLabelsDpKey
.
value
- The AffectedLabels to set.AbstractLabeling.getAffectedLabelsDpKey()
,
getAffectedLabels()
public final void setEdgeLabelModels(ItemMapping<ILabel,IEdgeLabelLayoutModel> value)
IEdgeLabelLayoutModel
used by the labeling algorithm instead of the
original label model.
If a label has no mapping, the original model is used as normal.
value
- The EdgeLabelModels to set.AbstractLabeling.LABEL_MODEL_DPKEY
,
getEdgeLabelModels()
public final void setNodeHalos(ItemMapping<INode,NodeHalo> value)
NodeHalo
.value
- The NodeHalos to set.NodeHalo.NODE_HALO_DPKEY
,
getNodeHalos()
public final void setNodeLabelModels(ItemMapping<ILabel,INodeLabelLayoutModel> value)
INodeLabelLayoutModel
used by the labeling algorithm instead of the
original label model.
If a label has no mapping, the original model is used as normal.
value
- The NodeLabelModels to set.AbstractLabeling.LABEL_MODEL_DPKEY
,
getNodeLabelModels()
public final void setSourceGroupIds(ItemMapping<IEdge,Object> value)
value
- The SourceGroupIds to set.PortConstraintKeys.SOURCE_GROUP_ID_DPKEY
,
getSourceGroupIds()
public final void setTargetGroupIds(ItemMapping<IEdge,Object> value)
value
- The TargetGroupIds to set.PortConstraintKeys.TARGET_GROUP_ID_DPKEY
,
getTargetGroupIds()