org.math.plot.plotObjects
Class Label
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Label
public Label(String l,
Color col,
double... c)
Label
public Label(String l,
double... c)
Label
public Label(double... c)
- show coord itself
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()