public class Component_lwjgl extends java.lang.Object implements IComponent
| Modifier and Type | Field and Description |
|---|---|
protected Point |
position |
protected Area |
requestedArea |
protected Size |
size |
| Constructor and Description |
|---|
Component_lwjgl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileDropListener(FileDropListener l)
Register a focus listener
|
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
|
java.lang.Object |
getAwtCanvas()
Cast into a java.awt.Canvas on desktop platform.
|
java.lang.Iterable<FileDropListener> |
getFileDropListeners() |
java.lang.Iterable<FocusListener> |
getFocusListeners() |
java.lang.Iterable<KeyListener> |
getKeyListeners() |
Point |
getLocationOnScreen() |
java.lang.Iterable<MouseListener> |
getMouseListeners() |
java.lang.Iterable<MouseMotionListener> |
getMouseMotionListeners() |
java.lang.Iterable<MouseWheelListener> |
getMouseWheelListeners() |
Size |
getSize() |
void |
removeFileDropListener(FileDropListener l)
Remove a focus listener
|
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 |
setLocationOnScreen(int x,
int y) |
void |
setSize(int width,
int height) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfireEventprotected final Size size
protected final Point position
protected final Area requestedArea
public void addKeyListener(KeyListener l)
IComponentaddKeyListener in interface IComponentpublic void removeKeyListener(KeyListener l)
IComponentremoveKeyListener in interface IComponentpublic java.lang.Iterable<KeyListener> getKeyListeners()
getKeyListeners in interface IComponentpublic void addMouseListener(MouseListener l)
IComponentaddMouseListener in interface IComponentpublic void removeMouseListener(MouseListener l)
IComponentremoveMouseListener in interface IComponentpublic java.lang.Iterable<MouseListener> getMouseListeners()
getMouseListeners in interface IComponentpublic void addMouseMotionListener(MouseMotionListener l)
IComponentaddMouseMotionListener in interface IComponentpublic void removeMouseMotionListener(MouseMotionListener l)
IComponentremoveMouseMotionListener in interface IComponentpublic java.lang.Iterable<MouseMotionListener> getMouseMotionListeners()
getMouseMotionListeners in interface IComponentpublic void addMouseWheelListener(MouseWheelListener l)
IComponentaddMouseWheelListener in interface IComponentpublic void removeMouseWheelListener(MouseWheelListener l)
IComponentremoveMouseWheelListener in interface IComponentpublic java.lang.Iterable<MouseWheelListener> getMouseWheelListeners()
getMouseWheelListeners in interface IComponentpublic void addFocusListener(FocusListener l)
IComponentaddFocusListener in interface IComponentpublic void removeFocusListener(FocusListener l)
IComponentremoveFocusListener in interface IComponentpublic java.lang.Iterable<FocusListener> getFocusListeners()
getFocusListeners in interface IComponentpublic void addFileDropListener(FileDropListener l)
IComponentaddFileDropListener in interface IComponentpublic void removeFileDropListener(FileDropListener l)
IComponentremoveFileDropListener in interface IComponentpublic java.lang.Iterable<FileDropListener> getFileDropListeners()
getFileDropListeners in interface IComponentpublic void setSize(int width,
int height)
setSize in interface IComponentpublic Size getSize()
getSize in interface IComponentpublic void setLocationOnScreen(int x,
int y)
public Point getLocationOnScreen()
getLocationOnScreen in interface IComponentpublic void requestFocus()
requestFocus in interface IComponentpublic java.lang.Object getAwtCanvas()
IComponentgetAwtCanvas in interface IComponentBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com