UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.brainstorm
Class BrainstormSheet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--edu.berkeley.guir.lib.satin.Sheet
                                |
                                +--edu.berkeley.guir.brainstorm.BrainstormSheet
All Implemented Interfaces:
Accessible, BrainstormConstants, Cloneable, EventListener, GraphicalObject, GraphicalObjectCollection, GraphicalObjectGroup, ImageObserver, MenuContainer, SatinConstants, Serializable, Shape, StrokeListener, Watchable, Watcher

public class BrainstormSheet
extends Sheet
implements BrainstormConstants

A brainstorming application.

 Revisions:  1.0.0  06-27-2000 JH
                    Created class
 

Since:
JDK 1.3
Version:
Version 1.0.0, 06-27-2000
Author:
Jason Hong ( jasonh@cs.berkeley.edu )
See Also:
Serialized Form

Inner classes inherited from class edu.berkeley.guir.lib.satin.Sheet
Sheet.SheetGraphicalObjectGroup
 
Inner classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
Component.AccessibleAWTComponent
 
Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D
 
Field Summary
static double DEFAULT_PATCH_LENGTH
          Currently unused.
static int NUMFRAMES
          Number of frames for animation.
 
Fields inherited from class edu.berkeley.guir.lib.satin.Sheet
addFilter, BACKGROUND_COLOR_DEFAULT, BACKGROUND_COLOR_PROPERTY, CURRENTSTROKE_STYLE_FILE
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface edu.berkeley.guir.brainstorm.BrainstormConstants
PORT
 
Fields inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObjectGroup
DEFAULT_POS_POLICY, KEEP_ABS_POS, KEEP_REL_POS
 
Fields inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject
GESTUREINTRP_CLPROPERTY, INKINTRP_CLPROPERTY, STYLE_CLPROPERTY, VIEW_CLPROPERTY
 
Fields inherited from interface edu.berkeley.guir.lib.satin.SatinConstants
ABOVE, ALL, BAR, BELOW, clipboard, clprops, cmdqueue, cmdsubsys, CONTAINEDBY, CONTAINS, COORD_ABS, COORD_LOCAL, COORD_REL, DAMAGE_LATER, DAMAGE_NOW, DEBUG_GRAPHICS_OFFSET, DEBUG_STYLE_FILE, DEBUG_STYLE_GPROPERTY, DEEP, DEFAULT_POINT2D_POOL_SIZE, DEFAULT_POLYGON2D_POOL_SIZE, DEFAULT_RECTANGLE_POOL_SIZE, DEFAULT_REPAINT_THRESHOLD, DEFAULT_SELECT_THRESHOLD, DEFAULT_STRINGBUFFER_POOL_SIZE, DEFAULT_TRANSFORM_POOL_SIZE, DIR_CENTER, DIR_DOWN, DIR_DOWN_LEFT, DIR_DOWN_RIGHT, DIR_LEFT, DIR_RIGHT, DIR_UP, DIR_UP_LEFT, DIR_UP_RIGHT, FILTER_THRESHOLD, FIRST, FLOATING_PT_TOLERANCE, glprops, INTERSECTS, KEY_STYLE_DASHARRAY, KEY_STYLE_DASHPHASE, KEY_STYLE_DRAWCOLOR, KEY_STYLE_DRAWFONT, KEY_STYLE_DRAWTRANSPARENCY, KEY_STYLE_ENDCAP, KEY_STYLE_FILLCOLOR, KEY_STYLE_FILLTRANSPARENCY, KEY_STYLE_LINEJOIN, KEY_STYLE_LINEWIDTH, KEY_STYLE_MITERLIMIT, NEAR, NOTIFY_BOUNDS, NOTIFY_LAYER, NOTIFY_LOCATION, NOTIFY_STYLE, NOTIFY_TRANSFORM, poolPoints, poolPolys, poolRects, poolStrbuf, poolTx, rand, SATIN_DATA_DIRECTORY_DEFAULT, SATIN_DATA_DIRECTORY_GPROPERTY, SATIN_PROPERTIES_FILENAME, SHALLOW
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
BrainstormSheet()
          Default constructor.
 
Method Summary
 void addInkToNote(int id, TimedStroke[] stks)
          Not yet implemented.
 void addLink(int idAA, int idBB)
          Link two notes together.
 int addNote(BrainNote note)
          Add the specified note.
 int addNote(double x, double y)
          Add a note (with an empty label) to the specified location (relative coords).
 int addNote(Label newLabel, double x, double y)
          Add a note at the specified location (relative coords).
 int addNote(Label newLabel, Shape s)
          Create a note of with the specified shape and label.
 int addNote(Shape s)
          Create a note of with the specified shape.
 void addProperty()
          Not yet implemented.
 void bringDownALayer(int id)
          Currently not implemented.
 void bringToBottomLayer(int id)
          Currently not implemented.
 void bringToTopLayer(int id)
          Currently not implemented.
 void bringUpALayer(int id)
          Currently not implemented.
 void clearInkFromNote(int id)
          Not yet implemented.
 void clearLinks()
           
 void damageNote(int id)
          Well, I'm not happy with this, but we need to update links too.
 List getAllLinks()
           
 List getAllNotes()
          Get a list of all the notes.
 BrainNote getNote(int id)
          Get a note given an ID.
 void moveNoteTo(int id, double x, double y)
          Move patch to the specified location (relative coords).
 void paintComponent(Graphics g)
           
 void removeLink(int id)
          Remove all notes associated with this note.
 void removeLink(int idAA, int idBB)
          Link two notes together.
 void removeNote(int id)
          Remove the specified note.
 void removeProperty()
          Not yet implemented.
 void toggleProperty()
          Not yet implemented.
 
Methods inherited from class edu.berkeley.guir.lib.satin.Sheet
add, add, add, add, addIndexedProperty, addToBack, addToBack, addToFront, addToFront, addWatcher, applyTransform, bringDownALayer, bringDownALayer, bringDownNLayers, bringDownNLayers, bringToBottomLayer, bringToBottomLayer, bringToTopLayer, bringToTopLayer, bringUpALayer, bringUpALayer, bringUpNLayers, bringUpNLayers, clear, clearIndexedProperty, clearWatchers, clone, contains, contains, contains, contains, contains, copyInternal, countWatchers, cutInternal, damage, damage, damage, damage, deepClone, delete, deleteInternal, disableDamage, disableNotify, enableDamage, enableNotify, get, getAbsoluteLayer, getAbsoluteLayer, getBoundingPoints2D, getBoundingPoints2D, getBounds2D, getBounds2D, getBounds2D, getCollectionBounds2D, getCollectionBounds2D, getCurrentStyle, getFirst, getForwardIterator, getGestureInterpreter, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getHeight2D, getID, getIndexedProperty, getIndexedProperty, getInkInterpreter, getInverseTransform, getInverseTransform, getLast, getLocation2D, getLocation2D, getParentGroup, getPathIterator, getPathIterator, getProperty, getPropertyNames, getRelativeLayer, getRelativeLayer, getReverseIterator, getSelectedStyle, getSheet, getStyle, getStyleRef, getTransform, getTransform, getTransformRef, getUniqueID, getView, getWidth2D, handleNewStroke, handleSingleStroke, handleUpdateStroke, hasClosedBoundingPoints, hasDamageEnabled, hasNotifyEnabled, indexOf, intersects, intersects, isClippedToBounds, isEmpty, isEnabled, isFocusTraversable, isSelectable, minDistance, minDistance, moveBy, moveBy, moveTo, moveTo, notifyWatchers, notifyWatchers, notifyWatchersDelete, notifyWatchersUpdate, notifyWatchersUpdate, numElements, onDelete, onNewStroke, onNotify, onSingleStroke, onUpdate, onUpdate, onUpdateStroke, pasteInternal, postProcessNewStroke, postProcessSingleStroke, postProcessUpdateStroke, preProcessNewStroke, preProcessSingleStroke, preProcessUpdateStroke, redispatchNewStroke, redispatchSingleStroke, redispatchUpdateStroke, redoInternal, remove, removeAll, removeIndexedProperty, removeIndexedProperty, removeProperty, removeWatcher, render, setAcceptLeftButton, setAcceptMiddleButton, setAcceptRightButton, setAddLeftButtonStrokes, setAddMiddleButtonStrokes, setAddRightButtonStrokes, setAutoScroll, setBackground, setBoundingPoints2D, setClipToBounds, setCurrentStyle, setDrawLeftButtonStrokes, setDrawMiddleButtonStrokes, setDrawRightButtonStrokes, setEnabled, setGestureInterpreter, setHasClosedBoundingPoints, setIndexedProperty, setInkInterpreter, setParentGroup, setProperty, setRelativeLayer, setRelativeLayer, setSelectable, setSelectedStyle, setSheet, setSize, setSize, setStyle, setTransform, setUniqueID, setView, shapeContains, shapeContains, shapeContains, shapeContains, shapeIntersects, shapeIntersects, sort, toString, undoInternal
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject
isVisible, setVisible
 
Methods inherited from interface java.awt.Shape
getBounds
 

Field Detail

NUMFRAMES

public static final int NUMFRAMES
Number of frames for animation.

DEFAULT_PATCH_LENGTH

public static final double DEFAULT_PATCH_LENGTH
Currently unused.
Constructor Detail

BrainstormSheet

public BrainstormSheet()
Default constructor.
Method Detail

getAllNotes

public List getAllNotes()
Get a list of all the notes.

getAllLinks

public List getAllLinks()
Returns:
a list of Link objects.

getNote

public BrainNote getNote(int id)
Get a note given an ID.

addNote

public int addNote(double x,
                   double y)
Add a note (with an empty label) to the specified location (relative coords).

addNote

public int addNote(Label newLabel,
                   double x,
                   double y)
Add a note at the specified location (relative coords).
Parameters:
label - is the name of the patch.
x - is the top-left x-location (relative coords).
y - is the top-left y-location (relative coords).
Returns:
the id of the patch created.

addNote

public int addNote(Shape s)
Create a note of with the specified shape.

addNote

public int addNote(Label newLabel,
                   Shape s)
Create a note of with the specified shape and label.

addNote

public int addNote(BrainNote note)
Add the specified note.

removeNote

public void removeNote(int id)
Remove the specified note.

moveNoteTo

public void moveNoteTo(int id,
                       double x,
                       double y)
Move patch to the specified location (relative coords).

bringUpALayer

public void bringUpALayer(int id)
Currently not implemented.

bringToTopLayer

public void bringToTopLayer(int id)
Currently not implemented.

bringDownALayer

public void bringDownALayer(int id)
Currently not implemented.

bringToBottomLayer

public void bringToBottomLayer(int id)
Currently not implemented.

addLink

public void addLink(int idAA,
                    int idBB)
Link two notes together.

removeLink

public void removeLink(int idAA,
                       int idBB)
Link two notes together.

removeLink

public void removeLink(int id)
Remove all notes associated with this note.

clearLinks

public void clearLinks()

addInkToNote

public void addInkToNote(int id,
                         TimedStroke[] stks)
Not yet implemented. Meant for network access.

clearInkFromNote

public void clearInkFromNote(int id)
Not yet implemented. Meant for network access.

addProperty

public void addProperty()
Not yet implemented. Meant for network access.

removeProperty

public void removeProperty()
Not yet implemented. Meant for network access.

toggleProperty

public void toggleProperty()
Not yet implemented. Meant for network access.

damageNote

public void damageNote(int id)
Well, I'm not happy with this, but we need to update links too.

paintComponent

public void paintComponent(Graphics g)
Overrides:
paintComponent in class Sheet

Copyright Information