info.bioinfweb.treegraph.document.format
Class NodeFormats
java.lang.Object
info.bioinfweb.treegraph.document.format.ConcreteTextFormats
info.bioinfweb.treegraph.document.format.NodeFormats
- All Implemented Interfaces:
- CornerRadiusFormats, ElementFormats, LineFormats, TextFormats, Cloneable
public class NodeFormats
- extends ConcreteTextFormats
- implements ElementFormats, LineFormats, CornerRadiusFormats, Cloneable
Methods inherited from class info.bioinfweb.treegraph.document.format.ConcreteTextFormats |
addTextStyle, assignTextFormats, getDecimalFormat, getDescent, getFont, getFontName, getLocale, getTextColor, getTextHeight, getTextStyle, hasTextStyle, removeTextStyle, setDecimalFormat, setFontName, setLocale, setTextColor, setTextStyle |
lineWidth
private DistanceValue lineWidth
cornerRadius
private DistanceValue cornerRadius
lineColor
private Color lineColor
leafMargin
private Margin leafMargin
NodeFormats
public NodeFormats()
getLineWidth
public DistanceValue getLineWidth()
- Specified by:
getLineWidth
in interface LineFormats
getCornerRadius
public DistanceValue getCornerRadius()
- The line wich is dasplayed for an node can be rounded at ist top and bottom end
The inner radius (without the line width) of the quater of a circle at the ends
of this line is specified by the corner radius.
- Specified by:
getCornerRadius
in interface CornerRadiusFormats
- Returns:
- the corner radius for this node
getLineColor
public Color getLineColor()
- Specified by:
getLineColor
in interface LineFormats
setLineColor
public void setLineColor(Color color)
- Specified by:
setLineColor
in interface LineFormats
getLeafMargin
public Margin getLeafMargin()
assignLineFormats
public void assignLineFormats(LineFormats other)
- Specified by:
assignLineFormats
in interface LineFormats
assignCornerRadiusFormats
public void assignCornerRadiusFormats(CornerRadiusFormats other)
- Specified by:
assignCornerRadiusFormats
in interface CornerRadiusFormats
assignNodeFormats
public void assignNodeFormats(NodeFormats other)
assign
public void assign(NodeFormats other)
clone
public NodeFormats clone()
- Specified by:
clone
in interface CornerRadiusFormats
- Specified by:
clone
in interface ElementFormats
- Specified by:
clone
in interface LineFormats
- Specified by:
clone
in interface TextFormats
- Overrides:
clone
in class ConcreteTextFormats