ach.vectorGraphics
Class Annotations

java.lang.Object
  extended byach.vectorGraphics.Annotations

public class Annotations
extends java.lang.Object

Annotations.java
Copyright (c) 2002-2005 Helge Hackbarth, All Rights Reserved.
A class to process XML formatted annotations. Creates an array of ShapeLists (one ShapeList for each page). Each ShapeList contains all vector graphics objects to be drawn e.g. as annotations. The format of the expected XML file is described in TiffyAppletDoc.html.

THE AUTHOR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THE AUTHOR SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.


Field Summary
static java.lang.String sAnnotations
          Static token for the annotations document tag
 
Constructor Summary
Annotations()
          Constructor for Annotations
 
Method Summary
 ShapeList[] createShapeLists(java.lang.String annotations)
          Create array of ShapeLists (one ShapeList for each page) from an XML string.
static java.lang.String getXMLRepresentation(ShapeList[] shapeListArray, java.lang.String rootAttribute)
          Get an XML representation of the current ShapeLists of annotations as string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sAnnotations

public static final java.lang.String sAnnotations
Static token for the annotations document tag

See Also:
Constant Field Values
Constructor Detail

Annotations

public Annotations()
Constructor for Annotations

Method Detail

createShapeLists

public ShapeList[] createShapeLists(java.lang.String annotations)
Create array of ShapeLists (one ShapeList for each page) from an XML string. The format of the expected XML string is described in TiffyAppletDoc.html.

Parameters:
annotations - String containing the vector graphic objects XML formatted.

getXMLRepresentation

public static java.lang.String getXMLRepresentation(ShapeList[] shapeListArray,
                                                    java.lang.String rootAttribute)
Get an XML representation of the current ShapeLists of annotations as string. The format of the expected XML string is described in TiffyAppletDoc.html.