diva.canvas.toolbox
Class GraphicsParser

java.lang.Object
  extended by diva.canvas.toolbox.GraphicsParser

Deprecated. Will be removed in Diva 0.4. Use diva.compat.canvas if needed, or diva.canvas.toolbox.VectorFigureBuilder.

public class GraphicsParser
extends Object

A collection of utilities to help parsing graphics from strings and other kinds of external storage.

Version:
$Revision: 1.13 $
Author:
John Reekie

Constructor Summary
GraphicsParser()
          Deprecated.  
 
Method Summary
static PaintedObject createPaintedObject(String type, Map attributes)
          Deprecated. Create a new painted object.
static PaintedObject createPaintedObject(String type, Map attributes, String content)
          Deprecated. Create a new painted object.
static PaintedObject createPaintedObject(String type, String attributes, String content)
          Deprecated. Create a new painted object.
static void hashAttributes(String s, Map map)
          Deprecated. Given a XML-style attribute string and a hash-table, add each attribute and its value to the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsParser

public GraphicsParser()
Deprecated. 
Method Detail

createPaintedObject

public static PaintedObject createPaintedObject(String type,
                                                String attributes,
                                                String content)
Deprecated. 
Create a new painted object. The element is parsed from two strings, the first being a representation of the element type, and the second being an XML-style attribute string. Any attributes that are not recognized will be ignored. Legal types and their attributes are:


createPaintedObject

public static PaintedObject createPaintedObject(String type,
                                                Map attributes,
                                                String content)
Deprecated. 
Create a new painted object. The first argument is a string representation of the element type, and the second is a hash-table containing attributes of the object. Any attributes that are not recognized will be ignored. See the add(String, String) for a description of legal types and their attributes.


createPaintedObject

public static PaintedObject createPaintedObject(String type,
                                                Map attributes)
Deprecated. 
Create a new painted object. The first argument is a string representation of the element type, and the second is a hash-table containing attributes of the object. Any attributes that are not recognized will be ignored. See the add(String, String) for a description of legal types and their attributes.


hashAttributes

public static void hashAttributes(String s,
                                  Map map)
Deprecated. 
Given a XML-style attribute string and a hash-table, add each attribute and its value to the table.

FIXME: this sucks.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.