physicon.graphLib
Class LabeledLinearScaleDrawer
java.lang.Object
|
+--physicon.graphLib.DrawerBase
|
+--physicon.graphLib.ScaleDrawerBase
|
+--physicon.graphLib.LinearScaleDrawer
|
+--physicon.graphLib.LabeledLinearScaleDrawer
- public class LabeledLinearScaleDrawer
- extends LinearScaleDrawer
Represents the drawer object for the linear scale
draws dash set with default color
Method Summary |
void |
drawLocal(java.awt.Graphics g)
Draws scale with default color.
|
java.lang.String |
getLabel()
|
void |
invertLabel()
Inverts the position of label at the end of scale;
From left -> right, from right -> left ... |
void |
setAlignment(double _i)
Sets the alignment to the scale; |
void |
setLabel(java.lang.String _label)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LabeledLinearScaleDrawer
public LabeledLinearScaleDrawer(java.lang.String _label)
- Constructor
LabeledLinearScaleDrawer
public LabeledLinearScaleDrawer(java.awt.Color _c,
java.lang.String _label)
LabeledLinearScaleDrawer
public LabeledLinearScaleDrawer(java.lang.String _label,
java.awt.Color _c,
int _size)
setAlignment
public void setAlignment(double _i)
- Sets the alignment to the scale;
- Parameters:
_i
- the alignment type
-1 - left (horizontal scale) or bottom (vertical scale)
- center;
1 - right (horizontal scale) or top (vertical scale)
invertLabel
public void invertLabel()
- Inverts the position of label at the end of scale;
From left -> right, from right -> left ...
getLabel
public final java.lang.String getLabel()
setLabel
public final void setLabel(java.lang.String _label)
drawLocal
public void drawLocal(java.awt.Graphics g)
- Draws scale with default color.
Direction (horizontal or vertical) is
automatically choosen
- Parameters:
g
- - the given Graphics object- Overrides:
- drawLocal in class LinearScaleDrawer