|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.LabelCandidate
Base class for candidate positions for labels.
Constructor Summary | |
LabelCandidate(YPoint pos,
YDimension size,
Object param,
LabelLayout owner)
Returns a new instance of LabelCandidate. |
|
LabelCandidate(YPoint pos,
YDimension size,
Object param,
LabelLayout owner,
boolean internal)
Returns a new instance of LabelCandidate. |
Method Summary | |
YRectangle |
getBoundingBox()
Returns the bounding box of this label candidate. |
double |
getEdgeOverlapPenalty()
|
double |
getHeight()
|
YPoint |
getLocation()
|
Object |
getModelParameter()
|
double |
getNodeOverlapPenalty()
|
double |
getOverlapPenalty()
|
LabelLayout |
getOwner()
Returns the LabelLayout to which this candidate box belongs. |
Object |
getParameter()
|
YDimension |
getSize()
|
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
boolean |
isInternal()
Returns whether this candidate is an internal node label, i.e. an label which resides inside the boundaries of a node. |
boolean |
isPropagated()
Returns if this box had been choosen by the labeling algorithm. |
void |
propagate()
Sets the model paramteres of the owner of this label candidate to the model parameters of this candidate box. |
void |
setEdgeOverlapPenalty(double pen)
|
void |
setNodeOverlapPenalty(double pen)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LabelCandidate(YPoint pos, YDimension size, Object param, LabelLayout owner)
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.public LabelCandidate(YPoint pos, YDimension size, Object param, LabelLayout owner, boolean internal)
pos
- the location of the upper
left corner of the candidate.size
- the size of the candidate.param
- the parameters of the labeling model
with this candidate.owner
- the label associated to the candidate.internal
- flag whether the candidate is
allowed to overlap its own feature.Method Detail |
public Object getModelParameter()
public YPoint getLocation()
public YDimension getSize()
public double getX()
public double getY()
public double getWidth()
public double getHeight()
public YRectangle getBoundingBox()
getBoundingBox
in interface PlaneObject
public LabelLayout getOwner()
public boolean isInternal()
public void propagate()
public void setNodeOverlapPenalty(double pen)
public void setEdgeOverlapPenalty(double pen)
public double getNodeOverlapPenalty()
public double getEdgeOverlapPenalty()
public double getOverlapPenalty()
public Object getParameter()
public boolean isPropagated()
public String toString()
toString
in class Object
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |