|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.SliderEdgeLabelModel.ModelParameter
public static class SliderEdgeLabelModel.ModelParameter
Encodes the model parameters for the two slider modes.
The valid position are either on the edge
or beside the edge
.
The location of the label is described by the according segment index, the ratio of the position on the segment, the ratio of the position on the edge's path, an offset to the edge segment and the side of the edge.
SliderEdgeLabelModel.getMode()
Constructor Summary | |
---|---|
SliderEdgeLabelModel.ModelParameter(int segmentNumber,
double ratio,
YVector offset,
byte position,
double absRatio)
Creates a new instance of SliderEdgeLabelModel.ModelParameter using the given information. |
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 position specifier that determines the side of the edge where the label is placed. |
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 segmentNumber, double ratio, YVector offset, byte position, double absRatio)
SliderEdgeLabelModel.ModelParameter
using the given information.
segmentNumber
- the zero-based index of the edge segment where the label should be placedratio
- the ratio that describes the location relative to the segment where the label should be
placedoffset
- the offset vector between the label and the edge segment where it should be placedposition
- one of the valid position specifiersabsRatio
- the ratio that describes the location relative to the entire length of the edge where the
label should be placedMethod Detail |
---|
public int getSegmentNumber()
The index is zero-based and starts at the edge's source end.
Let s
denote the number of edge segments.
Then, a negative index value i
denotes the segment with index s + i
.
public double getRatio()
public YVector getOffsetVector()
public byte getLabelPosition()
public double getAbsRatio()
getRatio()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |