|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
lt.monarch.chart.awt.ChartCanvas
public class ChartCanvas extends java.awt.Panel implements ViewContainer
AWT ViewContainer implementation
| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
java.awt.Panel.AccessibleAWTPanel |
| 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 java.awt.Image |
buffer
image for double buffering |
protected View |
chart
the chart |
protected ChartObjectsMap |
chartObjectsMap
|
protected java.awt.Dimension |
currentChartSize
current chart size |
protected HotSpotMap |
hotSpotMap
hot spot map |
| 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 |
|---|
ChartCanvas(View chart)
Constructs a new ChartCanvas with the specified chart. |
| Modifier and Type | Method and Description |
|---|---|
void |
addGestureListener(GestureListener l)
Does nothing. |
void |
addMultitouchListener(MultitouchListener l)
Does nothing. |
void |
addNotify()
Makes this Container visible by connecting it to a native screen resource. |
void |
doLayout()
Causes this container to lay out its components. |
ChartObjectsMap |
getChartObjectsMap()
Returns a chart objects map of this chart canvas. |
java.awt.Component |
getComponent()
Returns the associated Component |
HotSpotMap |
getHotSpotMap()
Returns a hot spot map of this chart canvas. |
java.awt.Insets |
getInsets()
Determines the insets of this container, which indicate the size of the container's border. |
java.awt.Dimension |
getMinimumSize()
Returns the minimum size of this container. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of this container. |
AbstractGraphics |
getUpdateGraphics()
Returns the default graphics context, where any view can render itself |
View |
getView()
Returns chart view. |
void |
paint(java.awt.Graphics g)
Paints the container. |
void |
removeGestureListener(GestureListener l)
Does nothing. |
void |
removeMultitouchListener(MultitouchListener l)
Does nothing. |
void |
removeNotify()
Makes this Container invisible by removing its connection to its native screen resource. |
void |
repaint(Rectangle2D r)
Requests a container update |
void |
revalidate()
Requests a container to be revalidated |
void |
setChartObjectsMap(ChartObjectsMap chartObjectsMap)
Sets the specified chart objects map for this chart canvas. |
void |
setHotSpotMap(HotSpotMap map)
Sets the specified hot spot map for this chart canvas. |
void |
update(java.awt.Graphics g)
Updates the container. |
void |
validate()
Validates this container and its chart. |
| Methods inherited from class java.awt.Panel |
|---|
getAccessibleContext |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, 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 java.awt.Dimension currentChartSize
protected HotSpotMap hotSpotMap
protected ChartObjectsMap chartObjectsMap
protected View chart
protected transient java.awt.Image buffer
| Constructor Detail |
|---|
public ChartCanvas(View chart)
ChartCanvas with the specified chart.
chart - the chart| Method Detail |
|---|
public HotSpotMap getHotSpotMap()
getHotSpotMap in interface ViewContainerpublic void setHotSpotMap(HotSpotMap map)
map - the hot spot mappublic ChartObjectsMap getChartObjectsMap()
getChartObjectsMap in interface ViewContainerpublic void setChartObjectsMap(ChartObjectsMap chartObjectsMap)
map - the chart objects mappublic java.awt.Insets getInsets()
getInsets in class java.awt.Containernew Insets (5,5,5,5)public java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Containerpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Containerpublic void repaint(Rectangle2D r)
repaint in interface ViewContainerr - the specified rectangle of this view container to repaintpublic void revalidate()
revalidate in interface ViewContainerpublic java.awt.Component getComponent()
getComponent in interface ViewContainerpublic AbstractGraphics getUpdateGraphics()
getUpdateGraphics in interface ViewContainerpublic void update(java.awt.Graphics g)
paint method for the chart.
update in class java.awt.Containerg - the Graphics context in which to paint chartpublic void validate()
validate in class java.awt.Containerpublic void paint(java.awt.Graphics g)
paint in class java.awt.Containerg - the specified Graphics contextpublic void doLayout()
doLayout in class java.awt.Containerpublic void addNotify()
this.
addNotify in class java.awt.Panelpublic void removeNotify()
null.
removeNotify in class java.awt.Containerpublic View getView()
getView in interface ViewContainerpublic void addGestureListener(GestureListener l)
addGestureListener in interface ViewContainerl - the gesture listenerpublic void addMultitouchListener(MultitouchListener l)
addMultitouchListener in interface ViewContainerl - the gesture listenerpublic void removeGestureListener(GestureListener l)
removeGestureListener in interface ViewContainerl - the gesture listenerpublic void removeMultitouchListener(MultitouchListener l)
removeMultitouchListener in interface ViewContainerl - the gesture listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||