public abstract class Drawer
extends vialab.SMT.Zone
Modifier and Type | Field and Description |
---|---|
boolean |
autoClose
Auto close flag to indicate whether or not the drawer should close
automatically.
|
static java.lang.String |
CLOSED
The event ID for "drawer was closed" event.
|
static java.lang.String |
MOVED
The event ID for "drawer was moved" event.
|
static java.lang.String |
OPEN
The event ID for "drawer was opened" event.
|
int |
openWidth
The visible width at which the drawer is considered open.
|
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 |
---|---|
void |
addListener(java.awt.event.ActionListener listener)
Add a listener.
|
Container |
getContainer() |
abstract processing.core.PVector |
getHandleLocation()
Get the location of the drawer's handle in global coordinates.
|
int |
getPosition() |
int |
getPrimaryColour() |
int |
getSecondaryColour() |
abstract float |
getVisibleWidth()
Get the width of the visible portion of the drawer (how much of the
drawer was dragged out to the screen).
|
abstract boolean |
isItemAbove(vialab.SMT.Zone item)
Calculate whether or not the given item is above the drawer.
|
boolean |
isOpen()
Is drawer currently opened?
|
boolean |
removeListener(java.awt.event.ActionListener listener)
Remove a listener.
|
void |
setColourScheme(int primary,
int secondary)
Set the colour scheme of the container.
|
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 final java.lang.String OPEN
public static final java.lang.String CLOSED
public static final java.lang.String MOVED
public int openWidth
public boolean autoClose
public boolean isOpen()
public abstract boolean isItemAbove(vialab.SMT.Zone item)
item
- a zone object to be checkedpublic abstract processing.core.PVector getHandleLocation()
public abstract float getVisibleWidth()
public int getPosition()
public Container getContainer()
public void setColourScheme(int primary, int secondary)
primary
- primary coloursecondary
- secondary colourpublic int getPrimaryColour()
public int getSecondaryColour()
public void addListener(java.awt.event.ActionListener listener)
listener
- listener object to addpublic boolean removeListener(java.awt.event.ActionListener listener)
listener
- listener object to remove