public class DefaultInfoLayer extends InfoLayer
canvas
Constructor and Description |
---|
DefaultInfoLayer(Color c)
Creacion de un InfoLayer especificando el color
|
Modifier and Type | Method and Description |
---|---|
double |
clipDecimals(double num,
int n) |
void |
firstActions()
Definir el borde que va a tener el componente
|
void |
firstDrawActions()
Acciones a ejecutar antes del primer dibujado
|
double |
getMax() |
double |
getMin() |
protected void |
paint(Graphics g)
Dibujado del elemento gráfico
|
void |
setLimits(double min,
double max)
Establecer los valores maximo y minimo para dicha capa
|
void |
setStatusLeft(String statusLeft) |
void |
setStatusRight(String statusRight) |
draw, getColor, isDrawing, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setCanvas, setColor, setDrawing
public DefaultInfoLayer(Color c)
c
- public void firstActions()
firstActions
in class DrawableElement
public void setLimits(double min, double max)
protected void paint(Graphics g)
DrawableElement
paint
in class DrawableElement
public double getMin()
public double getMax()
public void setStatusRight(String statusRight)
status
- the status to setpublic void setStatusLeft(String statusLeft)
statusLeft
- the statusLeft to setpublic void firstDrawActions()
DrawableElement
firstDrawActions
in class DrawableElement
public double clipDecimals(double num, int n)