com.yworks.yfiles.server.graphml.flexio.data
Class CompositeNodeLabelModel

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.CompositeNodeLabelModel
All Implemented Interfaces:
NodeLabelModel

public class CompositeNodeLabelModel
extends java.lang.Object
implements NodeLabelModel

An NodeLabelModel that is composed of other node label models. This class is used to represent the CompositeLabelModel for layout calculations.


Nested Class Summary
static class CompositeNodeLabelModel.ModelParameter
           
 
Constructor Summary
CompositeNodeLabelModel()
           
 
Method Summary
 void add(NodeLabelModel model)
           
 java.lang.Object createModelParameter(OrientedRectangle labelBounds, NodeLayout nodeLayout)
           
 java.lang.Object getDefaultParameter()
           
 YList getLabelCandidates(NodeLabelLayout labelLayout, NodeLayout nodeLayout)
           
 OrientedRectangle getLabelPlacement(YDimension labelSize, NodeLayout nodeLayout, java.lang.Object param)
           
 java.util.List getModels()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeNodeLabelModel

public CompositeNodeLabelModel()
Method Detail

getModels

public java.util.List getModels()

getDefaultParameter

public java.lang.Object getDefaultParameter()
Specified by:
getDefaultParameter in interface NodeLabelModel

add

public void add(NodeLabelModel model)

getLabelPlacement

public OrientedRectangle getLabelPlacement(YDimension labelSize,
                                           NodeLayout nodeLayout,
                                           java.lang.Object param)
Specified by:
getLabelPlacement in interface NodeLabelModel

getLabelCandidates

public YList getLabelCandidates(NodeLabelLayout labelLayout,
                                NodeLayout nodeLayout)
Specified by:
getLabelCandidates in interface NodeLabelModel

createModelParameter

public java.lang.Object createModelParameter(OrientedRectangle labelBounds,
                                             NodeLayout nodeLayout)
Specified by:
createModelParameter in interface NodeLabelModel


Copyright © 2000-2013 yWorks GmbH. All rights reserved