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

edu.berkeley.guir.brainstorm.net
Class SerializationLib

java.lang.Object
  |
  +--edu.berkeley.guir.brainstorm.net.SerializationLib
All Implemented Interfaces:
SatinConstants

public class SerializationLib
extends Object
implements SatinConstants

 Revisions:  1.0.0  07-24-2000 JH
                    Created class
 

Since:
JDK 1.3
Version:
Version 1.0.0, 07-24-2000
Author:
Jason Hong ( jasonh@cs.berkeley.edu )

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 String END_DELIMITER
           
static String KEY_BOUNDS
           
static String KEY_CONTAINS
           
static String KEY_ID
           
static String KEY_LINKS
           
static String KEY_PROPERTIES
           
static String KEY_PROPERTYNAMES
           
static String KEY_TEXT
           
static String KEY_TYPE
           
static String PARSE_TOKENS
           
static String START_DELIMITER
           
static String VAL_TYPE_LABEL
           
static String VAL_TYPE_NOTE
           
static String VAL_TYPE_SHEET
           
static String VAL_TYPE_STROKE
           
static String VAL_TYPE_TEXT
           
 
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
 
Method Summary
static void main(String[] argv)
           
static void parseFrames(BrainstormSheet sheet, String strFrames)
          Given a collection of frames, parse the whole thing into Brainnote objects and re-assemble the scenegraph.
static String toString(BrainNote note)
          Format:
static String toString(BrainstormSheet sheet)
          Links, list of objects, property names.
static String toString(GObText text)
          Format:
static String toString(Label lbl)
          Format:
static String toString(TimedStroke stk)
          Format:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_DELIMITER

public static final String START_DELIMITER

END_DELIMITER

public static final String END_DELIMITER

KEY_TYPE

public static final String KEY_TYPE

VAL_TYPE_SHEET

public static final String VAL_TYPE_SHEET

VAL_TYPE_NOTE

public static final String VAL_TYPE_NOTE

VAL_TYPE_LABEL

public static final String VAL_TYPE_LABEL

VAL_TYPE_STROKE

public static final String VAL_TYPE_STROKE

VAL_TYPE_TEXT

public static final String VAL_TYPE_TEXT

KEY_ID

public static final String KEY_ID

KEY_BOUNDS

public static final String KEY_BOUNDS

KEY_PROPERTIES

public static final String KEY_PROPERTIES

KEY_PROPERTYNAMES

public static final String KEY_PROPERTYNAMES

KEY_CONTAINS

public static final String KEY_CONTAINS

KEY_LINKS

public static final String KEY_LINKS

KEY_TEXT

public static final String KEY_TEXT

PARSE_TOKENS

public static final String PARSE_TOKENS
Method Detail

parseFrames

public static void parseFrames(BrainstormSheet sheet,
                               String strFrames)
Given a collection of frames, parse the whole thing into Brainnote objects and re-assemble the scenegraph.
Parameters:
str - is the serialized output.

toString

public static String toString(BrainNote note)
Format:
 {
    type=note
    id=15
    bounds=x1,y1,x2,y2,x3,y3,...           // int values
    properties=1,3,7,
    contains=20,24,36,                     // id's
 }
 

toString

public static String toString(Label lbl)
Format:
 {
    type=label
    id=12
    contains=31,32,33
 }
 

toString

public static String toString(TimedStroke stk)
Format:
 {
    type=stroke
    id=20
    bounds=x1,y1,x2,y2,x3,y3,...           // int values
 }
 

toString

public static String toString(GObText text)
Format:
 {
    type=text
    id=40
    text=Sample text
 }
 

toString

public static String toString(BrainstormSheet sheet)
Links, list of objects, property names.

Format:

 {
    type=sheet
    links=2,4
    contains=
    properties=
 }
 

main

public static void main(String[] argv)

Copyright Information