|
|||||||||
| 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
lt.monarch.chart.swing.JChartPanel
public class JChartPanel extends javax.swing.JPanel implements ViewContainer
Swing ViewContainer implementation.
| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Modifier and Type | Field and Description |
|---|---|
protected View |
chart
the chart |
protected ChartObjectsMap |
chartObjectsMap
chart objects map |
protected HotSpotMap |
hotSpotMap
the hot spot map |
protected PaintMode |
paintMode
Panel paint mode. |
protected PaintStyle<ChartPaintTags> |
paintStyle
Color style object for getting and setting entityStyle to stylesheet |
Style |
style
Local stylesheet. |
| 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 and Description |
|---|
JChartPanel(View chart)
Constructs a new JChartPanel with the specified chart. |
| Modifier and Type | Method and Description |
|---|---|
void |
addGestureListener(GestureListener l)
Adds the specified gesture listener to receive gesture events from this view container. |
void |
addMultitouchListener(MultitouchListener l)
Adds the specified multitouch listener to receive multitouch events from this view container. |
void |
addNotify()
Notifies this component that it now has a parent component. |
void |
disableChartObjectPropertiesEditor()
Disables chart object properties editor. |
void |
disableToolTips()
Disables tool tips for this chart container. |
void |
doLayout()
Causes this container to lay out its components. |
void |
enableChartObjectPropertiesEditor()
Enables default chart object properties editor. |
void |
enableChartObjectPropertiesEditor(ChartObjectPropertiesEditor charPropertiesEditor)
Enables a specific chart object properties editor. |
void |
enableToolTips()
Enables tool tips for this chart container. |
ChartObjectsMap.TaggedChartObject |
findObjectUnder(Point2D point)
Find mapped object under point |
ChartObjectsMap |
getChartObjectsMap()
Returns a chart objects map for the view container. |
java.awt.Component |
getComponent()
Returns the associated Component. |
HotSpotMap |
getHotSpotMap()
Gets hot spot map of the chart panel. |
java.awt.Dimension |
getMaximumSize()
Gets the maximum size of this chart panel. |
java.awt.Dimension |
getMinimumSize()
Gets the minimum size of this chart panel. |
PaintMode |
getPaintMode()
Returns panel painting mode. |
PaintStyle<ChartPaintTags> |
getPaintStyle()
Gets panel paint style object |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this chart panel. |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent e)
Returns the string to be used as the tool tip for event. |
AbstractGraphics |
getUpdateGraphics()
Returns the default graphics context, where any view can render itself. |
AbstractGraphics |
getUpdateGraphics(java.awt.Graphics2D graphics)
|
View |
getView()
Returns chart view. |
boolean |
isFreezed()
Determines whether this chart container is frozen. |
void |
paintComponent(java.awt.Graphics graphics)
Triggers JPanel's paintComponent method, updates chart size, validate's chart
and renders it. |
protected void |
paintComponent2(java.awt.Graphics graphics)
|
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
Processes mouse events occurring on this component |
protected void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
Processes mouse motion events, such as MouseEvent.MOUSE_DRAGGED. |
void |
removeGestureListener(GestureListener l)
Removes the specified gesture listener so that it no longer receives gesture events from this view container. |
void |
removeMultitouchListener(MultitouchListener l)
Removes the specified multitouch listener so that it no longer receives multitouch events from this view container. |
void |
removeNotify()
Notifies this component that it no longer has a parent component. |
void |
repaint(Rectangle2D r)
Requests a container update. |
void |
revalidate()
Requests a container to be revalidated. |
void |
setFreezed(boolean flag)
Freezes or defreezes chart container. |
void |
setHotSpotMap(HotSpotMap map)
Sets the specified hot spot map for the chart panel. |
void |
setMaximumSize(java.awt.Dimension maximumSize)
Sets the maximum size of this chart panel. |
void |
setMinimumSize(java.awt.Dimension minimumSize)
Sets the minimum size of this chart panel. |
void |
setPaintMode(PaintMode mode)
Sets panel painting mode. |
void |
setPreferredSize(java.awt.Dimension preferredSize)
Sets the preferred size of this chart panel. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, imageUpdate, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.ViewContainer |
|---|
addMouseListener, addMouseMotionListener, addMouseWheelListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener |
| Field Detail |
|---|
protected View chart
protected HotSpotMap hotSpotMap
protected ChartObjectsMap chartObjectsMap
protected PaintMode paintMode
public final Style style
protected PaintStyle<ChartPaintTags> paintStyle
| Constructor Detail |
|---|
public JChartPanel(View chart)
JChartPanel with the specified chart.
chart - the chart| Method Detail |
|---|
public PaintStyle<ChartPaintTags> getPaintStyle()
public HotSpotMap getHotSpotMap()
getHotSpotMap in interface ViewContainerpublic void setHotSpotMap(HotSpotMap map)
map - the new hot spot mappublic void setMinimumSize(java.awt.Dimension minimumSize)
setMinimumSize in class javax.swing.JComponentminimumSize - the new minimum size of this chart panelpublic void setPreferredSize(java.awt.Dimension preferredSize)
setPreferredSize in class javax.swing.JComponentpreferredSize - the new preferred size of this chart panelpublic void setMaximumSize(java.awt.Dimension maximumSize)
setMaximumSize in class javax.swing.JComponentmaximumSize - the new maximum size of this chart panelpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Dimension getMaximumSize()
getMaximumSize in class javax.swing.JComponentpublic void enableToolTips()
public void disableToolTips()
public void repaint(Rectangle2D r)
repaint in interface ViewContainerr - the specified rectangle of this view container to repaintpublic void revalidate()
revalidate in interface ViewContainerrevalidate in class javax.swing.JComponentpublic java.awt.Component getComponent()
getComponent in interface ViewContainerpublic AbstractGraphics getUpdateGraphics()
getUpdateGraphics in interface ViewContainerpublic AbstractGraphics getUpdateGraphics(java.awt.Graphics2D graphics)
public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
getToolTipText in class javax.swing.JComponente - the mouse eventpublic void doLayout()
doLayout in class java.awt.Containerpublic void paintComponent(java.awt.Graphics graphics)
paintComponent method, updates chart size, validate's chart
and renders it.
paintComponent in class javax.swing.JComponentgraphics - the graphics contextprotected void paintComponent2(java.awt.Graphics graphics)
public void addNotify()
addNotify in class javax.swing.JComponentpublic void removeNotify()
null.
removeNotify in class javax.swing.JComponentpublic void setFreezed(boolean flag)
JChartPanel caches its
current view into off-screen image and until defrozen paints the cached view instead of
requesting the chart to render the view. null value is assigned to chart's
container parameter, when container is frozen. When unfrozen reference of this
container instance is set back to the chart.
flag - true to freeze the containerpublic boolean isFreezed()
true if container is frozen; false otherwisepublic void setPaintMode(PaintMode mode)
mode - series painting mode.public PaintMode getPaintMode()
public View getView()
getView in interface ViewContainerpublic ChartObjectsMap getChartObjectsMap()
getChartObjectsMap in interface ViewContainerpublic void enableChartObjectPropertiesEditor()
public void enableChartObjectPropertiesEditor(ChartObjectPropertiesEditor charPropertiesEditor)
charPropertiesEditor - chart properties editorpublic void disableChartObjectPropertiesEditor()
public void addGestureListener(GestureListener l)
ViewContainer
addGestureListener in interface ViewContainerl - the gesture listenerpublic void addMultitouchListener(MultitouchListener l)
ViewContainer
addMultitouchListener in interface ViewContainerl - the gesture listenerpublic void removeGestureListener(GestureListener l)
ViewContainer
removeGestureListener in interface ViewContainerl - the gesture listenerpublic void removeMultitouchListener(MultitouchListener l)
ViewContainer
removeMultitouchListener in interface ViewContainerl - the gesture listenerprotected void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent in class javax.swing.JComponente - the mouse eventprotected void processMouseMotionEvent(java.awt.event.MouseEvent e)
processMouseMotionEvent in class javax.swing.JComponente - the MouseEventpublic ChartObjectsMap.TaggedChartObject findObjectUnder(Point2D point)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||