org.math.plot.plotObjects
Class Label

java.lang.Object
  extended by org.math.plot.plotObjects.Label
All Implemented Interfaces:
Plotable
Direct Known Subclasses:
BaseLabel

public class Label
extends Object
implements Plotable

BSD License

Author:
Yann RICHET

Field Summary
 double angle
           
protected  double[] base_offset
           
protected  Color color
           
protected  double[] coord
           
protected  double cornerE
           
protected  double cornerN
           
 Font font
           
protected  String label
           
(package private)  boolean visible
           
 
Constructor Summary
Label(double... c)
          show coord itself
Label(String l, Color col, double... c)
           
Label(String l, double... c)
           
 
Method Summary
static double approx(double val, int decimal)
           
static String coordToString(double... c)
           
 Color getColor()
           
 Font getFont()
           
 String getText()
           
 boolean getVisible()
           
 void plot(AbstractDrawer draw)
          see Text for formatted text output
 void rotate(double _angle)
           
 void setColor(Color c)
           
 void setCoord(double... _c)
           
 void setCorner(double north_south, double east_west)
          reference point center: 0.5, 0.5 lowerleft: 0,0 upperleft 1, 0 ...
 void setFont(Font _font)
           
 void setText(String _t)
           
 void setVisible(boolean v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coord

protected double[] coord

base_offset

protected double[] base_offset

label

protected String label

color

protected Color color

cornerN

protected double cornerN

cornerE

protected double cornerE

visible

boolean visible

angle

public double angle

font

public Font font
Constructor Detail

Label

public Label(String l,
             Color col,
             double... c)

Label

public Label(String l,
             double... c)

Label

public Label(double... c)
show coord itself

Method Detail

setText

public void setText(String _t)

getText

public String getText()

setCoord

public void setCoord(double... _c)

setColor

public void setColor(Color c)
Specified by:
setColor in interface Plotable

getColor

public Color getColor()
Specified by:
getColor in interface Plotable

setCorner

public void setCorner(double north_south,
                      double east_west)
reference point center: 0.5, 0.5 lowerleft: 0,0 upperleft 1, 0 ...


setVisible

public void setVisible(boolean v)
Specified by:
setVisible in interface Plotable

getVisible

public boolean getVisible()
Specified by:
getVisible in interface Plotable

plot

public void plot(AbstractDrawer draw)
see Text for formatted text output

Specified by:
plot in interface Plotable

rotate

public void rotate(double _angle)

setFont

public void setFont(Font _font)

approx

public static double approx(double val,
                            int decimal)

coordToString

public static String coordToString(double... c)

getFont

public Font getFont()