info.bioinfweb.treegraph.document
Class ScaleBar
java.lang.Object
info.bioinfweb.treegraph.document.ConcretePaintableElement
info.bioinfweb.treegraph.document.AbstractTextElement
info.bioinfweb.treegraph.document.ScaleBar
- All Implemented Interfaces:
- LineElement, PaintableElement, TextElement, Cloneable
public class ScaleBar
- extends AbstractTextElement
- implements PaintableElement, LineElement, Cloneable
This element represents a scale bar for the branch length values.
Its text property stores the name of the unit that is displayed.
- Author:
- Ben Stöver
Method Summary |
void |
assignScaleBarData(ScaleBar other)
This method currently does not do anything but should be called in the
clone() -method of derived classes anyway because ScaleBar
might contain data that needs to be copied in future versions. |
ScaleBar |
clone()
Implementing classes should not copy the EnumMap positions because
the copy of this element will be located at another position. |
ScaleBarFormats |
getFormats()
|
void |
setFormats(ElementFormats formats)
|
formats
private ScaleBarFormats formats
ScaleBar
public ScaleBar()
getFormats
public ScaleBarFormats getFormats()
- Specified by:
getFormats
in interface LineElement
- Specified by:
getFormats
in interface PaintableElement
- Specified by:
getFormats
in interface TextElement
- Specified by:
getFormats
in class AbstractTextElement
setFormats
public void setFormats(ElementFormats formats)
- Specified by:
setFormats
in interface PaintableElement
assignScaleBarData
public void assignScaleBarData(ScaleBar other)
- This method currently does not do anything but should be called in the
clone()
-method of derived classes anyway because ScaleBar
might contain data that needs to be copied in future versions.
Note that this method does and will not copy the ScaleBarFormats
-object.
clone
public ScaleBar 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 interface TextElement
- Specified by:
clone
in class AbstractTextElement