info.bioinfweb.treegraph.document
Class TextElement

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

public abstract class TextElement
extends ConcretePaintableElement

This class can be used as the acestor of all classes that represent document elements which contain text or decimal values.

Author:
Ben Stöver
See Also:
TextElementData

Field Summary
private  TextElementData data
           
 
Fields inherited from class info.bioinfweb.treegraph.document.ConcretePaintableElement
positions
 
Constructor Summary
TextElement()
           
 
Method Summary
 void assignTextElementData(TextElement other)
           
abstract  TextElement clone()
          Implementing classes should not copy the EnumMap positions because the copy of this element will be located at another position.
 TextElementData getData()
           
abstract  TextFormats getFormats()
           
 java.lang.String toString()
           
 
Methods inherited from class info.bioinfweb.treegraph.document.ConcretePaintableElement
getPosition
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.bioinfweb.treegraph.document.PaintableElement
setFormats
 

Field Detail

data

private TextElementData data
Constructor Detail

TextElement

public TextElement()
Method Detail

getData

public TextElementData getData()

getFormats

public abstract TextFormats getFormats()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

assignTextElementData

public void assignTextElementData(TextElement other)

clone

public abstract TextElement clone()
Description copied from class: ConcretePaintableElement
Implementing classes should not copy the EnumMap positions because the copy of this element will be located at another position. Therefor the copy will should an empty EnumMap.

Specified by:
clone in class ConcretePaintableElement