|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mt4j.components.MTComponent
org.mt4j.components.visibleComponents.AbstractVisibleComponent
org.mt4j.components.visibleComponents.shapes.AbstractShape
org.mt4j.components.visibleComponents.shapes.MTPolygon
org.mt4j.components.visibleComponents.shapes.MTRoundRectangle
org.mt4j.components.visibleComponents.widgets.keyboard.MTKeyboard
public class MTKeyboard
A multitouch keyboard using vector graphics.
Field Summary |
---|
Fields inherited from class org.mt4j.components.visibleComponents.shapes.AbstractShape |
---|
BOUNDS_CHECK_THEN_GEOMETRY_CHECK, BOUNDS_DONT_USE, BOUNDS_ONLY_CHECK |
Constructor Summary | |
---|---|
MTKeyboard(processing.core.PApplet pApplet) Creates a new keyboard without an text input acceptor. |
Method Summary | |
---|---|
void |
addTextInputListener(ITextInputListener textListener) |
void |
close() |
protected void |
closeButtonClicked() |
protected void |
closeKeyboard() |
protected void |
destroyComponent() Override this to clean up resources when destroying a component. |
ITextInputListener[] |
getTextInputListeners() |
protected void |
keyboardButtonClicked(MTKey clickedKey, boolean shiftPressed) Keyboard button clicked. |
protected void |
keyboardButtonDown(MTKey clickedKey, boolean shiftPressed) Called after keyboard button pressed. |
protected void |
keyboardButtonUp(MTKey clickedKey, boolean shiftPressed) Keyboard button up. |
void |
removeTextInputListener(ITextInputListener textListener) |
protected void |
setDefaultGestureActions() Assigns the default gesture to this component, drag, rotate, scale. |
Methods inherited from class org.mt4j.components.visibleComponents.shapes.MTRoundRectangle |
---|
computeDefaultBounds, setSizeLocal |
Methods inherited from class org.mt4j.components.visibleComponents.shapes.MTPolygon |
---|
drawComponent, drawPureGl, get2DPolygonArea, getCenterOfMass2DLocal, getCenterPointLocal, getGeometryIntersectionLocal, getHeightXY, getHeightXYVectLocal, getNormal, getWidthXY, getWidthXYVectLocal, isGeometryContainsPointLocal, setGeometryInfo, setHeightXYGlobal, setHeightXYRelativeToParent, setSizeXYGlobal, setSizeXYRelativeToParent, setVertices, setWidthXYGlobal, setWidthXYRelativeToParent |
Methods inherited from class org.mt4j.components.visibleComponents.AbstractVisibleComponent |
---|
applyStyle, getFillColor, getFillDrawMode, getFillPaint, getLineStipple, getMaterial, getStrokeColor, getStrokeWeight, getStyleInfo, isDrawSmooth, isNoFill, isNoStroke, postDraw, postDrawChildren, preDraw, setDrawSmooth, setFillDrawMode, setFillPaint, setLineStipple, setMaterial, setNoFill, setNoStroke, setStrokeWeight, setStyleInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MTKeyboard(processing.core.PApplet pApplet)
pApplet
- the appletMethod Detail |
---|
protected void setDefaultGestureActions()
AbstractShape
setDefaultGestureActions
in class AbstractShape
protected void keyboardButtonDown(MTKey clickedKey, boolean shiftPressed)
clickedKey
- the clicked keyshiftPressed
- the shift pressedprotected void keyboardButtonUp(MTKey clickedKey, boolean shiftPressed)
clickedKey
- the clicked keyshiftPressed
- the shift pressedprotected void keyboardButtonClicked(MTKey clickedKey, boolean shiftPressed)
clickedKey
- the clicked keyshiftPressed
- the shift pressedpublic void addTextInputListener(ITextInputListener textListener)
public ITextInputListener[] getTextInputListeners()
public void removeTextInputListener(ITextInputListener textListener)
public void close()
protected void closeKeyboard()
protected void closeButtonClicked()
protected void destroyComponent()
MTComponent
destroy
method. So you shouldnt invoke this method directly.
destroyComponent
in class MTPolygon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |