|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jwo.utils.gui.JWGraph
jwo.landserf.gui.Histogram
public class Histogram
Displays a histogram (commonly a frequency histogram or hammock plot.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class jwo.utils.gui.JWGraph |
|---|
bottom, centreX, centreY, INTERVAL, items, left, NOMINAL, offscreenImage, og, ORDINAL, RATIO, right, top |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Histogram()
Creates an empty histogram. |
|
Histogram(float yMin,
float yMax)
Lays out the canvas for the histogram. |
|
Histogram(float xMin,
float xMax,
float yMin,
float yMax)
Lays out the canvas for the histogram. |
|
Histogram(float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax)
Lays out the canvas for the histogram including explicit labels for the X axis. |
|
Histogram(float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax,
int measurementScale)
Lays out the canvas for the histogram including explicit labels for the X axis on the given measurement scale. |
|
Histogram(String title,
float yMin,
float yMax)
Lays out the canvas for the histogram with given title. |
|
Histogram(String title,
float xMin,
float xMax,
float yMin,
float yMax)
Lays out the canvas for the histogram with given title. |
|
Histogram(String title,
float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax)
Lays out the canvas for the histogram with given title and including explicit labels for the X axis. |
|
Histogram(String title,
float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax,
int measurementScale)
Lays out the canvas for the histogram with given title and including explicit labels for the X axis on the given measurement scale. |
|
| Method Summary | |
|---|---|
void |
paintComponent(Graphics g)
Displays the bars of the histogram. |
void |
updateXAxis(float min,
float max)
Updates the histogram X-axis with the given range. |
void |
updateXAxis(float min,
float max,
String[] xLabels,
int scale)
Updates the histogram X-axis with the given range, labels and measurement scale. |
void |
updateYAxis(float min,
float max)
Updates the histogram Y-axis with the given range. |
| Methods inherited from class jwo.utils.gui.JWGraph |
|---|
addItem, addItem, erase, getFM, getPreferredSize, getValues, getXMax, getXMeasurementScale, getXMin, getYMax, getYMeasurementScale, getYMin, makeTransparent, removeItem, removeItems, roundAxes, roundXAxis, roundYAxis, setAspectRatio, setOpacity, setTitle, setXAxis, setXAxis, setXAxisInc, setXMeasurementScale, setYAxis, setYAxis, setYAxisInc, setYMeasurementScale |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Histogram()
public Histogram(float yMin,
float yMax)
yMin - Minimum y value.yMax - Maximum y value.
public Histogram(String title,
float yMin,
float yMax)
title - Title of bar chart.yMin - Minimum y value.yMax - Maximum y value.
public Histogram(float xMin,
float xMax,
float yMin,
float yMax)
xMin - Minimum x value.xMax - Maximum x value.yMin - Minimum y value.yMax - Maximum y value.
public Histogram(String title,
float xMin,
float xMax,
float yMin,
float yMax)
title - Title of bar chart.xMin - Minimum x value.xMax - Maximum x value.yMin - Minimum y value.yMax - Maximum y value.
public Histogram(float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax)
xMin - Minimum x value.xMax - Maximum x value.xLabels - Array of labels for the X axis.yMin - Minimum y value.yMax - Maximum y value.
public Histogram(String title,
float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax)
title - Title of bar chart.xMin - Minimum x value.xMax - Maximum x value.xLabels - Array of labels for the X axis.yMin - Minimum y value.yMax - Maximum y value.
public Histogram(float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax,
int measurementScale)
xMin - Minimum x value.xMax - Maximum x value.xLabels - Array of labels for the X axis.yMin - Minimum y value.yMax - Maximum y value.measurementScale - Measurement scale for the X axis labels.
public Histogram(String title,
float xMin,
float xMax,
String[] xLabels,
float yMin,
float yMax,
int measurementScale)
title - Title of bar chart.xMin - Minimum x value.xMax - Maximum x value.xLabels - Array of labels for the X axis.yMin - Minimum y value.yMax - Maximum y value.measurementScale - Measurement scale for the X axis labels.| Method Detail |
|---|
public void updateYAxis(float min,
float max)
min - New minimum y value.max - New maximum y value.
public void updateXAxis(float min,
float max)
min - New minimum x value.max - New maximum x value.
public void updateXAxis(float min,
float max,
String[] xLabels,
int scale)
min - New minimum x value.max - New maximum x value.xLabels - Labels to use for X axis.scale - Measurement scale.public void paintComponent(Graphics g)
paintComponent in class JWGraphg - Graphics method to paint to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||