Search this API

y.layout
Class EdgeLabelCandidate

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

public class EdgeLabelCandidate
extends LabelCandidate

An EdgeLabelCandidate describes one valid placement for an edge label considering the label model.

 

Constructor Summary
EdgeLabelCandidate(OrientedRectangle labelBox, java.lang.Object param, EdgeLabelLayout owner)
          Creates a new instance of EdgeLabelCandidate described by its box and model parameter.
EdgeLabelCandidate(OrientedRectangle labelBox, java.lang.Object param, EdgeLabelLayout owner, boolean internal)
          Creates a new instance of EdgeLabelCandidate described by its box, model parameter and internal flag.
EdgeLabelCandidate(YPoint pos, YDimension size, java.lang.Object param, EdgeLabelLayout owner)
          Creates a new instance of EdgeLabelCandidate described by location, size and model parameter.
EdgeLabelCandidate(YPoint pos, YDimension size, java.lang.Object param, EdgeLabelLayout owner, boolean internal)
          Creates a new instance of EdgeLabelCandidate described by location, size, model parameter and internal flag.
 
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

EdgeLabelCandidate

public EdgeLabelCandidate(YPoint pos,
                          YDimension size,
                          java.lang.Object param,
                          EdgeLabelLayout owner)
Creates a new instance of EdgeLabelCandidate described by location, size and model parameter.

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

EdgeLabelCandidate

public EdgeLabelCandidate(YPoint pos,
                          YDimension size,
                          java.lang.Object param,
                          EdgeLabelLayout owner,
                          boolean internal)
Creates a new instance of EdgeLabelCandidate described by location, size, model parameter and internal flag.

Parameters:
pos - the location of the upper left corner of the candidate
size - the size of the candidate
param - the parameters of the label model associated with this candidate
owner - the label associated with the candidate
internal - true if the candidate is allowed to overlap with its owner, false otherwise

EdgeLabelCandidate

public EdgeLabelCandidate(OrientedRectangle labelBox,
                          java.lang.Object param,
                          EdgeLabelLayout owner,
                          boolean internal)
Creates a new instance of EdgeLabelCandidate described by its box, model parameter and internal flag.

Parameters:
labelBox - the box that specifies the candidate's size and position
param - the parameters of the label model associated with this candidate
owner - the label associated with the candidate
internal - true if the candidate is allowed to overlap with its owner, false otherwise

EdgeLabelCandidate

public EdgeLabelCandidate(OrientedRectangle labelBox,
                          java.lang.Object param,
                          EdgeLabelLayout owner)
Creates a new instance of EdgeLabelCandidate described by its box and model parameter.

Parameters:
labelBox - 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 with the candidate

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