|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.bioinfweb.treegraph.document.ConcretePaintableElement
info.bioinfweb.treegraph.document.TextElement
info.bioinfweb.treegraph.document.Label
public abstract class Label
Label is the acestor of the two label classes TextLabel and
CharacterShiftLabel.
| Field Summary | |
|---|---|
private String |
id
|
private static Pattern |
idPattern
|
private Labels |
labels
|
| Fields inherited from class info.bioinfweb.treegraph.document.ConcretePaintableElement |
|---|
positions |
| Constructor Summary | |
|---|---|
Label(Labels labels)
|
|
| Method Summary | |
|---|---|
void |
assignLabelData(Label other)
Assigns the values of the passed label to this class. |
abstract Label |
clone()
Implementing classes should not copy the EnumMap positions because
the copy of this element will be located at another position. |
Label |
getAbove()
|
Label |
getBelow()
|
Branch |
getHoldingBranch()
|
String |
getID()
|
Labels |
getLabels()
|
int |
getLineIndex()
Returns the line index of the label or -1 if it is not linked to a Labels-object. |
int |
getLineNo()
Returns the line number of this label or -1 if it is not linked to a Labels-object. |
Label |
getNext()
|
abstract LabelPositionFormats |
getPositionFormats()
|
Label |
getPrevious()
|
static boolean |
idIsValid(String id)
|
boolean |
isAbove()
Tests if this label is located in the upper label block. |
void |
reinsert()
Reinserts this label into its owning Labels-object of one is linked. |
void |
setID(String id)
|
void |
setLabels(Labels labels)
|
abstract void |
setPositionFormats(LabelPositionFormats formats)
|
| Methods inherited from class info.bioinfweb.treegraph.document.TextElement |
|---|
assignTextElementData, getData, getFormats, toString |
| Methods inherited from class info.bioinfweb.treegraph.document.ConcretePaintableElement |
|---|
getPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface info.bioinfweb.treegraph.document.PaintableElement |
|---|
setFormats |
| Field Detail |
|---|
private static final Pattern idPattern
private Labels labels
private String id
| Constructor Detail |
|---|
public Label(Labels labels)
| Method Detail |
|---|
public String getID()
public Labels getLabels()
public Branch getHoldingBranch()
public void setLabels(Labels labels)
public void setID(String id)
public abstract LabelPositionFormats getPositionFormats()
public abstract void setPositionFormats(LabelPositionFormats formats)
public static boolean idIsValid(String id)
public void reinsert()
Labels-object of one is linked. This
becomes necessary of the position of the label changes.
public void assignLabelData(Label other)
Labels-object other might have is not copied.
other - public boolean isAbove()
true, if the label is above, false if the label is
below or not linked to a Labels-object.public int getLineNo()
Labels-object.
public int getLineIndex()
Labels-object.
public Label getNext()
public Label getPrevious()
public Label getAbove()
public Label getBelow()
public abstract Label clone()
ConcretePaintableElementEnumMap positions because
the copy of this element will be located at another position. Therefor the copy will
should an empty EnumMap.
clone in class TextElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||