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

edu.berkeley.guir.brainstorm
Class BrainNote

java.lang.Object
  |
  +--edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
        |
        +--edu.berkeley.guir.lib.satin.objects.GraphicalObjectGroupImpl
              |
              +--edu.berkeley.guir.lib.satin.objects.PatchImpl
                    |
                    +--edu.berkeley.guir.brainstorm.BrainNote
All Implemented Interfaces:
BrainstormConstants, Cloneable, EventListener, GraphicalObject, GraphicalObjectCollection, GraphicalObjectGroup, Patch, SatinConstants, Serializable, Shape, StrokeListener, Watchable, Watcher

public class BrainNote
extends PatchImpl
implements BrainstormConstants

Here's the scenegraph:

 BrainNote
    -> Label
          -> Text or Ink
    -> Ink
 
 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.SatinConstants
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D
 
Field Summary
static double DEFAULT_LENGTH
           
 
Fields inherited from class edu.berkeley.guir.lib.satin.objects.PatchImpl
PATCH_STYLE_FILE
 
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
 
Constructor Summary
BrainNote()
          Default constructor.
BrainNote(double x, double y)
          Create a note at the specified location.
BrainNote(Label newLabel, double x, double y)
          Create a note at the specified location, with the specified label.
BrainNote(Label newLabel, Shape s)
           
BrainNote(Shape s)
           
 
Method Summary
 void applyTransform(AffineTransform newTx)
          Apply an affine Transform to this Graphical Object.
 void delete()
          Delete this object.
 Label getLabel()
           
 List getPropertiesList()
           
 void handleSingleStroke(SingleStrokeEvent evt)
           
 void setBoundingPoints2D(int cdsys, Shape s)
          Set the bounding points for our default view.
 void setLabel(Label newLabel)
          Set the label for this note.
 void setPropertiesList(List newList)
           
 void setSheet(BrainstormSheet newSheet)
           
 void setTransform(AffineTransform newTx)
          Set and apply a copy of the specified AffineTransform to this GraphicalObject.
 
Methods inherited from class edu.berkeley.guir.lib.satin.objects.PatchImpl
clone, clone, deepClone, deepClone, defaultRender, isAddLeftButtonStrokes, isAddMiddleButtonStrokes, isAddRightButtonStrokes, main, onNotify, onUpdate, onUpdate, renderChildren, setAddLeftButtonStrokes, setAddMiddleButtonStrokes, setAddRightButtonStrokes, setDrawChildren, setDrawPatch, setFillPatch, shapeContainsInternal, shapeContainsInternal, shapeIntersectsInternal, updateGroupBounds, updateGroupBounds
 
Methods inherited from class edu.berkeley.guir.lib.satin.objects.GraphicalObjectGroupImpl
add, add, add, add, addToBack, addToBack, addToFront, addToFront, bringDownALayer, bringDownNLayers, bringToBottomLayer, bringToTopLayer, bringUpALayer, bringUpNLayers, clear, clone, contains, createNewInteractionHandler, deepClone, get, getAbsoluteLayer, getCollectionBounds2D, getCollectionBounds2D, getDispatchee, getFirst, getForwardIterator, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getID, getLast, getRelativeLayer, getReverseIterator, indexOf, isEmpty, notifyWatchersDelete, numElements, onDelete, remove, removeAll, setRelativeLayer, sort, toDebugString
 
Methods inherited from class edu.berkeley.guir.lib.satin.objects.GraphicalObjectImpl
addIndexedProperty, addWatcher, bringDownALayer, bringDownNLayers, bringToBottomLayer, bringToTopLayer, bringUpALayer, bringUpNLayers, clearIndexedProperty, clearWatchers, clone, contains, contains, contains, contains, countWatchers, createNewViewHandler, damage, damage, damage, damage, deepClone, disableDamage, disableNotify, enableDamage, enableNotify, equals, getAbsoluteLayer, getBoundingPoints2D, getBoundingPoints2D, getBoundingPoints2DRef, getBounds, getBounds2D, getBounds2D, getBounds2D, getClassDebugProperty, getClassProperty, getClassPropertyGestureInterpreter, getClassPropertyInkInterpreter, getClassPropertyStyle, getClassPropertyView, getGestureInterpreter, getHeight2D, getIndexedProperty, getIndexedProperty, getInkInterpreter, getInteractionHandler, getInverseTransform, getInverseTransform, getLocalBoundingPoints2DRef, getLocation2D, getLocation2D, getParentGroup, getPathIterator, getPathIterator, getPresentationName, getProperty, getPropertyNames, getRelativeLayer, getSheet, getStyle, getStyleRef, getTransform, getTransform, getTransformRef, getUniqueID, getView, getViewHandler, getWidth2D, handleNewStroke, handleUpdateStroke, hasClosedBoundingPoints, hasDamageEnabled, hasNotifyEnabled, intersects, intersects, isClippedToBounds, isDirty, isSelectable, isVisible, minDistance, minDistance, minLocalDistance, moveBy, moveBy, moveTo, moveTo, notifyWatchers, notifyWatchers, notifyWatchersUpdate, notifyWatchersUpdate, onNewStroke, onSingleStroke, onUpdateStroke, postProcessNewStroke, postProcessSingleStroke, postProcessUpdateStroke, preProcessNewStroke, preProcessSingleStroke, preProcessUpdateStroke, redispatchNewStroke, redispatchSingleStroke, redispatchUpdateStroke, removeIndexedProperty, removeIndexedProperty, removeProperty, removeWatcher, render, renderAllCoordBounds, renderBoundingBox, renderDebug, renderDimensions, renderSelected, renderSelectionHandle, setClassDebugProperty, setClassProperty, setClassPropertyGestureInterpreter, setClassPropertyInkInterpreter, setClassPropertyStyle, setClassPropertyView, setClipToBounds, setDirty, setGestureInterpreter, setHasClosedBoundingPoints, setIndexedProperty, setInkInterpreter, setInteractionHandler, setLocalBoundingPoints2DRef, setParentGroup, setProperty, setRelativeLayer, setSelectable, setStyle, setTransformInternal, setUniqueID, setView, setViewHandler, setVisible, shapeContains, shapeContains, shapeContains, shapeContains, shapeIntersects, shapeIntersects, toString, updateBoundingPoints
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObjectGroup
add, add, addToBack, addToFront, bringDownALayer, bringDownNLayers, bringToBottomLayer, bringToTopLayer, bringUpALayer, bringUpNLayers, getAbsoluteLayer, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getGraphicalObjects, getRelativeLayer, removeAll, setRelativeLayer
 
Methods inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject
addIndexedProperty, bringDownALayer, bringDownNLayers, bringToBottomLayer, bringToTopLayer, bringUpALayer, bringUpNLayers, clearIndexedProperty, damage, damage, damage, damage, disableDamage, enableDamage, getAbsoluteLayer, getBoundingPoints2D, getBoundingPoints2D, getBounds2D, getBounds2D, getGestureInterpreter, getHeight2D, getIndexedProperty, getIndexedProperty, getInkInterpreter, getInverseTransform, getInverseTransform, getLocation2D, getLocation2D, getParentGroup, getProperty, getPropertyNames, getRelativeLayer, getSheet, getStyle, getStyleRef, getTransform, getTransform, getTransformRef, getUniqueID, getView, getWidth2D, handleNewStroke, handleUpdateStroke, hasClosedBoundingPoints, hasDamageEnabled, isClippedToBounds, isSelectable, isVisible, minDistance, minDistance, moveBy, moveBy, moveTo, moveTo, onNewStroke, onSingleStroke, onUpdateStroke, postProcessNewStroke, postProcessSingleStroke, postProcessUpdateStroke, preProcessNewStroke, preProcessSingleStroke, preProcessUpdateStroke, redispatchNewStroke, redispatchSingleStroke, redispatchUpdateStroke, removeIndexedProperty, removeIndexedProperty, removeProperty, render, setClipToBounds, setGestureInterpreter, setHasClosedBoundingPoints, setIndexedProperty, setInkInterpreter, setParentGroup, setProperty, setRelativeLayer, setSelectable, setStyle, setUniqueID, setView, setVisible, shapeContains, shapeContains, shapeContains, shapeContains, shapeIntersects, shapeIntersects
 
Methods inherited from interface edu.berkeley.guir.lib.satin.watch.Watchable
addWatcher, clearWatchers, countWatchers, disableNotify, enableNotify, hasNotifyEnabled, notifyWatchers, notifyWatchers, notifyWatchersDelete, notifyWatchersUpdate, notifyWatchersUpdate, removeWatcher
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
 
Methods inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObjectCollection
add, add, addToBack, addToFront, clear, contains, get, getCollectionBounds2D, getCollectionBounds2D, getFirst, getForwardIterator, getID, getLast, getReverseIterator, indexOf, isEmpty, numElements, remove, sort
 
Methods inherited from interface edu.berkeley.guir.lib.satin.watch.Watcher
onDelete
 

Field Detail

DEFAULT_LENGTH

public static final double DEFAULT_LENGTH
Constructor Detail

BrainNote

public BrainNote()
Default constructor.

BrainNote

public BrainNote(double x,
                 double y)
Create a note at the specified location.
Parameters:
x - is the x-location of the top-left corner.
y - is the y-location of the top-left corner.

BrainNote

public BrainNote(Label newLabel,
                 double x,
                 double y)
Create a note at the specified location, with the specified label.
Parameters:
x - is the x-location of the top-left corner.
y - is the y-location of the top-left corner.

BrainNote

public BrainNote(Shape s)

BrainNote

public BrainNote(Label newLabel,
                 Shape s)
Method Detail

handleSingleStroke

public void handleSingleStroke(SingleStrokeEvent evt)
Overrides:
handleSingleStroke in class PatchImpl
Following copied from interface: edu.berkeley.guir.lib.satin.objects.GraphicalObject
See Also:
GraphicalObject.onNewStroke(NewStrokeEvent)

setBoundingPoints2D

public void setBoundingPoints2D(int cdsys,
                                Shape s)
Description copied from interface: GraphicalObject
Set the bounding points for our default view.

Notifies Watchers of an update when called.

Overrides:
setBoundingPoints2D in class GraphicalObjectImpl
Following copied from interface: edu.berkeley.guir.lib.satin.objects.GraphicalObject
Parameters:
cdsys - is the coordinate system to use.
s - is the shape that describes our bounds.
See Also:
GraphicalObject.getView(), SatinConstants.COORD_LOCAL, SatinConstants.COORD_REL, SatinConstants.COORD_ABS

applyTransform

public void applyTransform(AffineTransform newTx)
Description copied from interface: GraphicalObject
Apply an affine Transform to this Graphical Object.

Notifies Watchers of an update when called.

Overrides:
applyTransform in class GraphicalObjectImpl
Following copied from interface: edu.berkeley.guir.lib.satin.objects.GraphicalObject
Parameters:
newTx - is a Transform to apply. No modifications are made to newTx.

setTransform

public void setTransform(AffineTransform newTx)
Description copied from interface: GraphicalObject
Set and apply a copy of the specified AffineTransform to this GraphicalObject.

Notifies Watchers of an update when called.

Overrides:
setTransform in class GraphicalObjectImpl
Following copied from interface: edu.berkeley.guir.lib.satin.objects.GraphicalObject
Parameters:
newTx - is a Transform to apply. Removes the old one completely. No modifications are made to newTx.

setPropertiesList

public void setPropertiesList(List newList)

getPropertiesList

public List getPropertiesList()

setSheet

public void setSheet(BrainstormSheet newSheet)

setLabel

public void setLabel(Label newLabel)
Set the label for this note.

getLabel

public Label getLabel()

delete

public void delete()
Description copied from interface: GraphicalObject
Delete this object. Useful only if this object has a parent. Essentially, this means that you cannot delete the root of the interactor tree.

Also notifies Watchers of a delete when called.

Overrides:
delete in class GraphicalObjectImpl

Copyright Information