Search this API

y.layout
Class NodeLabelCandidate

java.lang.Object
  extended by y.layout.LabelCandidate
      extended by y.layout.NodeLabelCandidate
All Implemented Interfaces:
PlaneObject

public class NodeLabelCandidate
extends LabelCandidate

This class represents a candidate position for label associated to a node in a graph.


Constructor Summary
NodeLabelCandidate(OrientedRectangle orientedBox, Object param, NodeLabelLayout owner, boolean internal)
          Returns a new instance of NodeLabelCandidate.
NodeLabelCandidate(YPoint pos, YDimension size, Object param, NodeLabelLayout owner)
          Returns a new instance of NodeLabelCandidate.
NodeLabelCandidate(YPoint pos, YDimension size, Object param, NodeLabelLayout owner, boolean internal)
          Returns a new instance of NodeLabelCandidate.
 
Method Summary
 
Methods inherited from class y.layout.LabelCandidate
getBoundingBox, getBox, getCustomProfit, getEdgeOverlapPenalty, getHeight, getLocation, getModelParameter, getNodeOverlapPenalty, getOverlapPenalty, getOwner, getParameter, getSize, getWidth, getX, getY, isInternal, isPropagated, propagate, setCustomProfit, setEdgeOverlapPenalty, setNodeOverlapPenalty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeLabelCandidate

public NodeLabelCandidate(YPoint pos,
                          YDimension size,
                          Object param,
                          NodeLabelLayout owner)
Returns a new instance of NodeLabelCandidate.

Parameters:
pos - the location of the upper left corner of the candidate.
size - the size of the candidate.
param - the parameters of the labeling model associated with this candidate.
owner - the label associated to the candidate.

NodeLabelCandidate

public NodeLabelCandidate(OrientedRectangle orientedBox,
                          Object param,
                          NodeLabelLayout owner,
                          boolean internal)
Returns a new instance of NodeLabelCandidate.

Parameters:
orientedBox - the box that specifies the candidate's size and position.
param - the parameters of the labeling model associated with this candidate.
owner - the label associated to the candidate.
internal - flag whether the candidate is inside the node, or outside.

NodeLabelCandidate

public NodeLabelCandidate(YPoint pos,
                          YDimension size,
                          Object param,
                          NodeLabelLayout owner,
                          boolean internal)
Returns a new instance of NodeLabelCandidate.

Parameters:
pos - the location of the upper left corner of the candidate.
size - the size of the candidate.
param - the parameters of the labeling model associated with this candidate.
owner - the label associated to the candidate.
internal - flag whether the candidate is inside the node, or outside.

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.