ChartDirector
Class ChartViewer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
ChartDirector.ChartViewer
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants
public class ChartViewer
- extends javax.swing.JLabel
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
java.awt.Component.BaselineResizeBehavior |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
void |
addHotSpotListener(HotSpotListener listener)
|
void |
addHotSpotMotionListener(HotSpotMotionListener listener)
|
void |
addTrackCursorListener(TrackCursorListener listener)
|
void |
addViewPortListener(ViewPortListener listener)
|
void |
clearAllRanges()
|
void |
disposeReference()
|
BaseChart |
getChart()
|
int |
getChartMouseX()
|
int |
getChartMouseY()
|
java.util.Hashtable |
getHotSpot(int x,
int y)
|
java.awt.Cursor |
getHotSpotCursor()
|
java.awt.Image |
getImage()
|
java.lang.String |
getImageMap()
|
int |
getMinimumDrag()
|
int |
getMouseUsage()
|
double |
getMouseWheelZoomRatio()
|
java.awt.Cursor |
getNoZoomCursor()
|
int |
getPlotAreaMouseX()
|
int |
getPlotAreaMouseY()
|
java.awt.Cursor |
getScrollCursor()
|
int |
getScrollDirection()
|
java.awt.Color |
getSelectionBorderColor()
|
int |
getSelectionBorderWidth()
|
java.lang.String |
getToolTipText()
|
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event)
|
double |
getValueAtViewPort(java.lang.String id,
double ratio)
|
double |
getValueAtViewPort(java.lang.String id,
double ratio,
boolean isLogScale)
|
double |
getViewPortAtValue(java.lang.String id,
double ratio)
|
double |
getViewPortAtValue(java.lang.String id,
double value,
boolean isLogScale)
|
double |
getViewPortHeight()
|
double |
getViewPortLeft()
|
double |
getViewPortTop()
|
double |
getViewPortWidth()
|
int |
getZoomDirection()
|
java.awt.Cursor |
getZoomInCursor()
|
double |
getZoomInHeightLimit()
|
double |
getZoomInRatio()
|
double |
getZoomInWidthLimit()
|
java.awt.Cursor |
getZoomOutCursor()
|
double |
getZoomOutHeightLimit()
|
double |
getZoomOutRatio()
|
double |
getZoomOutWidthLimit()
|
boolean |
isInMouseMoveEvent()
|
boolean |
isInViewPortChangedEvent()
|
boolean |
isMouseDragging()
|
boolean |
isMouseOnChart()
|
boolean |
isMouseOnPlotArea()
|
void |
removeDynamicLayer(java.lang.String eventId)
|
void |
removeHotSpotListener(HotSpotListener listener)
|
void |
removeHotSpotMotionListener(HotSpotMotionListener listener)
|
void |
removeTrackCursorListener(TrackCursorListener listener)
|
void |
removeViewPortListener(ViewPortListener listener)
|
void |
setChart(BaseChart c)
|
void |
setCursor(java.awt.Cursor cursor)
|
void |
setFullRange(java.lang.String id,
java.util.Date minValue,
java.util.Date maxValue)
|
void |
setFullRange(java.lang.String id,
double minValue,
double maxValue)
|
void |
setHotSpotCursor(java.awt.Cursor cursor)
|
void |
setImage(java.awt.Image img)
|
void |
setImageMap(java.lang.String imageMap)
|
void |
setMinimumDrag(int dragAmount)
|
void |
setMouseUsage(int usage)
|
void |
setMouseWheelZoomRatio(double ratio)
|
void |
setNoZoomCursor(java.awt.Cursor cursor)
|
void |
setPlotAreaMouseMargin(int margin)
|
void |
setPlotAreaMouseMargin(int leftMargin,
int rightMargin,
int topMargin,
int bottomMargin)
|
void |
setPlotAreaMouseMargin2(int leftMargin,
int rightMargin,
int topMargin,
int bottomMargin)
|
void |
setScrollCursor(java.awt.Cursor cursor)
|
void |
setScrollDirection(int direction)
|
void |
setSelectionBorderColor(java.awt.Color color)
|
void |
setSelectionBorderWidth(int lineWidth)
|
void |
setToolTipText(java.lang.String toolTip)
|
void |
setViewPortHeight(double height)
|
void |
setViewPortLeft(double left)
|
void |
setViewPortTop(double top)
|
void |
setViewPortWidth(double width)
|
void |
setZoomDirection(int direction)
|
void |
setZoomInCursor(java.awt.Cursor cursor)
|
void |
setZoomInHeightLimit(double ratio)
|
void |
setZoomInRatio(double ratio)
|
void |
setZoomInWidthLimit(double ratio)
|
void |
setZoomOutCursor(java.awt.Cursor cursor)
|
void |
setZoomOutHeightLimit(double ratio)
|
void |
setZoomOutRatio(double ratio)
|
void |
setZoomOutWidthLimit(double ratio)
|
void |
syncDateAxisWithViewPort(java.lang.String id,
Axis axis)
|
void |
syncLinearAxisWithViewPort(java.lang.String id,
Axis axis)
|
void |
syncLogAxisWithViewPort(java.lang.String id,
Axis axis)
|
void |
updateDisplay()
|
boolean |
updateFullRangeH(java.lang.String id,
java.util.Date minValue,
java.util.Date maxValue,
int updateType)
|
boolean |
updateFullRangeH(java.lang.String id,
double minValue,
double maxValue,
int updateType)
|
boolean |
updateFullRangeV(java.lang.String id,
java.util.Date minValue,
java.util.Date maxValue,
int updateType)
|
boolean |
updateFullRangeV(java.lang.String id,
double minValue,
double maxValue,
int updateType)
|
void |
updateViewPort(boolean needUpdateChart,
boolean needUpdateImageMap)
|
void |
validateViewPort()
|
Methods inherited from class javax.swing.JLabel |
getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChartViewer
public ChartViewer()
getHotSpot
public java.util.Hashtable getHotSpot(int x,
int y)
isInMouseMoveEvent
public boolean isInMouseMoveEvent()
isMouseDragging
public boolean isMouseDragging()
setToolTipText
public void setToolTipText(java.lang.String toolTip)
- Overrides:
setToolTipText
in class javax.swing.JComponent
getToolTipText
public java.lang.String getToolTipText()
- Overrides:
getToolTipText
in class javax.swing.JComponent
getToolTipText
public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
- Overrides:
getToolTipText
in class javax.swing.JComponent
setImage
public void setImage(java.awt.Image img)
getImage
public java.awt.Image getImage()
setChart
public void setChart(BaseChart c)
getChart
public BaseChart getChart()
setImageMap
public void setImageMap(java.lang.String imageMap)
getImageMap
public java.lang.String getImageMap()
disposeReference
public void disposeReference()
addHotSpotListener
public void addHotSpotListener(HotSpotListener listener)
removeHotSpotListener
public void removeHotSpotListener(HotSpotListener listener)
addHotSpotMotionListener
public void addHotSpotMotionListener(HotSpotMotionListener listener)
removeHotSpotMotionListener
public void removeHotSpotMotionListener(HotSpotMotionListener listener)
addTrackCursorListener
public void addTrackCursorListener(TrackCursorListener listener)
removeTrackCursorListener
public void removeTrackCursorListener(TrackCursorListener listener)
setCursor
public void setCursor(java.awt.Cursor cursor)
- Overrides:
setCursor
in class java.awt.Component
getHotSpotCursor
public java.awt.Cursor getHotSpotCursor()
setHotSpotCursor
public void setHotSpotCursor(java.awt.Cursor cursor)
getZoomInCursor
public java.awt.Cursor getZoomInCursor()
setZoomInCursor
public void setZoomInCursor(java.awt.Cursor cursor)
getZoomOutCursor
public java.awt.Cursor getZoomOutCursor()
setZoomOutCursor
public void setZoomOutCursor(java.awt.Cursor cursor)
getNoZoomCursor
public java.awt.Cursor getNoZoomCursor()
setNoZoomCursor
public void setNoZoomCursor(java.awt.Cursor cursor)
getScrollCursor
public java.awt.Cursor getScrollCursor()
setScrollCursor
public void setScrollCursor(java.awt.Cursor cursor)
setSelectionBorderWidth
public void setSelectionBorderWidth(int lineWidth)
getSelectionBorderWidth
public int getSelectionBorderWidth()
setSelectionBorderColor
public void setSelectionBorderColor(java.awt.Color color)
getSelectionBorderColor
public java.awt.Color getSelectionBorderColor()
setPlotAreaMouseMargin
public void setPlotAreaMouseMargin(int margin)
setPlotAreaMouseMargin2
public void setPlotAreaMouseMargin2(int leftMargin,
int rightMargin,
int topMargin,
int bottomMargin)
setPlotAreaMouseMargin
public void setPlotAreaMouseMargin(int leftMargin,
int rightMargin,
int topMargin,
int bottomMargin)
getChartMouseX
public int getChartMouseX()
getChartMouseY
public int getChartMouseY()
isMouseOnChart
public boolean isMouseOnChart()
isMouseOnPlotArea
public boolean isMouseOnPlotArea()
getPlotAreaMouseX
public int getPlotAreaMouseX()
getPlotAreaMouseY
public int getPlotAreaMouseY()
removeDynamicLayer
public void removeDynamicLayer(java.lang.String eventId)
updateDisplay
public void updateDisplay()
setViewPortLeft
public void setViewPortLeft(double left)
getViewPortLeft
public double getViewPortLeft()
setViewPortTop
public void setViewPortTop(double top)
getViewPortTop
public double getViewPortTop()
setViewPortWidth
public void setViewPortWidth(double width)
getViewPortWidth
public double getViewPortWidth()
setViewPortHeight
public void setViewPortHeight(double height)
getViewPortHeight
public double getViewPortHeight()
validateViewPort
public void validateViewPort()
getMouseUsage
public int getMouseUsage()
setMouseUsage
public void setMouseUsage(int usage)
getScrollDirection
public int getScrollDirection()
setScrollDirection
public void setScrollDirection(int direction)
getZoomDirection
public int getZoomDirection()
setZoomDirection
public void setZoomDirection(int direction)
getZoomInRatio
public double getZoomInRatio()
setZoomInRatio
public void setZoomInRatio(double ratio)
getZoomOutRatio
public double getZoomOutRatio()
setZoomOutRatio
public void setZoomOutRatio(double ratio)
getZoomInWidthLimit
public double getZoomInWidthLimit()
setZoomInWidthLimit
public void setZoomInWidthLimit(double ratio)
getZoomOutWidthLimit
public double getZoomOutWidthLimit()
setZoomOutWidthLimit
public void setZoomOutWidthLimit(double ratio)
getZoomInHeightLimit
public double getZoomInHeightLimit()
setZoomInHeightLimit
public void setZoomInHeightLimit(double ratio)
getZoomOutHeightLimit
public double getZoomOutHeightLimit()
setZoomOutHeightLimit
public void setZoomOutHeightLimit(double ratio)
getMouseWheelZoomRatio
public double getMouseWheelZoomRatio()
setMouseWheelZoomRatio
public void setMouseWheelZoomRatio(double ratio)
getMinimumDrag
public int getMinimumDrag()
setMinimumDrag
public void setMinimumDrag(int dragAmount)
updateViewPort
public void updateViewPort(boolean needUpdateChart,
boolean needUpdateImageMap)
isInViewPortChangedEvent
public boolean isInViewPortChangedEvent()
addViewPortListener
public void addViewPortListener(ViewPortListener listener)
removeViewPortListener
public void removeViewPortListener(ViewPortListener listener)
setFullRange
public void setFullRange(java.lang.String id,
double minValue,
double maxValue)
setFullRange
public void setFullRange(java.lang.String id,
java.util.Date minValue,
java.util.Date maxValue)
updateFullRangeH
public boolean updateFullRangeH(java.lang.String id,
double minValue,
double maxValue,
int updateType)
updateFullRangeH
public boolean updateFullRangeH(java.lang.String id,
java.util.Date minValue,
java.util.Date maxValue,
int updateType)
updateFullRangeV
public boolean updateFullRangeV(java.lang.String id,
double minValue,
double maxValue,
int updateType)
updateFullRangeV
public boolean updateFullRangeV(java.lang.String id,
java.util.Date minValue,
java.util.Date maxValue,
int updateType)
clearAllRanges
public void clearAllRanges()
getValueAtViewPort
public double getValueAtViewPort(java.lang.String id,
double ratio,
boolean isLogScale)
getValueAtViewPort
public double getValueAtViewPort(java.lang.String id,
double ratio)
getViewPortAtValue
public double getViewPortAtValue(java.lang.String id,
double value,
boolean isLogScale)
getViewPortAtValue
public double getViewPortAtValue(java.lang.String id,
double ratio)
syncLinearAxisWithViewPort
public void syncLinearAxisWithViewPort(java.lang.String id,
Axis axis)
syncLogAxisWithViewPort
public void syncLogAxisWithViewPort(java.lang.String id,
Axis axis)
syncDateAxisWithViewPort
public void syncDateAxisWithViewPort(java.lang.String id,
Axis axis)