All Packages Class Hierarchy This Package Previous Next Index
Interface CH.ifa.draw.framework.LabelledSegment
- public interface LabelledSegment
A LabelledSegment has methods for accessing the labels associated with it
and for merging with another segment. The labels are accessed by consecutive
integers in the range [first(),last()].
-
createLabelAt(int)
- Creates a label holder at position index.
-
first()
- Gets the index of the first label holder of this.
-
getLabelAt(int)
- Gets the label holder at position index.
-
last()
- Gets the index of the last label holder of this.
-
merge(LabelledSegment)
- Merges the contents of the label holders (the actual figures used as labels)
of segment other with the label holders of this.
-
setLabelAt(LabelPanel, int)
- Sets the label holder at position index to label.
-
setSegment(int)
- Sets the relative position in the owner connection.
setSegment
public abstract void setSegment(int segment)
- Sets the relative position in the owner connection.
getLabelAt
public abstract LabelPanel getLabelAt(int index)
- Gets the label holder at position index.
setLabelAt
public abstract void setLabelAt(LabelPanel label,
int index)
- Sets the label holder at position index to label.
createLabelAt
public abstract void createLabelAt(int index)
- Creates a label holder at position index.
merge
public abstract void merge(LabelledSegment other)
- Merges the contents of the label holders (the actual figures used as labels)
of segment other with the label holders of this.
first
public abstract int first()
- Gets the index of the first label holder of this.
last
public abstract int last()
- Gets the index of the last label holder of this.
All Packages Class Hierarchy This Package Previous Next Index