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_LOGARITHMICcanvas, 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, setDrawingpublic DefaultGraphicHistogram(Color c)
c - public DefaultGraphicHistogram(double[] values,
Color c)
c - protected void paint(Graphics g)
paint in class DrawableElementpublic void setType(int type)
setType in class GraphicHistogramtype - public void setTypeViewed(int type)
GraphicHistogramsetTypeViewed in class GraphicHistogrampublic void setHistogramDrawed(double[] histogramDrawed)
GraphicHistogramsetHistogramDrawed in class GraphicHistogrampublic int getType()
getType in class GraphicHistogrampublic int getTypeViewed()
getTypeViewed in class GraphicHistogrampublic double[] getHistogramValues()
public void firstActions()
DrawableElementfirstActions in class DrawableElementpublic void firstDrawActions()
DrawableElementfirstDrawActions in class DrawableElement