|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--edu.mit.sketch.ui.SketchPanel
|
+--edu.mit.sketch.system.SurfaceView
This is the core class responsible for displaying the information currently on the BB to the user. It employs a renderer to display the individual items. It observes the BB and is updated anytime that the BB is.
Since the SurfaceView is a SketchPanel
other classes can register to listen for new stroke events that it
will fire when it detects new inputs.
Created: Mon Nov 5 13:00:16 2001
Copyright: Copyright (C) 2001 by MIT. All rights reserved.
| 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 |
| 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SurfaceView()
|
|
| Method Summary | |
Color |
getStrokeColor()
Gets the color of strokes |
int |
getStrokeThickness()
Gets the thickness of rendered strokes. |
void |
paintComponent(Graphics g)
Paint the items on the appropriate graphics context. |
void |
setStrokeColor(Color argStrokeColor)
Sets the stroke's color |
void |
setStrokeThickness(int argThickness)
Sets the thickness of rendered strokes. |
void |
update(Observable observable,
Object data)
This is called when the BB is updated and wants to update the display. |
void |
updateItems(Blackboard bb)
|
| Methods inherited from class edu.mit.sketch.ui.SketchPanel |
addStrokeDataListener, isPaintingAsWeGo, isRecognizing, removeStrokeDataListener, setIsPaintingAsWeGo, setIsRecognizing |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
| 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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SurfaceView()
| Method Detail |
public void update(Observable observable,
Object data)
updateItems(edu.mit.sketch.system.Blackboard).update in interface Observerobserverable - The Observable that changeddata - The message passed from the modelpublic void updateItems(Blackboard bb)
public void paintComponent(Graphics g)
paintComponent in class JComponentpublic Color getStrokeColor()
public void setStrokeColor(Color argStrokeColor)
argStrokeColor - The stroke's colorpublic int getStrokeThickness()
public void setStrokeThickness(int argThickness)
argThickness - thickness of rendered strokes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||