|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
com.swfm.mica.core.MiAWTCanvas
This class serves as the interface (driver/wrapper) to the modern (post 1.0.2 AWT) graphics routines, specifically the AWT Canvas widget.
| Field Summary |
| Constructor Summary | |
MiAWTCanvas()
Constructs a new MiAWTCanvas. |
|
| Method Summary | |
java.awt.Rectangle |
getCanvasBounds()
Get the bounds of the canvas in pixels. |
java.awt.Insets |
getContainerInsets()
|
java.awt.Dimension |
getMinimumSize()
Returns the minimum size of this canvas. |
int |
getMouseAppearance()
Returns the appearance of the mouse cursor in this canvas. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of this canvas. |
boolean |
isFocusTraversable()
|
void |
paint(java.awt.Graphics g)
Causes the canvas to be redrawn as per the awt.Component API. |
void |
requestRepaint()
Causes the canvas to be redrawn as per the awt.Component API. |
void |
setBounds(int x,
int y,
int width,
int height)
Causes the canvas to be reshaped as per the awt.Component API. |
void |
setCanvas(MiCanvas canvas)
|
void |
setCanvasBounds(MiBounds deviceBounds)
Sets the bounds of the canvas, in pixels. |
void |
setMouseAppearance(int appearance)
Sets the appearance of the mouse cursor within the bounds of this canvas. |
void |
update(java.awt.Graphics g)
Causes the canvas to be redrawn as per the awt.Component API. |
| Methods inherited from class java.awt.Canvas |
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.swfm.mica.core.MiiCanvas |
createImage, getGraphics, handleEvent |
| Constructor Detail |
public MiAWTCanvas()
| Method Detail |
public void setCanvas(MiCanvas canvas)
setCanvas in interface MiiCanvaspublic boolean isFocusTraversable()
public void setMouseAppearance(int appearance)
setMouseAppearance in interface MiiCanvasappearance - the cursor appearancepublic int getMouseAppearance()
getMouseAppearance in interface MiiCanvasMiAnimationManagerpublic void setCanvasBounds(MiBounds deviceBounds)
setCanvasBounds in interface MiiCanvasdeviceBounds - the bounds of this canvaspublic java.awt.Dimension getPreferredSize()
getPreferredSize in interface MiiCanvaspublic java.awt.Dimension getMinimumSize()
getMinimumSize in interface MiiCanvaspublic void requestRepaint()
requestRepaint in interface MiiCanvaspublic void update(java.awt.Graphics g)
update in interface MiiCanvasg - the awt.graphics rendererpublic void paint(java.awt.Graphics g)
paint in interface MiiCanvasg - the awt.graphics renderer
public void setBounds(int x,
int y,
int width,
int height)
setBounds in interface MiiCanvasx - the x coordinatey - the y coordinatewidth - the widthheight - the heightpublic java.awt.Rectangle getCanvasBounds()
MiiCanvas
getCanvasBounds in interface MiiCanvaspublic java.awt.Insets getContainerInsets()
getContainerInsets in interface MiiCanvas
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||