|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.PaperToolkit
public class PaperToolkit
Every PaperToolit has one EventEngine that handles input from users, and schedules output for the system. A PaperToolkit can run one or more Applications at the same time. You can also deactivate applications (to pause them). Or, you can remove them altogether. (These features are not yet fully implemented.)
This software is distributed under the BSD License.
TODOS:
Field Summary | |
---|---|
static java.lang.String |
CONFIG_FILE_KEY
|
static java.lang.String |
CONFIG_FILE_VALUE
|
static java.lang.String |
CONFIG_PATTERN_PATH_KEY
|
static java.lang.String |
CONFIG_PATTERN_PATH_VALUE
|
static java.io.File |
PATTERN_PATH
Where to find the directories that store our pattern definition files. |
Constructor Summary | |
---|---|
PaperToolkit()
Start up a paper toolkit. |
|
PaperToolkit(boolean useAppManager)
|
|
PaperToolkit(boolean useLookAndFeel,
boolean useAppManager,
boolean useHandwritingRecognitionServer)
|
Method Summary | |
---|---|
static java.lang.Object |
fromXML(java.io.File xmlFile)
Loads an object from an XML File. |
javax.swing.JFrame |
getApplicationManager()
Allows an end user to stop, start, and otherwise manage loaded applications. |
EventEngine |
getEventEngine()
EXPERTS ONLY: Interact with the EventEngine at runtime! |
static java.io.File |
getPatternPath()
|
static java.io.File |
getPenSynchDataPath()
|
java.lang.String |
getProperty(java.lang.String propertyKey)
|
static java.io.File |
getResourceFile(java.lang.String resourcePath)
Can only point to files... |
static java.io.File |
getToolkitRootPath()
Before 1.0, we will need to make sure this can work with a JAR-style deployment. |
static void |
initializeLookAndFeel()
Sets up parameters for any Java Swing UI we need. |
static void |
initializeNativeLookAndFeel()
|
void |
loadApplication(Application app)
Adds an application to the loaded list, and displays the application manager. |
void |
loadMostRecentPatternMappings()
|
static void |
main(java.lang.String[] args)
Alternatively, try using the batch files instead. |
void |
print(Sheet sheet)
TODO: Figure out the easiest way to send a PDF (with or without regions) to the default printer. |
static void |
runApplication(Application paperApp)
Convenience function that uses an internal PaperToolkit object. |
static void |
startAcrobatDesigner()
|
void |
startApplication(Application paperApp)
Start this application and register all live pens with the event engine. |
void |
stopApplication(Application paperApp)
Remove the application and stop receiving events from its pens.... |
static java.lang.String |
toXML(java.lang.Object obj)
|
static void |
toXML(java.lang.Object object,
java.io.File outputFile)
|
static void |
toXML(java.lang.Object object,
java.io.OutputStream stream)
|
static java.lang.String |
toXMLNoLineBreaks(java.lang.Object o)
|
void |
unloadApplication(Application app)
|
void |
useApplicationManager(boolean flag)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_FILE_KEY
public static final java.lang.String CONFIG_FILE_VALUE
public static final java.lang.String CONFIG_PATTERN_PATH_KEY
public static final java.lang.String CONFIG_PATTERN_PATH_VALUE
public static final java.io.File PATTERN_PATH
Constructor Detail |
---|
public PaperToolkit()
public PaperToolkit(boolean useAppManager)
useAppManager
- public PaperToolkit(boolean useLookAndFeel, boolean useAppManager, boolean useHandwritingRecognitionServer)
useAppManager
- Method Detail |
---|
public static java.lang.Object fromXML(java.io.File xmlFile)
xmlFile
-
public static java.io.File getPatternPath()
public static java.io.File getPenSynchDataPath()
public static java.io.File getResourceFile(java.lang.String resourcePath)
resourcePath
-
public static java.io.File getToolkitRootPath()
public static void initializeLookAndFeel()
public static void initializeNativeLookAndFeel()
public static void main(java.lang.String[] args)
args
- public static void runApplication(Application paperApp)
paperApp
- public static void startAcrobatDesigner()
public static java.lang.String toXML(java.lang.Object obj)
obj
-
public static void toXML(java.lang.Object object, java.io.File outputFile)
object
- outputFile
- public static void toXML(java.lang.Object object, java.io.OutputStream stream)
object
- stream
- write the xml to disk or another output stream.public static java.lang.String toXMLNoLineBreaks(java.lang.Object o)
o
-
public javax.swing.JFrame getApplicationManager()
public EventEngine getEventEngine()
public java.lang.String getProperty(java.lang.String propertyKey)
public void loadApplication(Application app)
app
- public void loadMostRecentPatternMappings()
public void print(Sheet sheet)
sheet
- public void startApplication(Application paperApp)
paperApp
- public void stopApplication(Application paperApp)
paperApp
- public void unloadApplication(Application app)
app
- public void useApplicationManager(boolean flag)
flag
- whether or not to load the app manager when you load an application.
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |