All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.work.LabelList
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractFigure
|
+----CH.ifa.draw.standard.CompositeFigure
|
+----CH.ifa.draw.standard.FigureHolder
|
+----CH.ifa.draw.standard.ListHolder
|
+----CH.ifa.draw.standard.LeftAlignedList
|
+----CH.ifa.draw.work.LabelList
- public class LabelList
- extends LeftAlignedList
A LabelList is a LeftAlignedList-holder for connection labels. A LabelList
accepts only TextFigures, higlights itself by an orange oval, and has a mehtod
for getting the string represented by its contents (TextFigures).
-
LabelList()
-
-
LabelList(Point, Point)
-
-
LabelList(Point, Point, Margins)
-
-
accept(Figure)
- Accept only TextFigures.
-
emptySize()
-
-
getContents()
- Returns a string representing the concatenated contents of the TextFigures
held by this.
-
getDefaultMargins()
- A hook; return default margins.
-
highlight(Graphics)
- Draw a orange oval inside the display box of this.
-
labelCount()
-
LabelList
public LabelList()
LabelList
public LabelList(Point origin,
Point corner)
LabelList
public LabelList(Point origin,
Point corner,
Margins margins)
emptySize
protected Dimension emptySize()
- Overrides:
- emptySize in class FigureHolder
getDefaultMargins
protected Margins getDefaultMargins()
- A hook; return default margins.
- Overrides:
- getDefaultMargins in class FigureHolder
labelCount
public int labelCount()
getContents
public String getContents()
- Returns a string representing the concatenated contents of the TextFigures
held by this. The individual strings are separated by a single space.
highlight
public void highlight(Graphics g)
- Draw a orange oval inside the display box of this.
- Overrides:
- highlight in class FigureHolder
accept
public boolean accept(Figure figure)
- Accept only TextFigures.
- Overrides:
- accept in class FigureHolder
All Packages Class Hierarchy This Package Previous Next Index