public class ComponentWrapper extends java.lang.Object implements IComponent
| Constructor and Description |
|---|
ComponentWrapper(java.awt.Canvas canvas) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFocusListener(FocusListener l)
Register a focus listener
|
void |
addKeyListener(KeyListener l)
Register a key listener
|
void |
addMouseListener(MouseListener l)
Register a mouse listener
|
void |
addMouseMotionListener(MouseMotionListener l)
Register a mouse motion listener
|
void |
addMouseWheelListener(MouseWheelListener l)
Register a mouse wheel listener
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getAwtCanvas()
Cast into a java.awt.Canvas on desktop platform.
|
java.lang.Iterable<FocusListener> |
getFocusListeners() |
java.lang.Iterable<KeyListener> |
getKeyListeners() |
Point |
getLocation() |
java.lang.Iterable<MouseListener> |
getMouseListeners() |
java.lang.Iterable<MouseMotionListener> |
getMouseMotionListeners() |
java.lang.Iterable<MouseWheelListener> |
getMouseWheelListeners() |
Size |
getSize() |
int |
hashCode() |
void |
removeFocusListener(FocusListener l)
Remove a focus listener
|
void |
removeKeyListener(KeyListener l)
Remove a key listener
|
void |
removeMouseListener(MouseListener l)
Remove a mouse listener
|
void |
removeMouseMotionListener(MouseMotionListener l)
Remove a mouse motion listener
|
void |
removeMouseWheelListener(MouseWheelListener l)
Remove a mouse wheel listener
|
void |
requestFocus() |
void |
setSize(int width,
int height) |
public final int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final java.lang.Object getAwtCanvas()
IComponentgetAwtCanvas in interface IComponentpublic final void addFocusListener(FocusListener l)
IComponentaddFocusListener in interface IComponentpublic final void removeFocusListener(FocusListener l)
IComponentremoveFocusListener in interface IComponentpublic final java.lang.Iterable<FocusListener> getFocusListeners()
getFocusListeners in interface IComponentpublic final void addKeyListener(KeyListener l)
IComponentaddKeyListener in interface IComponentpublic final void removeKeyListener(KeyListener l)
IComponentremoveKeyListener in interface IComponentpublic final java.lang.Iterable<KeyListener> getKeyListeners()
getKeyListeners in interface IComponentpublic final void addMouseListener(MouseListener l)
IComponentaddMouseListener in interface IComponentpublic final void removeMouseListener(MouseListener l)
IComponentremoveMouseListener in interface IComponentpublic final java.lang.Iterable<MouseListener> getMouseListeners()
getMouseListeners in interface IComponentpublic final void addMouseMotionListener(MouseMotionListener l)
IComponentaddMouseMotionListener in interface IComponentpublic final void removeMouseMotionListener(MouseMotionListener l)
IComponentremoveMouseMotionListener in interface IComponentpublic final java.lang.Iterable<MouseMotionListener> getMouseMotionListeners()
getMouseMotionListeners in interface IComponentpublic final void addMouseWheelListener(MouseWheelListener l)
IComponentaddMouseWheelListener in interface IComponentpublic final void removeMouseWheelListener(MouseWheelListener l)
IComponentremoveMouseWheelListener in interface IComponentpublic final java.lang.Iterable<MouseWheelListener> getMouseWheelListeners()
getMouseWheelListeners in interface IComponentpublic final void requestFocus()
requestFocus in interface IComponentpublic Point getLocation()
getLocation in interface IComponentpublic Size getSize()
getSize in interface IComponentpublic void setSize(int width,
int height)
setSize in interface IComponentBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com