info.bioinfweb.treegraph.document
Class ConcretePaintableElement

java.lang.Object
  extended by info.bioinfweb.treegraph.document.ConcretePaintableElement
All Implemented Interfaces:
PaintableElement, java.lang.Cloneable
Direct Known Subclasses:
Branch, TextElement

public abstract class ConcretePaintableElement
extends java.lang.Object
implements java.lang.Cloneable, PaintableElement


Field Summary
protected  java.util.EnumMap<PositionPaintType,PositionData> positions
           
 
Constructor Summary
ConcretePaintableElement()
           
 
Method Summary
 ConcretePaintableElement clone()
          Copys the object.
 PositionData getPosition(PositionPaintType type)
          Returns the stored DataPosition-object of an for an positioner- identifier.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.bioinfweb.treegraph.document.PaintableElement
getFormats, setFormats
 

Field Detail

positions

protected java.util.EnumMap<PositionPaintType,PositionData> positions
Constructor Detail

ConcretePaintableElement

public ConcretePaintableElement()
Method Detail

getPosition

public PositionData 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
Returns:
the stored position

clone

public ConcretePaintableElement clone()
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 java.lang.Object