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


Fields inherited from class physicon.graphLib.LinearScaleDrawer
arrowShiftX, arrowShiftY, beginPoint, dashesPerBlock, endPoint, initSmallDashes, norm, paramStep, textHeight, textWidth
 
Fields inherited from class physicon.graphLib.ScaleDrawerBase
maxParam, minParam
 
Constructor Summary
LabeledLinearScaleDrawer(java.awt.Color _c, java.lang.String _label)
           
LabeledLinearScaleDrawer(java.lang.String _label)
          Constructor
LabeledLinearScaleDrawer(java.lang.String _label, java.awt.Color _c, int _size)
           
 
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 physicon.graphLib.LinearScaleDrawer
getFont, getLocalRoughRect, invertText, reset, setAdjustment, setFont, setLabelsOnlyStyle, setOneSideStyle, showDashes, showZero
 
Methods inherited from class physicon.graphLib.ScaleDrawerBase
addDash, dashesNumber, getColor, getDash
 
Methods inherited from class physicon.graphLib.DrawerBase
contains, getGlobalLevel, getGlobalRefPoint, setGlobalLevel, setGlobalRefPoint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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