|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.pen.PenInput
public abstract class PenInput
Applications need some way to get Pen Input. We can either provide this through the Pen class (which implements this as a digital streaming pen), OR we can simulate this with a graphics tablet.
This software is distributed under the BSD License.
Field Summary | |
---|---|
protected boolean |
liveMode
TRUE if the PenInput object is currently connected to the underlying (physical or simulated) pen in streaming mode. |
protected java.util.List<PenListener> |
penListenersToAdd
Cached pen listeners, so we can add them when/if you go live. |
Constructor Summary | |
---|---|
PenInput(java.lang.String penName)
|
Method Summary | |
---|---|
void |
addLivePenListener(PenListener penListener)
Adds a low-level pen data listener to the live pen. |
java.lang.String |
getName()
|
boolean |
isLive()
|
void |
removeLivePenListener(PenListener penListener)
Removes the pen listener from the live pen. |
void |
setName(java.lang.String nomDePlume)
|
abstract void |
startLiveMode()
|
abstract void |
stopLiveMode()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean liveMode
protected java.util.List<PenListener> penListenersToAdd
Constructor Detail |
---|
public PenInput(java.lang.String penName)
penName
- Method Detail |
---|
public void addLivePenListener(PenListener penListener)
penListener
- public java.lang.String getName()
public boolean isLive()
public void removeLivePenListener(PenListener penListener)
penListener
- public void setName(java.lang.String nomDePlume)
nomDePlume
- For differentiating pens during debugging.public abstract void startLiveMode()
public abstract void stopLiveMode()
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |