|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmkv.MyGUI.MyGUIObject
mkv.MyGUI.MyGUIGroup
mkv.MyGUI.MyGUI2
MyGUI a collection of compatable user inteface objects designed to work with processing.
Current features include:
Since the introduction of MyGUIGroup, MyGUI has changed from being a full controller, to more of a relay passing methods through to MyGUIGroup. This is to make efficient code reuse, as MyGUIGroups contain MyGUIObjects even instances of MyGUIGroups. It made sense to central the management code for this in one place (in MyGUIGroup), while still making it appear that MyGUI had identical features.
Field Summary |
Fields inherited from class mkv.MyGUI.MyGUIGroup |
_actionCommand, _disabled, _height, _id, _root, _rotation, _scale, _style, _visible, _width, _x, _y |
Constructor Summary | |
MyGUI2(processing.core.PApplet parent)
Default class constructor. |
|
MyGUI2(processing.core.PApplet parent,
int size)
Class constructor where the size of the element array can be specified. |
|
MyGUI2(processing.core.PApplet parent,
int size,
MyGUIStyle style)
Class constructor where the size of the element array can be specified as well as a reference to a MyGUIStyle object. |
|
MyGUI2(processing.core.PApplet parent,
MyGUIStyle style)
Class constructor with a reference to a custom MyGUIStyle object. |
Method Summary | |
boolean |
isDisabled()
Returns the enabled or disabled state of this object. |
void |
keyEvent(java.awt.event.KeyEvent e)
Recalls Key events based on type. |
void |
mouseEvent(java.awt.event.MouseEvent e)
Recalls Mouse events based on type. |
void |
updateLocalMouse()
Based on check for hit code, this calculates the local mouse coordinates after rotations. |
Methods inherited from class mkv.MyGUI.MyGUIGroup |
add, checkForHit, disable, draw, drawStates, enable, get, getFocused, getFocusIndex, getStyle, hasFocus, isDragged, isEmpty, isFull, keyPressed, keyReleased, keyTyped, mouseDragged, mousePressed, mouseReleased, remove, rotateDegrees, rotateRadians, setActionCommand, setID, setMouseCoords, setParent, setStyle, useCustomMouse |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MyGUI2(processing.core.PApplet parent)
public MyGUI2(processing.core.PApplet parent, int size)
parent
- the processing PApplet where all elements will be drawn tosize
- size of element array. If you are using more then 25 MyGUI
elements in a single group then you will need to specify this value.public MyGUI2(processing.core.PApplet parent, int size, MyGUIStyle style)
parent
- the processing PApplet where all elements will be drawn tosize
- size of element array. If you are using more then 25 MyGUI
elements in a single group then you will need to specify this value.style
- the style object used by all MyGUI elements when they draw themselvespublic MyGUI2(processing.core.PApplet parent, MyGUIStyle style)
parent
- the processing PApplet where all elements will be drawn tostyle
- the style object used by all MyGUI elements when they draw themselvesMethod Detail |
public void mouseEvent(java.awt.event.MouseEvent e)
public void keyEvent(java.awt.event.KeyEvent e)
public boolean isDisabled()
public void updateLocalMouse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |