| Modifier and Type | Field and Description |
|---|---|
double |
angle |
protected double[] |
base_offset |
protected Color |
color |
protected double[] |
coord |
protected double |
cornerE |
protected double |
cornerN |
Font |
font |
protected String |
label |
| Constructor and Description |
|---|
Label(double... c)
show coord itself
|
Label(String l,
Color col,
double... c) |
Label(String l,
double... c) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected double[] coord
protected double[] base_offset
protected String label
protected Color color
protected double cornerN
protected double cornerE
public double angle
public Font font
public Label(String l, double... c)
public Label(double... c)
public void setText(String _t)
public String getText()
public void setCoord(double... _c)
public void setCorner(double north_south,
double east_west)
public void setVisible(boolean v)
setVisible in interface Plotablepublic boolean getVisible()
getVisible in interface Plotablepublic void plot(AbstractDrawer draw)
public void rotate(double _angle)
public void setFont(Font _font)
public static double approx(double val,
int decimal)
public static String coordToString(double... c)
public Font getFont()
Copyright © 2015. All rights reserved.