public class SlidingDrawer extends Drawer
RectangularContainer
. Currently only TOP position is
supported.RectangularContainer
ADD, 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_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_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, 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, 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, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z
Modifier and Type | Method and Description |
---|---|
processing.core.PVector |
getHandleLocation()
Get the location of the drawer's handle in global coordinates.
|
float |
getVisibleWidth()
Get the width of the visible portion of the drawer (how much of the
drawer was dragged out to the screen).
|
boolean |
isItemAbove(vialab.SMT.Zone item)
Calculate whether or not the given item is above the drawer.
|
static SlidingDrawer |
makeTopDrawer(processing.core.PApplet parent,
int drawerDepth)
Automatically make a sliding drawer on the top of the screen.
|
addListener, getContainer, getPosition, getPrimaryColour, getSecondaryColour, isOpen, removeListener, setColourScheme
add, assign, assign, beginTouch, clearZones, clone, clone, clone, contains, drag, drag, drag, drag, drag, drag, drag, drag, drag, drag, dragWithinParent, drawRntCircle, endTouch, fromZoneVector, getActiveTouch, getCentre, getChild, getChildCount, getChildren, getGlobalMatrix, getHeight, getIds, getName, getNumTouches, getOrigin, getParent, getRntRadius, getTouchCollection, getTouches, getTouchMap, getWidth, getX, getY, hSwipe, hSwipe, isActive, isAssigned, isAssigned, isChildActive, isDirect, keyPressed, keyReleased, keyTyped, pinch, pinch, putChildOnTop, remove, resetMatrix, rnt, rnt, rnt, rnt, rotate, rotate, rotateAbout, rotateAbout, rotateAboutCentre, rs, rst, rst, rst, rst, rst, rst, setBodyFromMatrix, setData, setDirect, setLocation, setMatrixFromBody, setName, setRntRadius, setSize, swipeDown, swipeLeft, swipeRight, swipeUp, toss, toZoneVector, unassign, unassign, unassignAll, vSwipe, vSwipe
alpha, ambient, ambient, ambient, ambientLight, ambientLight, applyMatrix, applyMatrix, applyMatrix, applyMatrix, applyMatrix, arc, background, background, background, background, background, background, background, beginCamera, beginRaw, beginShape, beginShape, bezier, bezier, bezierDetail, bezierPoint, bezierTangent, bezierVertex, bezierVertex, blend, blend, blue, box, box, brightness, camera, camera, canDraw, color, color, color, color, color, color, color, color, color, colorMode, colorMode, colorMode, colorMode, copy, copy, curve, curve, curveDetail, curvePoint, curveTangent, curveTightness, curveVertex, curveVertex, directionalLight, displayable, dispose, edge, ellipse, ellipseMode, emissive, emissive, emissive, endCamera, endRaw, endShape, endShape, fill, fill, fill, fill, fill, fill, filter, filter, flush, frustum, get, get, get, getCache, getMatrix, getMatrix, getMatrix, getStyle, getStyle, green, hint, hue, image, image, image, imageMode, init, is2D, is3D, isModified, lerpColor, lightFalloff, lights, lightSpecular, line, line, loadPixels, mask, mask, modelX, modelY, modelZ, noFill, noLights, normal, noSmooth, noStroke, noTint, ortho, ortho, perspective, perspective, point, point, pointLight, popMatrix, popStyle, printCamera, printMatrix, printProjection, pushMatrix, pushStyle, quad, rect, rect, rect, rectMode, red, removeCache, resize, rotate, rotate, rotateX, rotateY, rotateZ, saturation, save, scale, scale, scale, screenX, screenX, screenY, screenY, screenZ, set, set, setCache, setMatrix, setMatrix, setMatrix, setModified, setModified, setParent, setPath, setPrimary, shape, shape, shape, shapeMode, shininess, smooth, specular, specular, specular, sphere, sphereDetail, sphereDetail, spotLight, stroke, stroke, stroke, stroke, stroke, stroke, 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, textWidth, textWidth, textWidth, tint, tint, tint, tint, tint, tint, translate, translate, triangle, updatePixels, updatePixels, vertex, vertex, vertex, vertex, vertex
public static SlidingDrawer makeTopDrawer(processing.core.PApplet parent, int drawerDepth)
parent
- parent appletdrawerDepth
- depth of the drawer in pixelspublic boolean isItemAbove(vialab.SMT.Zone item)
Drawer
isItemAbove
in class Drawer
item
- a zone object to be checkedpublic processing.core.PVector getHandleLocation()
Drawer
getHandleLocation
in class Drawer
public float getVisibleWidth()
Drawer
getVisibleWidth
in class Drawer