info.bioinfweb.treegraph.document
Class Legend
java.lang.Object
info.bioinfweb.treegraph.document.ConcretePaintableElement
info.bioinfweb.treegraph.document.TextElement
info.bioinfweb.treegraph.document.Legend
- All Implemented Interfaces:
- EdgeRadiusElement, LineElement, PaintableElement, java.lang.Cloneable
public class Legend
- extends TextElement
- implements LineElement, EdgeRadiusElement
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
legends
private Legends legends
formats
private LegendFormats formats
Legend
public Legend(Legends legends)
getLegends
public Legends getLegends()
setLegends
public void setLegends(Legends legends)
getFormats
public LegendFormats getFormats()
- Specified by:
getFormats in interface EdgeRadiusElement- Specified by:
getFormats in interface LineElement- Specified by:
getFormats in interface PaintableElement- Specified by:
getFormats in class TextElement
setFormats
public void setFormats(ElementFormats formats)
- Specified by:
setFormats in interface PaintableElement
getPosition
public LegendPositionData getPosition(PositionPaintType type)
- Description copied from interface:
PaintableElement
- Returns the stored
DataPosition-object of an for an positioner-
identifier. If no position-object has been stored for this identifier, one will be created.
- Specified by:
getPosition in interface PaintableElement- Overrides:
getPosition in class ConcretePaintableElement
- Returns:
- the stored position
reinsert
public void reinsert()
clone
public Legend clone()
- Description copied from class:
ConcretePaintableElement
- Copys the object. The internal
EnumMap positions is not copied because
the copy of this element will be at another position. Therefor the copy will have an
empty EnumMap for the positions.
- Overrides:
clone in class TextElement