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


Constructor Index

 o LabelList()
 o LabelList(Point, Point)
 o LabelList(Point, Point, Margins)

Method Index

 o accept(Figure)
Accept only TextFigures.
 o emptySize()
 o getContents()
Returns a string representing the concatenated contents of the TextFigures held by this.
 o getDefaultMargins()
A hook; return default margins.
 o highlight(Graphics)
Draw a orange oval inside the display box of this.
 o labelCount()

Constructors

 o LabelList
 public LabelList()
 o LabelList
 public LabelList(Point origin,
                  Point corner)
 o LabelList
 public LabelList(Point origin,
                  Point corner,
                  Margins margins)

Methods

 o emptySize
 protected Dimension emptySize()
Overrides:
emptySize in class FigureHolder
 o getDefaultMargins
 protected Margins getDefaultMargins()
A hook; return default margins.

Overrides:
getDefaultMargins in class FigureHolder
 o labelCount
 public int labelCount()
 o 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.

 o highlight
 public void highlight(Graphics g)
Draw a orange oval inside the display box of this.

Overrides:
highlight in class FigureHolder
 o accept
 public boolean accept(Figure figure)
Accept only TextFigures.

Overrides:
accept in class FigureHolder

All Packages  Class Hierarchy  This Package  Previous  Next  Index