org.mt4j.components.visibleComponents.widgets
Class MTTextField

java.lang.Object
  extended by org.mt4j.components.MTComponent
      extended by org.mt4j.components.visibleComponents.AbstractVisibleComponent
          extended by org.mt4j.components.visibleComponents.shapes.AbstractShape
              extended by org.mt4j.components.visibleComponents.shapes.MTPolygon
                  extended by org.mt4j.components.visibleComponents.shapes.MTRectangle
                      extended by org.mt4j.components.visibleComponents.widgets.MTTextArea
                          extended by org.mt4j.components.visibleComponents.widgets.MTTextField
All Implemented Interfaces:
IMTComponent, IMTComponent3D, ITextInputListener, IMTInputEventListener, IdragClusterable, IGestureEventListener

public class MTTextField
extends MTTextArea

    

The Class MTTextField. This is a modifed text area, that keeps a fixed size and ignores new lines ("\n"). So this is for single line of text with a fixed size no matter how long the actual text is.

Author:
Christopher Ruff

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mt4j.components.visibleComponents.shapes.MTRectangle
MTRectangle.PositionAnchor
 
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
MTTextField(float x, float y, float width, float height, IFont font, processing.core.PApplet applet)
          Instantiates a new mT text field.
 
Method Summary
protected  void characterAdded(IFontCharacter character)
           
protected  void characterRemoved(IFontCharacter character)
           
 
Methods inherited from class org.mt4j.components.visibleComponents.widgets.MTTextArea
appendCharByName, appendCharByUnicode, appendText, clear, drawComponent, getCharacters, getFont, getInnerPadding, getLastLineWidth, getLineCount, getMaxLineWidth, getScrollTextX, getScrollTextY, getText, getTotalLinesHeight, isEnableCaret, isSelected, postDraw, preDraw, removeLastCharacter, scrollTextX, scrollTextY, setBitmapFontTextureFiltered, setEnableCaret, setHeightLocal, setInnerPadding, setSelected, setText, setWidthLocal, snapToKeyboard, updateComponent
 
Methods inherited from class org.mt4j.components.visibleComponents.shapes.MTRectangle
computeDefaultBounds, get2DPolygonArea, getAnchor, getCenterOfMass2DLocal, getCenterPointLocal, getPosition, setAnchor, setPositionGlobal, setPositionRelativeToParent, setSizeLocal
 
Methods inherited from class org.mt4j.components.visibleComponents.shapes.MTPolygon
destroyComponent, drawPureGl, getGeometryIntersectionLocal, getHeightXY, getHeightXYVectLocal, getNormal, getWidthXY, getWidthXYVectLocal, isGeometryContainsPointLocal, setGeometryInfo, setHeightXYGlobal, setHeightXYRelativeToParent, setSizeXYGlobal, setSizeXYRelativeToParent, setVertices, setWidthXYGlobal, setWidthXYRelativeToParent
 
Methods inherited from class org.mt4j.components.visibleComponents.shapes.AbstractShape
componentContainsPointLocal, destroy, destroyDisplayLists, disableAndDeleteDisplayLists, generateAndUseDisplayLists, generateDisplayLists, getBoundingShape, getCenterPointGlobal, getCenterPointRelativeToParent, getConvexHullXYGlobal, getGeometryInfo, getIntersectionLocal, getTexture, getTextureMode, getVertexCount, getVerticesGlobal, getVerticesLocal, isBoundingShapeSet, isBoundsAutoCompute, isContainedIn, isTextureEnabled, isUseDirectGL, isUseDisplayList, isUseVBOs, setBoundingShape, setBoundsAutoCompute, setBoundsBehaviour, setBoundsPickingBehaviour, setDefaultGestureActions, setFillColor, setMatricesDirty, setPositionRelativeToOther, setStrokeColor, setTexture, setTextureEnabled, setTextureMode, setUseDirectGL, setUseDisplayList, setUseVBOs, tweenTranslate, tweenTranslate, tweenTranslateTo
 
Methods inherited from class org.mt4j.components.visibleComponents.AbstractVisibleComponent
applyStyle, getFillColor, getFillDrawMode, getFillPaint, getLineStipple, getMaterial, getStrokeColor, getStrokeWeight, getStyleInfo, isDrawSmooth, isNoFill, isNoStroke, postDrawChildren, setDrawSmooth, setFillDrawMode, setFillPaint, setLineStipple, setMaterial, setNoFill, setNoStroke, setStrokeWeight, setStyleInfo
 
Methods inherited from class org.mt4j.components.MTComponent
addChild, addChild, addChildren, addGestureListener, addInputListener, addStateChangeListener, applyLocalMatrix, attachCamera, containsChild, containsDirectChild, containsPointGlobal, fireInputEvent, fireStateChange, fireStateChange, getAttachedCamera, getChildbyID, getChildByIndex, getChildByName, getChildClip, getChildCount, getChildIndexOf, getChildList, getChildren, getClip, getController, getCustomViewportSetting, getDefaultViewportSetting, getGestureListeners, getGlobalInverseMatrix, getGlobalMatrix, getGlobalVecToParentRelativeSpace, getID, getInputListeners, getInputProcessors, getIntersectionGlobal, getLight, getLocalInverseMatrix, getLocalMatrix, getLocalVecToParentRelativeSpace, getName, getParent, getRenderer, getRoot, getTransformToDestinationLocalSpace, getTransformToDestinationParentSpace, getUserData, getViewingCamera, globalToLocal, globalToLocal, hasCustomViewPort, isComposite, isDepthBufferDisabled, isEnabled, isGestureAllowed, isPickable, isVisible, localToGlobal, pick, pick, processGestureEvent, processInputEvent, registerInputProcessor, removeAllChildren, removeAllGestureEventListeners, removeAllGestureEventListeners, removeChild, removeChild, removeFromParent, removeGestureEventListener, removeInputListener, removeStateChangeListener, reOrthogonalize, rotateX, rotateX, rotateXGlobal, rotateY, rotateY, rotateYGlobal, rotateZ, rotateZ, rotateZGlobal, scale, scale, scaleGlobal, sendChildToFront, sendToFront, setChildClip, setClip, setComposite, setController, setDepthBufferDisabled, setEnabled, setGestureAllowance, setLight, setLocalMatrix, setName, setPickable, setUserData, setViewPortSettings, setVisible, toString, transform, translate, translate, translateGlobal, unregisterAllInputProcessors, unregisterInputProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mt4j.input.inputProcessors.componentProcessors.lassoProcessor.IdragClusterable
getCenterPointGlobal
 
Methods inherited from interface org.mt4j.components.interfaces.IMTComponent3D
getCustomViewportSetting, getDefaultViewportSetting, getIntersectionGlobal, getViewingCamera, hasCustomViewPort, isPickable, rotateXGlobal, rotateYGlobal, setPickable
 
Methods inherited from interface org.mt4j.components.interfaces.IMTComponent
containsPointGlobal, getID, getName, getRenderer, isEnabled, isGestureAllowed, isVisible, processInputEvent, rotateZGlobal, scaleGlobal, setEnabled, setName, setVisible, translateGlobal
 

Constructor Detail

MTTextField

public MTTextField(float x,
                   float y,
                   float width,
                   float height,
                   IFont font,
                   processing.core.PApplet applet)
Instantiates a new mT text field.

Parameters:
x - the x
y - the y
width - the width
height - the height
font - the font
applet - the applet
Method Detail

characterAdded

protected void characterAdded(IFontCharacter character)
Overrides:
characterAdded in class MTTextArea

characterRemoved

protected void characterRemoved(IFontCharacter character)
Overrides:
characterRemoved in class MTTextArea