info.bioinfweb.treegraph.document
Class Legend
java.lang.Object
info.bioinfweb.treegraph.document.ConcretePaintableElement
info.bioinfweb.treegraph.document.AbstractTextElement
info.bioinfweb.treegraph.document.Legend
- All Implemented Interfaces:
- CornerRadiusElement, LineElement, PaintableElement, TextElement, Cloneable
public class Legend
- extends AbstractTextElement
- implements LineElement, CornerRadiusElement
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 CornerRadiusElement
- 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
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()
assignLegendData
public void assignLegendData(Legend other)
- This method currently does not do anything but should be called in the
clone()
-method of derived classes anyway because Legend
might contain data that needs to be copied in future versions.
Note that this method does and will not copy the LegendFormats
-object.
clone
public Legend clone()
- Returns a deep copy of this legend. Note that the linked
Legends
-object
of the returned object is null
no matter if this object was linked or not.
- Specified by:
clone
in interface TextElement
- Specified by:
clone
in class AbstractTextElement
- See Also:
ConcretePaintableElement.clone()