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()].


Method Index

 o createLabelAt(int)
Creates a label holder at position index.
 o first()
Gets the index of the first label holder of this.
 o getLabelAt(int)
Gets the label holder at position index.
 o last()
Gets the index of the last label holder of this.
 o merge(LabelledSegment)
Merges the contents of the label holders (the actual figures used as labels) of segment other with the label holders of this.
 o setLabelAt(LabelPanel, int)
Sets the label holder at position index to label.
 o setSegment(int)
Sets the relative position in the owner connection.

Methods

 o setSegment
 public abstract void setSegment(int segment)
Sets the relative position in the owner connection.

 o getLabelAt
 public abstract LabelPanel getLabelAt(int index)
Gets the label holder at position index.

 o setLabelAt
 public abstract void setLabelAt(LabelPanel label,
                                 int index)
Sets the label holder at position index to label.

 o createLabelAt
 public abstract void createLabelAt(int index)
Creates a label holder at position index.

 o 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.

 o first
 public abstract int first()
Gets the index of the first label holder of this.

 o last
 public abstract int last()
Gets the index of the last label holder of this.


All Packages  Class Hierarchy  This Package  Previous  Next  Index