info.bioinfweb.treegraph.document.format
Class ScaleBarFormats
java.lang.Object
info.bioinfweb.treegraph.document.format.TextFormats
info.bioinfweb.treegraph.document.format.ScaleBarFormats
- All Implemented Interfaces:
- ElementFormats, LineFormats, java.lang.Cloneable
public class ScaleBarFormats
- extends TextFormats
- implements LineFormats
| Methods inherited from class info.bioinfweb.treegraph.document.format.TextFormats |
addTextStyle, assignTextFormats, getDecimalFormat, getDescent, getFont, getFontName, getLocale, getTextColor, getTextHeight, getTextStyle, hasTextStyle, removeTextStyle, setDecimalFormat, setFontName, setLocale, setTextColor, setTextStyle |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ALIGNMENT
public static final ScaleAlignment DEFAULT_ALIGNMENT
DEFAULT_TREE_DISTANCE_IN_MM
public static final float DEFAULT_TREE_DISTANCE_IN_MM
- See Also:
- Constant Field Values
DEFAULT_WIDTH_IN_MM
public static final float DEFAULT_WIDTH_IN_MM
- See Also:
- Constant Field Values
DEFAULT_HEIGHT_IN_MM
public static final float DEFAULT_HEIGHT_IN_MM
- See Also:
- Constant Field Values
DEFAULT_SMALL_INTERVAL
public static final float DEFAULT_SMALL_INTERVAL
- See Also:
- Constant Field Values
DEFAULT_LONG_INTERVAL
public static final int DEFAULT_LONG_INTERVAL
- See Also:
- Constant Field Values
DEFAULT_START_LEFT
public static final boolean DEFAULT_START_LEFT
- See Also:
- Constant Field Values
DEFAULT_INCREASING
public static final boolean DEFAULT_INCREASING
- See Also:
- Constant Field Values
DEFAULT_TEXT_HEIGHT_IN_MM
public static final float DEFAULT_TEXT_HEIGHT_IN_MM
- See Also:
- Constant Field Values
lineWidth
private DistanceValue lineWidth
lineColor
private java.awt.Color lineColor
alignment
private ScaleAlignment alignment
treeDistance
private DistanceValue treeDistance
width
private ScaleValue width
height
private DistanceValue height
smallInterval
private float smallInterval
longInterval
private int longInterval
startLeft
private boolean startLeft
increasing
private boolean increasing
ScaleBarFormats
public ScaleBarFormats()
getLineColor
public java.awt.Color getLineColor()
- Specified by:
getLineColor in interface LineFormats
setLineColor
public void setLineColor(java.awt.Color color)
- Specified by:
setLineColor in interface LineFormats
getLineWidth
public DistanceValue getLineWidth()
- Specified by:
getLineWidth in interface LineFormats
getAlignment
public ScaleAlignment getAlignment()
setAlignment
public void setAlignment(ScaleAlignment scaleAnchor)
getTreeDistance
public DistanceValue getTreeDistance()
getWidth
public ScaleValue getWidth()
getHeight
public DistanceValue getHeight()
- Defines the height of the long dashes (the height of the text below is not included.)
- Returns:
getLongInterval
public int getLongInterval()
- The long interval specifies how often the scale bar is labeles with a value. The unit used to
define it is the number of small intervals.
- Returns:
setLongInterval
public void setLongInterval(int longInterval)
getSmallInterval
public float getSmallInterval()
- The small interval speccifies the distance between the small dashes of the branch length scale
bar in branch length units.
- Returns:
setSmallInterval
public void setSmallInterval(float smallInterval)
isIncreasing
public boolean isIncreasing()
setIncreasing
public void setIncreasing(boolean increasing)
isStartLeft
public boolean isStartLeft()
setStartLeft
public void setStartLeft(boolean startLeft)
assignLineFormats
public void assignLineFormats(LineFormats other)
- Specified by:
assignLineFormats in interface LineFormats
assignScaleBarFormats
public void assignScaleBarFormats(ScaleBarFormats other)
assign
public void assign(ScaleBarFormats other)
clone
public ScaleBarFormats clone()
- Specified by:
clone in interface ElementFormats- Overrides:
clone in class TextFormats