public class DefaultGraphicHistogram extends GraphicHistogram
EQUALIZATION, FUNCTION_DENSITY, FUNCTION_EXPONENT, FUNCTION_GAUSS, FUNCTION_LINEAL, FUNCTION_LOGARIT, FUNCTION_NONE, FUNCTION_SQUARE_ROOT, TYPE_FILL, TYPE_LINE, VIEW_ACUMMULATED, VIEW_ACUMMULATEDLOG, VIEW_LINEAL, VIEW_LOGARITHMIC
canvas, color
Constructor and Description |
---|
DefaultGraphicHistogram(Color c)
Constructor.
|
DefaultGraphicHistogram(double[] values,
Color c)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
firstActions()
Acciones a ejecutar al asignar el canvas
|
void |
firstDrawActions()
Acciones a ejecutar antes del primer dibujado
|
double[] |
getHistogramValues() |
int |
getType()
Devuelve la forma en la que se dibujara el histograma.
|
int |
getTypeViewed()
Devuelve la forma que tendrá la grafica del histograma.
|
protected void |
paint(Graphics g)
Dibujado de la línea de incremento exponencial sobre el canvas.
|
void |
setHistogramDrawed(double[] histogramDrawed)
Asigna el histograma a visualizar
|
void |
setType(int type)
Asigna el tipo de gráfica a mostrar.
|
void |
setTypeViewed(int type)
Asigna el tipo de vista para el histograma a mostrar.
|
draw, getColor, isDrawing, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setCanvas, setColor, setDrawing
public DefaultGraphicHistogram(Color c)
c
- public DefaultGraphicHistogram(double[] values, Color c)
c
- protected void paint(Graphics g)
paint
in class DrawableElement
public void setType(int type)
setType
in class GraphicHistogram
type
- public void setTypeViewed(int type)
GraphicHistogram
setTypeViewed
in class GraphicHistogram
public void setHistogramDrawed(double[] histogramDrawed)
GraphicHistogram
setHistogramDrawed
in class GraphicHistogram
public int getType()
getType
in class GraphicHistogram
public int getTypeViewed()
getTypeViewed
in class GraphicHistogram
public double[] getHistogramValues()
public void firstActions()
DrawableElement
firstActions
in class DrawableElement
public void firstDrawActions()
DrawableElement
firstDrawActions
in class DrawableElement