|
||||||||||
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
it.geosolutions.rendered.viewer.DisplayHistogram
public class DisplayHistogram
This class displays a histogram (instance of Histogram) as a component. Only the first histogram band ins considered for plotting. The component has a tooltip which displays the bin index and bin count for the bin under the mouse cursor.
Nested Class Summary |
---|
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
DisplayHistogram(javax.media.jai.Histogram histogram,
String title)
The constructor for this class, which will set its fields' values and get some information about the histogram. |
|
DisplayHistogram(String title)
|
Method Summary | |
---|---|
Dimension |
getMaximumSize()
This method informs the maximum size of this component, which will be the same as the preferred size. |
Dimension |
getMinimumSize()
This method informs the minimum size of this component, which will be the same as the preferred size. |
Dimension |
getPreferredSize()
This method informs the preferred size of this component, which will be constant. |
void |
mouseDragged(MouseEvent e)
This method does not do anything, it is here to keep the MouseMotionListener interface happy. |
void |
mouseMoved(MouseEvent e)
This method will be called when the mouse is moved over the component. |
protected void |
paintComponent(Graphics g)
This method will paint the component. |
void |
setBinWidth(int newWidth)
Override the default bin width (for plotting) |
void |
setHeight(int h)
Override the default height for the plot. |
void |
setImage(javax.media.jai.PlanarImage wrapRenderedImage)
|
void |
setIndexMultiplier(int i)
Override the index multiplying factor (for bins with width ! |
void |
setMaxCount(int m)
Set the maximum value (used to scale the histogram y-axis). |
void |
setSkipIndexes(int i)
Override the index skipping factor (determines how many labels will be printed on the index axis). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DisplayHistogram(javax.media.jai.Histogram histogram, String title)
histogram
- the histogram to be plotted.title
- the title of the plot.public DisplayHistogram(String title)
Method Detail |
---|
public void setBinWidth(int newWidth)
public void setHeight(int h)
h
- the new height.public void setIndexMultiplier(int i)
public void setSkipIndexes(int i)
public void setMaxCount(int m)
public Dimension getMaximumSize()
getMaximumSize
in class JComponent
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void setImage(javax.media.jai.PlanarImage wrapRenderedImage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |