|
||||||||||
| 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
org.jfree.chart.ChartPanel
ucar.unidata.idv.control.chart.PlotWrapper.MyChartPanel
protected class PlotWrapper.MyChartPanel
Class MyChartPanel adds items to a popup menu
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
int |
lastEventX
Last x |
int |
lastEventY
Last y |
| Fields inherited from class org.jfree.chart.ChartPanel |
|---|
COPY_COMMAND, DEFAULT_BUFFER_USED, DEFAULT_HEIGHT, DEFAULT_MAXIMUM_DRAW_HEIGHT, DEFAULT_MAXIMUM_DRAW_WIDTH, DEFAULT_MINIMUM_DRAW_HEIGHT, DEFAULT_MINIMUM_DRAW_WIDTH, DEFAULT_WIDTH, DEFAULT_ZOOM_TRIGGER_DISTANCE, localizationResources, PRINT_COMMAND, PROPERTIES_COMMAND, SAVE_COMMAND, ZOOM_IN_BOTH_COMMAND, ZOOM_IN_DOMAIN_COMMAND, ZOOM_IN_RANGE_COMMAND, ZOOM_OUT_BOTH_COMMAND, ZOOM_OUT_DOMAIN_COMMAND, ZOOM_OUT_RANGE_COMMAND, ZOOM_RESET_BOTH_COMMAND, ZOOM_RESET_DOMAIN_COMMAND, ZOOM_RESET_RANGE_COMMAND |
| 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.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PlotWrapper.MyChartPanel(org.jfree.chart.JFreeChart chart)
ctor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Handle the event. |
protected JMenuItem |
addChartMenuItem(JMenu result,
String label,
String cmd)
utility |
protected void |
addChartMenuItems(List items)
add menu items |
protected void |
displayPopupMenu(int x,
int y)
Show the popup menu. |
String |
getToolTipText(MouseEvent event)
Hook to pass through to the chartwrapper |
void |
mouseClicked(MouseEvent event)
Handle the event. |
void |
mouseDragged(MouseEvent event)
Handle the event. |
void |
mousePressed(MouseEvent event)
Handle the event. |
void |
mouseReleased(MouseEvent event)
Handle the event. |
| Methods inherited from class org.jfree.chart.ChartPanel |
|---|
addChartMouseListener, addOverlay, chartChanged, chartProgress, createChartPrintJob, createPopupMenu, createPopupMenu, doCopy, doEditChartProperties, doSaveAs, getAnchor, getChart, getChartRenderingInfo, getDefaultDirectoryForSaveAs, getDismissDelay, getEntityForPoint, getFillZoomRectangle, getHorizontalAxisTrace, getHorizontalTraceLine, getInitialDelay, getListeners, getMaximumDrawHeight, getMaximumDrawWidth, getMinimumDrawHeight, getMinimumDrawWidth, getPopupMenu, getRefreshBuffer, getReshowDelay, getScaleX, getScaleY, getScreenDataArea, getScreenDataArea, getVerticalAxisTrace, getVerticalTraceLine, getZoomAroundAnchor, getZoomFillPaint, getZoomInFactor, getZoomOutFactor, getZoomOutlinePaint, getZoomTriggerDistance, isDomainZoomable, isEnforceFileExtensions, isMouseWheelEnabled, isRangeZoomable, mouseEntered, mouseExited, mouseMoved, overlayChanged, paintComponent, print, removeChartMouseListener, removeOverlay, restoreAutoBounds, restoreAutoDomainBounds, restoreAutoRangeBounds, scale, setAnchor, setChart, setDefaultDirectoryForSaveAs, setDismissDelay, setDisplayToolTips, setDomainZoomable, setEnforceFileExtensions, setFillZoomRectangle, setHorizontalAxisTrace, setHorizontalTraceLine, setInitialDelay, setMaximumDrawHeight, setMaximumDrawWidth, setMinimumDrawHeight, setMinimumDrawWidth, setMouseWheelEnabled, setMouseZoomable, setMouseZoomable, setPopupMenu, setRangeZoomable, setRefreshBuffer, setReshowDelay, setVerticalAxisTrace, setVerticalTraceLine, setZoomAroundAnchor, setZoomFillPaint, setZoomInFactor, setZoomOutFactor, setZoomOutlinePaint, setZoomTriggerDistance, translateJava2DToScreen, translateScreenToJava2D, updateUI, zoom, zoomInBoth, zoomInDomain, zoomInRange, zoomOutBoth, zoomOutDomain, zoomOutRange |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int lastEventX
public int lastEventY
| Constructor Detail |
|---|
public PlotWrapper.MyChartPanel(org.jfree.chart.JFreeChart chart)
chart - the chart| Method Detail |
|---|
public String getToolTipText(MouseEvent event)
getToolTipText in class org.jfree.chart.ChartPanelevent - The event
protected void displayPopupMenu(int x,
int y)
displayPopupMenu in class org.jfree.chart.ChartPanelx - xy - y
protected JMenuItem addChartMenuItem(JMenu result,
String label,
String cmd)
result - The menulabel - The labelcmd - The command
protected void addChartMenuItems(List items)
items - List of menu itemspublic void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenermouseDragged in class org.jfree.chart.ChartPanelevent - The eventpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenermouseReleased in class org.jfree.chart.ChartPanelevent - The eventpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenermouseClicked in class org.jfree.chart.ChartPanelevent - The eventpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenermousePressed in class org.jfree.chart.ChartPanelevent - The eventpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListeneractionPerformed in class org.jfree.chart.ChartPanelevent - the action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||