|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.SliderEdgeLabelModel.ModelParameter
public static class SliderEdgeLabelModel.ModelParameter
Encodes the model parameters for the two slider edge label models specified
by SliderEdgeLabelModel.CENTER_SLIDER and SliderEdgeLabelModel.SIDE_SLIDER.
| Constructor Summary | |
|---|---|
SliderEdgeLabelModel.ModelParameter(int s,
double r,
YVector v,
byte p,
double aRatio)
Returns a new instance of ModelParameter that has the given characteristics. |
|
| Method Summary | |
|---|---|
double |
getAbsRatio()
Returns the label's absolute ratio with respect to the entire length of the edge path. |
byte |
getLabelPosition()
Returns the label's symbolic ratio specifier, i.e., one of SliderEdgeLabelModel.CENTER_RATIO,
SliderEdgeLabelModel.LEFT_RATIO, or SliderEdgeLabelModel.RIGHT_RATIO. |
YVector |
getOffsetVector()
Returns the offset vector between the label and the edge segment relative to which it is placed. |
double |
getRatio()
Returns the label's ratio with respect to the length of the edge segment relative to which it is placed. |
int |
getSegmentNumber()
Returns the index of the edge segment relative to which the label is placed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SliderEdgeLabelModel.ModelParameter(int s,
double r,
YVector v,
byte p,
double aRatio)
s - The index of the edge segment relative to which the label should be placed.r - The label's ratio with respect to the length of the edge segment relative
to which it should be placed.v - The offset vector between the label and the edge segment relative to which
it should be placed.p - One of the symbolic ratio specifiers SliderEdgeLabelModel.CENTER_RATIO, SliderEdgeLabelModel.LEFT_RATIO,
or SliderEdgeLabelModel.RIGHT_RATIO.aRatio - The label's absolute ratio with respect to the entire length of the edge
path.
| Method Detail |
|---|
public int getSegmentNumber()
public double getRatio()
public YVector getOffsetVector()
public byte getLabelPosition()
SliderEdgeLabelModel.CENTER_RATIO,
SliderEdgeLabelModel.LEFT_RATIO, or SliderEdgeLabelModel.RIGHT_RATIO.
public double getAbsRatio()
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||