physicon.graphLib
Class MetaTeXLinearScaleDrawer

java.lang.Object
  |
  +--physicon.graphLib.DrawerBase
        |
        +--physicon.graphLib.ScaleDrawerBase
              |
              +--physicon.graphLib.LinearScaleDrawer
                    |
                    +--physicon.graphLib.MetaTeXLinearScaleDrawer

public class MetaTeXLinearScaleDrawer
extends LinearScaleDrawer

Represents the drawer object for the linear scale draws dash set with default color. Also makes the metatext labels near the arrow.


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
MetaTeXLinearScaleDrawer(java.awt.Color _c, java.lang.String _label)
           
MetaTeXLinearScaleDrawer(java.awt.Color _c, java.lang.String _label, int _labelSize)
           
MetaTeXLinearScaleDrawer(java.lang.String _label)
          Constructor
 
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, ... or from top -> bottom, from bottom -> top, ...
 void setAlignment(double _i)
           
 void setAlignment(int _i)
          Sets the alignment to the scale;
 void setHor(int _arg)
           
 void setLabel(java.lang.String _label)
           
 void setVert(int _arg)
          Corrects the positions of axis labels
 
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

MetaTeXLinearScaleDrawer

public MetaTeXLinearScaleDrawer(java.lang.String _label)
Constructor

MetaTeXLinearScaleDrawer

public MetaTeXLinearScaleDrawer(java.awt.Color _c,
                                java.lang.String _label)

MetaTeXLinearScaleDrawer

public MetaTeXLinearScaleDrawer(java.awt.Color _c,
                                java.lang.String _label,
                                int _labelSize)
Method Detail

setVert

public void setVert(int _arg)
Corrects the positions of axis labels

setHor

public void setHor(int _arg)

invertLabel

public void invertLabel()
Inverts the position of label at the end of scale; From left -> right, from right -> left, ... or from top -> bottom, from bottom -> top, ...

setAlignment

public void setAlignment(int _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)

setAlignment

public void setAlignment(double _i)

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