|
|||||||||
| 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
info.monitorenter.gui.chart.Chart2D
info.monitorenter.gui.chart.ZoomableChart
public class ZoomableChart
enriched by a zoom-functionality in
the x and y dimension.
Chart2D
| 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 info.monitorenter.gui.chart.Chart2D |
|---|
AXIX_CONSTANT_NAMES, DEBUG_SCALING, DEBUG_THREADING, PROPERTY_ADD_REMOVE_TRACE, PROPERTY_AXIS_X, PROPERTY_AXIS_Y, PROPERTY_BACKGROUND_COLOR, PROPERTY_FONT, PROPERTY_FOREGROUND_COLOR, PROPERTY_GRID_COLOR, PROPERTY_PAINTLABELS, X, X_Y, Y |
| 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 | |
|---|---|
ZoomableChart()
Defcon. |
|
| Method Summary | |
|---|---|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paintComponent(Graphics g)
|
void |
zoom(double xmin,
double xmax)
Zooms to the selected bounds in x-axis. |
void |
zoom(double xmin,
double xmax,
double ymin,
double ymax)
Zooms to the selected bounds in both directions. modified by Fabalabs (KP) 20060914: zoom also in y-direction |
void |
zoomAll()
Resets the zooming area to a range that displays all data. |
| Methods inherited from class info.monitorenter.gui.chart.Chart2D |
|---|
addTrace, createToolTip, destroy, finalize, findMaxX, findMaxY, findMinX, findMinY, getAxisTickPainter, getAxisX, getAxisY, getGridColor, getMaxX, getMaxY, getMinPaintLatency, getMinX, getMinY, getOffsetX, getSynchronizedXStartChart, getToolTipText, getTraces, getXChartEnd, getXChartStart, getYChartEnd, getYChartStart, isDirtyScaling, isDirtyScaling, isPaintLabels, isRequestedRepaint, isToolTipCoords, iterator, paint, propertyChange, removeTrace, repaint, repaint, repaint, repaint, repaint, setAxisTickPainter, setAxisX, setAxisY, setBackground, setForeground, setGridColor, setMinPaintLatency, setPaintLabels, setRequestedRepaint, setSynchronizedXStartChart, setToolTipCoords, snapShot, snapShot, toString, translateMousePosition |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZoomableChart()
| Method Detail |
|---|
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerMouseListener.mouseClicked(java.awt.event.MouseEvent)public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerMouseMotionListener.mouseDragged(java.awt.event.MouseEvent)public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerMouseListener.mouseEntered(java.awt.event.MouseEvent)public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerMouseListener.mouseExited(java.awt.event.MouseEvent)public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerMouseMotionListener.mouseMoved(java.awt.event.MouseEvent)public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerMouseListener.mousePressed(java.awt.event.MouseEvent)public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerMouseListener.mouseReleased(java.awt.event.MouseEvent)public void paintComponent(Graphics g)
paintComponent in class JComponentJComponent.paintComponent(java.awt.Graphics)
public void zoom(double xmin,
double xmax)
xmin - the lower x bound.xmax - the upper x bound.
public void zoom(double xmin,
double xmax,
double ymin,
double ymax)
xmin - the lower x bound.xmax - the upper x bound.ymin - the lower y bound.ymax - the upper y bound.public void zoomAll()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||