|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaron.gui.Rect
jaron.gui.ActuatorXY
jaron.pde.Joystick
public class Joystick
The Joystick
class provides a virtual joystick for the
Processing Development Environment (PDE).
Have a look at the example of the UAVsim
for the usage of the
Joystick
.
Field Summary |
---|
Fields inherited from class jaron.gui.ActuatorXY |
---|
control |
Constructor Summary | |
---|---|
Joystick(processing.core.PApplet applet,
int left,
int top)
Creates a new Joystick object for the Processing Development
Environment (PDE). |
|
Joystick(processing.core.PApplet applet,
int left,
int top,
int width,
int height)
Creates a new Joystick object for the Processing Development
Environment (PDE). |
|
Joystick(processing.core.PApplet applet,
java.lang.String labelX,
java.lang.String labelY,
int left,
int top)
Creates a new Joystick object for the Processing Development
Environment (PDE). |
|
Joystick(processing.core.PApplet applet,
java.lang.String labelX,
java.lang.String labelY,
int left,
int top,
int width,
int height)
Creates a new Joystick object for the Processing Development
Environment (PDE). |
Method Summary | |
---|---|
void |
draw()
Draws the joystick to the screen. |
void |
setLabelX(java.lang.String label)
Sets the joystick's label for the x axis. |
void |
setLabelY(java.lang.String label)
Sets the joystick's label for the y axis. |
Methods inherited from class jaron.gui.ActuatorXY |
---|
addListenerX, addListenerY, getPowerSignal, getSignalX, getSignalY, getValueX, getValueY, isMouseOver, isMousePressed, mouseDragged, mouseMoved, mousePressed, mouseReleased, setBandwidthX, setBandwidthY, setControlSize, setLocation, setLockedX, setLockedY, setSize, setSpringX, setSpringY, setValue, setValueX, setValueY, signalChanged |
Methods inherited from class jaron.gui.Rect |
---|
contains, createIntersection, getHeight, getLeft, getTop, getWidth, setHeight, setLeft, setTop, setWidth |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Joystick(processing.core.PApplet applet, java.lang.String labelX, java.lang.String labelY, int left, int top, int width, int height)
Joystick
object for the Processing Development
Environment (PDE).
applet
- a reference to the PDE applet that provides the drawing environmentlabelX
- the label that is displayed at the bottomlabelY
- the label that is displayed at the rightleft
- the component's position from the lefttop
- the component's position from topheight
- the component's heightwidth
- the component's widthpublic Joystick(processing.core.PApplet applet, int left, int top, int width, int height)
Joystick
object for the Processing Development
Environment (PDE).
applet
- a reference to the PDE applet that provides the drawing environmentleft
- the component's position from the lefttop
- the component's position from topheight
- the component's heightwidth
- the component's widthpublic Joystick(processing.core.PApplet applet, java.lang.String labelX, java.lang.String labelY, int left, int top)
Joystick
object for the Processing Development
Environment (PDE).
applet
- a reference to the PDE applet that provides the drawing environmentlabelX
- the label that is displayed at the bottomlabelY
- the label that is displayed at the rightleft
- the component's position from the lefttop
- the component's position from toppublic Joystick(processing.core.PApplet applet, int left, int top)
Joystick
object for the Processing Development
Environment (PDE).
applet
- a reference to the PDE applet that provides the drawing environmentleft
- the component's position from the lefttop
- the component's position from topMethod Detail |
---|
public void draw()
draw
method of the Processing Development Environment. This
ensures that the joystick is updated periodically.
public void setLabelX(java.lang.String label)
label
- a short description of the x axis' functionalitypublic void setLabelY(java.lang.String label)
label
- a short description of the y axis' functionality
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |