info.bioinfweb.treegraph.document
Class Legend

java.lang.Object
  extended by info.bioinfweb.treegraph.document.ConcretePaintableElement
      extended by info.bioinfweb.treegraph.document.TextElement
          extended by info.bioinfweb.treegraph.document.Legend
All Implemented Interfaces:
EdgeRadiusElement, LineElement, PaintableElement, java.lang.Cloneable

public class Legend
extends TextElement
implements LineElement, EdgeRadiusElement


Field Summary
private  LegendFormats formats
           
private  Legends legends
           
 
Fields inherited from class info.bioinfweb.treegraph.document.ConcretePaintableElement
positions
 
Constructor Summary
Legend(Legends legends)
           
 
Method Summary
 Legend clone()
          Copys the object.
 LegendFormats getFormats()
           
 Legends getLegends()
           
 LegendPositionData getPosition(PositionPaintType type)
          Returns the stored DataPosition-object of an for an positioner- identifier.
 void reinsert()
           
 void setFormats(ElementFormats formats)
           
 void setLegends(Legends legends)
           
 
Methods inherited from class info.bioinfweb.treegraph.document.TextElement
getData, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

legends

private Legends legends

formats

private LegendFormats formats
Constructor Detail

Legend

public Legend(Legends legends)
Method Detail

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