public class TextZone extends Zone
processing.opengl.PGraphicsOpenGL.BaseShader, processing.opengl.PGraphicsOpenGL.ColorShader, processing.opengl.PGraphicsOpenGL.GLResource, processing.opengl.PGraphicsOpenGL.IndexCache, processing.opengl.PGraphicsOpenGL.InGeometry, processing.opengl.PGraphicsOpenGL.LightShader, processing.opengl.PGraphicsOpenGL.LineShader, processing.opengl.PGraphicsOpenGL.PointShader, processing.opengl.PGraphicsOpenGL.Tessellator, processing.opengl.PGraphicsOpenGL.TessGeometry, processing.opengl.PGraphicsOpenGL.TexCache, processing.opengl.PGraphicsOpenGL.TexlightShader, processing.opengl.PGraphicsOpenGL.TextureShaderapplet, backupMatrix, children, dimension, direct, drawImpl, drawMethod, halfDimension, height, inverse, keyPressedMethod, keyReleasedMethod, keyTypedMethod, lastUpdate, matrix, maxHeight, maxWidth, minHeight, minWidth, name, parent, physics, pickColor, pickDrawMethod, pickImpl, pressMethod, renderer, rntRadius, scalingLimit, stealChildrensTouch, touchDownMethod, touchImpl, touchMethod, touchMovedMethod, touchUpMethod, width, x, ypganisoSamplingSupported, autoMipmapGenSupported, blendEqSupported, breakShape, camera, cameraAspect, cameraEyeX, cameraEyeY, cameraEyeZ, cameraFar, cameraFOV, cameraInv, cameraInvStack, cameraNear, cameraStack, cameraX, cameraY, cameraZ, clearColorBuffer, clearColorBuffer0, clip, clipRect, colorShader, currentFramebuffer, currentLightFalloffConstant, currentLightFalloffLinear, currentLightFalloffQuadratic, currentLightSpecular, defaultEdges, defColorShader, defColorShaderFragURL, defColorShaderVertURL, defLightShader, defLightShaderVertURL, defLineShader, defLineShaderFragURL, defLineShaderVertURL, defPointShader, defPointShaderFragURL, defPointShaderVertURL, defTexlightShader, defTexlightShaderVertURL, defTextureShader, defTextureShaderFragURL, defTextureShaderVertURL, depthBits, drawFramebuffer, drawing, EDGE_CLOSE, EDGE_MIDDLE, EDGE_SINGLE, EDGE_START, EDGE_STOP, FB_STACK_DEPTH, fboMultisampleSupported, fbStack, fbStackDepth, filterImage, filterTexture, floatBuffer, FLUSH_CONTINUOUSLY, FLUSH_WHEN_FULL, flushMode, fontMap, glFrameBuffers, glLineAttrib, glLineColor, glLineIndex, glLineVertex, glModelview, glNormal, glParamsRead, glPointAttrib, glPointColor, glPointIndex, glPointVertex, glPolyAmbient, glPolyColor, glPolyEmissive, glPolyIndex, glPolyNormal, glPolyShininess, glPolySpecular, glPolyTexcoord, glPolyVertex, glProjection, glProjmodelview, glRenderBuffers, GLSL_VERSION, glslFragmentShaders, glslPrograms, glslVertexShaders, glTextureObjects, glVertexBuffers, identity, IMMEDIATE, inGeo, INIT_INDEX_BUFFER_SIZE, INIT_VERTEX_BUFFER_SIZE, initialized, intBuffer, lastBlendMode, lastSmoothCall, lightAmbient, lightCount, lightDiffuse, lightFalloffCoefficients, lightNormal, lightPosition, lights, lightsAllocated, lightShader, lightSpecular, lightSpotParameters, lightType, lineBuffersContext, lineBuffersCreated, lineShader, manipulatingCamera, maskShader, maskShaderFragURL, matricesAllocated, MATRIX_STACK_DEPTH, MAX_POINT_ACCURACY, maxAnisoAmount, maxLineWidth, maxPointSize, maxSamples, maxTextureSize, MIN_POINT_ACCURACY, modelview, modelviewInv, modelviewInvStack, modelviewStack, modelviewStackDepth, multisampleFramebuffer, nativePixelBuffer, nativePixels, npotTexSupported, offscreenFramebuffer, offscreenMultisample, OP_NONE, OP_READ, OP_WRITE, openContour, OPENGL_EXTENSIONS, OPENGL_RENDERER, OPENGL_VENDOR, OPENGL_VERSION, packedDepthStencilSupported, pgCurrent, pgl, pgPrimary, pixelBuffer, pixelsOp, pixOpChangedFB, POINT_ACCURACY_FACTOR, pointBuffersContext, pointBuffersCreated, pointShader, polyBuffersContext, polyBuffersCreated, projection, projectionStack, projectionStackDepth, projmodelview, ptexture, QUAD_POINT_SIGNS, readFramebuffer, restoreSurface, RETAINED, setgetPixels, shaderWarningsEnabled, sized, smoothCallCount, smoothDisabled, stencilBits, tessellator, tessGeo, texCache, texlightShader, texture, textureImage0, textureSampling, textureShader, textureWrap, viewportA, AB, AG, ambientB, ambientColor, ambientG, ambientR, AR, autoNormal, B, backgroundA, backgroundAi, backgroundAlpha, backgroundB, backgroundBi, backgroundColor, backgroundG, backgroundGi, backgroundR, backgroundRi, BEEN_LIT, bezierBasisInverse, bezierBasisMatrix, bezierDetail, bezierDrawMatrix, bezierInited, blendMode, cacheMap, calcA, calcAi, calcAlpha, calcB, calcBi, calcColor, calcG, calcGi, calcR, calcRi, canvas, colorMode, colorModeA, colorModeX, colorModeY, colorModeZ, cosLUT, curveBasisMatrix, curveDetail, curveDrawMatrix, curveInited, curveTightness, curveToBezierMatrix, curveVertexCount, curveVertices, DA, DB, DEFAULT_STROKE_CAP, DEFAULT_STROKE_JOIN, DEFAULT_STROKE_WEIGHT, DEFAULT_VERTICES, DG, DR, EB, edge, EDGE, EG, ellipseMode, emissiveB, emissiveColor, emissiveG, emissiveR, ER, fill, fillA, fillAi, fillAlpha, fillB, fillBi, fillColor, fillG, fillGi, fillR, fillRi, G, HAS_NORMAL, hints, image, imageMode, NORMAL_MODE_AUTO, NORMAL_MODE_SHAPE, NORMAL_MODE_VERTEX, normalMode, normalX, normalY, normalZ, NX, NY, NZ, path, pixelCount, primarySurface, quality, R, raw, reapplySettings, rectMode, SA, SB, setAmbient, settingsInited, SG, shape, shapeMode, SHINE, shininess, SINCOS_LENGTH, SINCOS_PRECISION, sinLUT, smooth, SPB, specularB, specularColor, specularG, specularR, SPG, sphereDetailU, sphereDetailV, sphereX, sphereY, sphereZ, SPR, SR, stroke, strokeA, strokeAi, strokeAlpha, strokeB, strokeBi, strokeCap, strokeColor, strokeG, strokeGi, strokeJoin, strokeR, strokeRi, strokeWeight, SW, textAlign, textAlignY, textBreakCount, textBreakStart, textBreakStop, textBuffer, textFont, textLeading, textMode, textSize, textureImage, textureMode, textureU, textureV, textWidthBuffer, tint, tintA, tintAi, tintAlpha, tintB, tintBi, tintColor, tintG, tintGi, tintR, tintRi, TX, TY, TZ, U, V, VERTEX_FIELD_COUNT, vertexCount, vertices, VW, VX, VY, VZ, warningsALPHA_MASK, BLUE_MASK, format, GREEN_MASK, loaded, modified, mx1, mx2, my1, my2, pixels, RED_MASK, saveImageFormatsADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_RETINA_PIXELS, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_RETINA_PIXELS, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ERROR_BACKGROUND_IMAGE_FORMAT, ERROR_BACKGROUND_IMAGE_SIZE, ERROR_PUSHMATRIX_OVERFLOW, ERROR_PUSHMATRIX_UNDERFLOW, ERROR_TEXTFONT_NULL_PFONT, ESC, EXCLUSION, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADRATIC_VERTEX, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPHERE, SPOT, SQUARE, SUBTRACT, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z| Constructor and Description |
|---|
TextZone(int x,
int y,
int width,
int height) |
TextZone(int x,
int y,
int width,
int height,
boolean keysRecievedFromApplet) |
TextZone(int x,
int y,
int width,
int height,
java.lang.String inputText,
boolean selectable,
boolean blur,
boolean keysRecievedFromApplet) |
TextZone(java.lang.String name,
int x,
int y,
int width,
int height) |
TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
boolean keysRecievedFromApplet) |
TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
float fontSize) |
TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
java.lang.String inputText,
boolean selectable,
boolean blur,
boolean keysRecievedFromApplet,
float fontSize) |
TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
java.lang.String inputText,
boolean selectable,
boolean blur,
boolean keysRecievedFromApplet,
float fontSize,
processing.core.PFont font) |
TextZone(TextZone original) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChar(char c)
Add a char to the TextZone
|
void |
addText(java.lang.String text)
Add a String of text to the TextZone
|
void |
delete(int numChars)
Deletes a number of characters from the end of the text
that is being rendered to the TextZone
|
void |
deleteAllText()
Deletes all the text being rendered to the TextZone
|
void |
drawImpl()
Override to specify a default behavior for draw
|
int[] |
getBkgColor()
Gets the background color of the rectangle that the text is rendered over.
|
boolean |
getBlur()
Gets the blur flag.
|
boolean |
getDrawTextBkg()
Get the draw text background flag.
|
processing.core.PFont |
getFont()
Get the font
|
float |
getFontSize()
Get the font size
|
boolean |
getKeysFromApplet()
Gets the flag that states if the TextZone is to receive input from the PApplet (keyboard)
|
int[] |
getSelBkgColor(int r,
int g,
int b,
int a)
Gets the highlight color when the text is selected
|
boolean |
getSelectable()
Gets the flag that states if the text in the TextZone is selectable/highlightable
|
int[] |
getSelTextColor(int r,
int g,
int b,
int a)
Gets the color of the text when it is selected
|
processing.core.PFont |
getSmallFont()
Set the small font used for blurring
Blurring is achieved by stretching small font
|
java.lang.String |
getText()
Gets the text being rendered to the TextZone
|
int[] |
getTextColor()
Gets the text color
|
vialab.SMT.TextZone.WordZone |
getWordZone()
Gets the word zone used to render the text in the textZone
|
void |
keyTyped(processing.event.KeyEvent e) |
void |
setBkgColor(int r,
int g,
int b,
int a)
Set the text background color
|
void |
setBlur(boolean blurFlag)
Sets the blur flag.
|
void |
setDrawTextBkg(boolean flag)
Sets the draw text background flag.
|
void |
setFont(processing.core.PFont font)
Set the font
|
void |
setFontSize(float fs)
Set the size of the font
|
void |
setKeysFromApplet(boolean keysFlag)
Set Set the TextZone to receive input from the PApplet (keyboard)
|
void |
setSelBkgColor(int r,
int g,
int b,
int a)
Set the highlight color when the text in selected
|
void |
setSelectable(boolean flag)
Sets if the text in the TextZone is selectable/highlightable
|
void |
setSelTextColor(int r,
int g,
int b,
int a)
Set the text color when the text is selected
|
void |
setSmallFont(processing.core.PFont font)
Set the small font used for blurring
Blurring is achieved by stretching small font
|
void |
setTextColor(int r,
int g,
int b,
int a)
Set the text color
|
void |
setWordZone(vialab.SMT.TextZone.WordZone wZone)
Sets the word zone used to render the text in the textZone
|
add, add, addPhysicsMouseJoint, addXMLZone, assign, assign, background, background, background, background, background, background, background, beginDraw, beginPickDraw, beginTouch, clearChildren, clone, clone, clone, contains, disableScalingLimit, drag, drag, drag, drag, drag, drag, drag, drag, drag, drag, drag, drag, dragWithinParent, draw, draw, drawChild, drawChildren, drawDirectChildren, drawForPickBuffer, drawIndirectChildren, drawIndirectImage, drawRntCircle, enableScalingLimit, endDraw, endPickDraw, endTouch, fill, fill, fill, fill, fill, fill, fromZoneVector, getActiveTouch, getBoundObject, getCentre, getChild, getChildCount, getChildren, getGlobalMatrix, getHalfSize, getHeight, getIds, getLocalX, getLocalX, getLocalY, getLocalY, getName, getNumTouches, getOrigin, getParent, getPickColor, getRntRadius, getRotationAngle, getSize, getTouchCollection, getTouches, getTouchMap, getTouchPairs, getTouchPairs, getWidth, getX, getY, hSwipe, hSwipe, init, isActive, isAncestor, isAssigned, isAssigned, isChildActive, isDirect, keyEvent, keyPressed, keyPressed, keyPressedImpl, keyReleased, keyReleased, keyReleasedImpl, keyTyped, keyTypedImpl, loadMethods, loadMethods, maxTime, maxTime, pickDrawImpl, pinch, pinch, pressImpl, pressInvoker, pressRegister, putChildOnTop, remove, remove, removeFromParent, removePickColor, resetMatrix, rnt, rnt, rnt, rnt, rnt, rotate, rotate, rotateAbout, rotateAbout, rotateAboutCentre, rs, rst, rst, rst, rst, rst, rst, rst, setBodyFromMatrix, setBoundObject, setData, setDirect, setHeight, setLocation, setMatrixFromBody, setName, setPickColor, setRntRadius, setSize, setWidth, setX, setY, stroke, stroke, stroke, stroke, stroke, stroke, swipeDown, swipeLeft, swipeRight, swipeUp, tint, tint, tint, tint, tint, tint, toss, touch, touch, touch, touchDownImpl, touchDownInvoker, touchDownRegister, touchImpl, touchMovedImpl, touchMovedInvoker, touchMovedRegister, touchUpImpl, touchUpInvoker, touchUpRegister, toZoneVector, unassign, unassign, unassignAll, updateOnlyWhenModified, vSwipe, vSwipeambient, ambient, ambient, ambientLight, ambientLight, applyMatrix, applyMatrix, applyMatrix, applyMatrix, applyMatrix, arc, arc, beginCamera, beginContour, beginPGL, beginRaw, beginShape, beginShape, bezier, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, bezierVertex, blend, blend, blendMode, box, box, camera, camera, clear, clip, colorMode, colorMode, colorMode, colorMode, copy, copy, curve, curve, curveDetail, curveTightness, curveVertex, curveVertex, directionalLight, edge, ellipse, ellipseMode, emissive, emissive, emissive, endCamera, endContour, endPGL, endRaw, endShape, endShape, filter, filter, filter, flush, frustum, get, get, get, getMatrix, getMatrix, getMatrix, getStyle, getStyle, hint, image, image, image, imageMode, init, lightFalloff, lights, lightSpecular, line, line, loadPixels, mask, mask, modelX, modelY, modelZ, noClip, noFill, noLights, normal, noSmooth, noStroke, noTexture, noTint, ortho, ortho, ortho, perspective, perspective, point, point, pointLight, popMatrix, popStyle, printCamera, printMatrix, printProjection, pushMatrix, pushStyle, quad, quadraticVertex, quadraticVertex, rect, rect, rect, rectMode, removeCache, requestDraw, resetShader, resetShader, rotate, rotate, rotateX, rotateY, rotateZ, save, scale, scale, scale, screenX, screenX, screenY, screenY, screenZ, set, set, setCache, setFrameRate, setMatrix, setMatrix, setMatrix, shader, shader, shape, shape, shape, shapeMode, shearX, shearY, shininess, smooth, smooth, specular, specular, specular, sphere, sphereDetail, sphereDetail, spotLight, strokeCap, strokeJoin, strokeWeight, style, text, text, text, text, text, text, text, text, text, text, text, textAlign, textAlign, textAscent, textDescent, textFont, textFont, textLeading, textMode, textSize, texture, textureMode, textureWrap, textWidth, textWidth, textWidth, translate, translate, triangle, updatePixels, updatePixels, vertex, vertex, vertex, vertex, vertexaddTexture, addTexture, allocate, allocatePixels, applyMatrixImpl, applyProjection, applyProjection, arcImpl, backgroundImpl, backgroundImpl, begin2D, beginOffscreenDraw, beginOnscreenDraw, beginPixelsOp, bezierVertexImpl, bindFrontTexture, blendModeImpl, camera, canDraw, checkGLThread, checkTexture, clipImpl, colorShaderCheck, createFrameBufferObject, createGLSLFragShaderObject, createGLSLProgramObject, createGLSLVertShaderObject, createLineBuffers, createPointBuffers, createPolyBuffers, createPTexture, createRenderBufferObject, createTextureObject, createVertexBufferObject, curveVertexImpl, defaultCamera, defaultPerspective, defaultSettings, deleteAllFrameBufferObjects, deleteAllGLSLFragShaderObjects, deleteAllGLSLProgramObjects, deleteAllGLSLVertShaderObjects, deleteAllRenderBufferObjects, deleteAllTextureObjects, deleteAllVertexBufferObjects, deleteDefaultShaders, deleteFinalizedFrameBufferObjects, deleteFinalizedGLResources, deleteFinalizedGLSLFragShaderObjects, deleteFinalizedGLSLProgramObjects, deleteFinalizedGLSLVertShaderObjects, deleteFinalizedRenderBufferObjects, deleteFinalizedTextureObjects, deleteFinalizedVertexBufferObjects, deleteFrameBufferObject, deleteGLSLFragShaderObject, deleteGLSLProgramObject, deleteGLSLVertShaderObject, deleteLineBuffers, deletePointBuffers, deletePolyBuffers, deleteRenderBufferObject, deleteSurfaceTextures, deleteTextureObject, deleteVertexBufferObject, diff, disableLighting, dispose, drawPixels, drawPTexture, drawTexture, drawTexture, enableLighting, end2D, endOffscreenDraw, endOnscreenDraw, endPixelsOp, endShape, expandArraySize, fillFromCalc, finalize, finalizeFrameBufferObject, finalizeGLSLFragShaderObject, finalizeGLSLProgramObject, finalizeGLSLVertShaderObject, finalizeRenderBufferObject, finalizeTextureObject, finalizeVertexBufferObject, flushLines, flushPixels, flushPoints, flushPolys, getFontTexture, getGLParameters, getHint, getImpl, getLineShader, getPointShader, getPolyShader, getShaderType, getTexture, getTexture, initCache, initOffscreen, initPrimary, invScale, invTranslate, isGL, lightAmbient, lightDiffuse, lightFalloff, lightNormal, lightPosition, lightShaderCheck, lightSpecular, lightSpot, lineBufferContextIsOutdated, lineImpl, loadShader, loadShader, loadShape, loadTexture, loadTextureImpl, newInGeometry, newTessGeometry, newTexCache, noLightAmbient, noLightDiffuse, noLightFalloff, noLightSpecular, noLightSpot, nonOrthoProjection, nonZero, orthoProjection, pointBuffersContextIsOutdated, pointImpl, polyBuffersContextIsOutdated, popFramebuffer, popProjection, pushFramebuffer, pushProjection, quadraticVertexImpl, readPixels, removeFontTexture, removeFrameBufferObject, removeGLSLFragShaderObject, removeGLSLProgramObject, removeGLSLVertShaderObject, removeRenderBufferObject, removeTextureObject, removeVertexBufferObject, report, requestFocus, resetProjection, resize, restartPGL, restoreGL, restoreSurfaceFromPixels, rotateImpl, same, saveSurfaceToPixels, scaleImpl, screenXImpl, screenXImpl, screenYImpl, screenYImpl, screenZImpl, screenZImpl, setDrawDefaults, setFlushMode, setFontTexture, setFramebuffer, setImpl, setPrimary, setProjection, setViewport, shaderWarnings, shape, shape, swapOffscreenTextures, tessellate, tessellate, texlightShaderCheck, textCharImpl, textCharModelImpl, textCharShapeImpl, textLineImpl, textModeCheck, textureSampling, textureShaderCheck, textWidthImpl, translateImpl, unbindFrontTexture, unbindLineBuffers, unbindPointBuffers, unbindPolyBuffers, updateDisplay, updateGLModelview, updateGLNormal, updateGLProjection, updateGLProjmodelview, updateLineBuffers, updatePointBuffers, updatePolyBuffers, updateProjmodelview, updateTexture, updateTexture, updateTexture, vertexCode, vertexImpl, wrapTexture, zeroalpha, ambientFromCalc, backgroundFromCalc, bezierInit, bezierInitCheck, bezierVertexCheck, bezierVertexCheck, blue, brightness, checkSettings, color, color, color, color, color, color, color, color, color, colorCalc, colorCalc, colorCalc, colorCalc, colorCalc, colorCalc, colorCalcARGB, createShape, createShape, createShape, createShape, curveInit, curveInitCheck, curvePoint, curveTangent, curveVertexCheck, curveVertexCheck, curveVertexSegment, curveVertexSegment, defaultFontOrDeath, defaultFontOrDeath, displayable, ellipseImpl, emissiveFromCalc, getCache, getRaw, green, haveRaw, hue, imageImpl, is2D, is3D, lerpColor, lerpColor, loadShape, reapplySettings, rectImpl, rectImpl, red, saturation, setParent, setPath, showDepthWarning, showDepthWarningXYZ, showException, showMethodWarning, showMissingWarning, showVariationWarning, showWarning, showWarning, specularFromCalc, splineForward, strokeFromCalc, textCharModelImpl, textCharScreenImpl, textLineAlignImpl, textSentence, textSentenceBreak, tintFromCalc, vertexCheck, vertexTextureblendColor, blurAlpha, blurARGB, blurRGB, buildBlurKernel, checkAlpha, dilate, getImage, getModifiedX1, getModifiedX2, getModifiedY1, getModifiedY2, getNative, isLoaded, isModified, loadTIFF, saveImageIO, saveTGA, saveTIFF, setLoaded, setLoaded, setModified, setModifiedpublic TextZone(TextZone original)
public TextZone(int x,
int y,
int width,
int height,
java.lang.String inputText,
boolean selectable,
boolean blur,
boolean keysRecievedFromApplet)
public TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
float fontSize)
public TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
java.lang.String inputText,
boolean selectable,
boolean blur,
boolean keysRecievedFromApplet,
float fontSize)
public TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
java.lang.String inputText,
boolean selectable,
boolean blur,
boolean keysRecievedFromApplet,
float fontSize,
processing.core.PFont font)
name - - String: The name of the zonex - - int: X-coordinate of the upper left corner of the zoney - - int: Y-coordinate of the upper left corner of the zonewidth - - int: Width of the zoneheight - - int: Height of the zoneinputText - - String: The text that will be displayed in the Text Zoneselectable - - boolean:blur - - boolean:keysRecievedFromApplet - - boolean:fontSize - - float: Sets the size of the font used to display the text in this zonefont - - PFont: Sets the font used to display the text in this zonepublic TextZone(int x,
int y,
int width,
int height)
public TextZone(int x,
int y,
int width,
int height,
boolean keysRecievedFromApplet)
public TextZone(java.lang.String name,
int x,
int y,
int width,
int height)
public TextZone(java.lang.String name,
int x,
int y,
int width,
int height,
boolean keysRecievedFromApplet)
public void setBkgColor(int r,
int g,
int b,
int a)
r - g - b - a - public void setTextColor(int r,
int g,
int b,
int a)
r - g - b - a - public void setSelBkgColor(int r,
int g,
int b,
int a)
r - g - b - a - public void setSelTextColor(int r,
int g,
int b,
int a)
r - g - b - a - public int[] getBkgColor()
public int[] getTextColor()
public int[] getSelBkgColor(int r,
int g,
int b,
int a)
r - g - b - a - public int[] getSelTextColor(int r,
int g,
int b,
int a)
r - g - b - a - public void setDrawTextBkg(boolean flag)
flag - public boolean getDrawTextBkg()
public void setWordZone(vialab.SMT.TextZone.WordZone wZone)
wZone - public vialab.SMT.TextZone.WordZone getWordZone()
public void setSelectable(boolean flag)
flag - public boolean getSelectable()
public void setFontSize(float fs)
fs - public float getFontSize()
public void setKeysFromApplet(boolean keysFlag)
keysFlag - public boolean getKeysFromApplet()
public void setBlur(boolean blurFlag)
blurFlag - public boolean getBlur()
public void setSmallFont(processing.core.PFont font)
font - public processing.core.PFont getSmallFont()
public void setFont(processing.core.PFont font)
font - public processing.core.PFont getFont()
public void drawImpl()
Zonepublic java.lang.String getText()
public void deleteAllText()
public void delete(int numChars)
numChars - public void addText(java.lang.String text)
text - public void addChar(char c)
c -