Class pmr.cml.ARRAYNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.cml.ARRAYNode

java.lang.Object
   |
   +----pmr.sgml.SGMLNode
           |
           +----pmr.sgml.DrawableSGMLNode
                   |
                   +----pmr.cml.DrawableX_Node
                           |
                           +----pmr.cml.DataPrimitive
                                   |
                                   +----pmr.cml.ARRAYNode

public class ARRAYNode
extends DataPrimitive
An array of simple objects - strings, floats, etc. Essentially a container for a homogeneous set of XVARs. Also does matrices, etc.
Author:
(C) P. Murray-Rust, 1996

Constructor Index

 o ARRAYNode(String, SGMLTree)
construct from a SGMLNode in a tree

Method Index

 o addBuiltin(String, String)
for use by other DTDs which use BUILTINs
 o childrenToString()
this is required as we have to deal with _PEL subnodes; note that this returns the UNALTERED input (i.e.
 o createAndAdd(SGMLTree, int, double[])
create from a double[] - still being tested
 o createAndAdd(SGMLTree, int, int[])
create from a int[] - still being tested
 o createAndAdd(SGMLTree, int, RealMatrix)
create from a RealMatrix - still being tested
 o createAndAdd(SGMLTree, int, String[])
create from a String[] - still being tested
 o debug()
for debug
 o display()
dummy until we write one...
 o display(Graphics)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else.
 o displayIDs()
for an ARRAY of IDs, display them if possible
 o drawIcon(Graphics, int, int)
at some stage make this useful to subclasses
 o getAllowedAttributeValues(String)
give the list of possible values for BUILTIN, FUZZY, STRUCT or TYPE
 o getColumns()
 o getFloatValues()
 o getIntValues()
 o getMatrix()
 o getRows()
 o getStringValues()
 o mayContain(SGMLNode)
XVAR and ARRAY may node contain other nodes (except PEL).
 o parseError(String)
 o process()
complex objects may require processing; override this.
 o showHelp()
display Help
 o size()

Constructors

 o ARRAYNode
  public ARRAYNode(String giName,
                   SGMLTree tree)
construct from a SGMLNode in a tree

Methods

 o addBuiltin
  public static void addBuiltin(String builtin,
                                String typ) throws IllegalArgumentException
for use by other DTDs which use BUILTINs
 o createAndAdd
  public static int createAndAdd(SGMLTree tree,
                                 int parentIndex,
                                 String s[])
create from a String[] - still being tested
 o createAndAdd
  public static int createAndAdd(SGMLTree tree,
                                 int parentIndex,
                                 double d[])
create from a double[] - still being tested
 o createAndAdd
  public static int createAndAdd(SGMLTree tree,
                                 int parentIndex,
                                 int d[])
create from a int[] - still being tested
 o createAndAdd
  public static int createAndAdd(SGMLTree tree,
                                 int parentIndex,
                                 RealMatrix m)
create from a RealMatrix - still being tested
 o showHelp
  public void showHelp()
display Help
Overrides:
showHelp in class DrawableX_Node
 o getFloatValues
  public double[] getFloatValues()
 o getStringValues
  public String[] getStringValues()
 o getIntValues
  public int[] getIntValues()
 o size
  public int size()
 o getRows
  public int getRows()
 o getColumns
  public int getColumns()
 o getMatrix
  public XMatrix getMatrix()
 o mayContain
  public boolean mayContain(SGMLNode n)
XVAR and ARRAY may node contain other nodes (except PEL).
Overrides:
mayContain in class DataPrimitive
 o process
  public void process()
complex objects may require processing; override this.
Overrides:
process in class DrawableSGMLNode
 o getAllowedAttributeValues
  public StringSet getAllowedAttributeValues(String attname)
give the list of possible values for BUILTIN, FUZZY, STRUCT or TYPE
 o parseError
  public void parseError(String s)
 o displayIDs
  public void displayIDs()
for an ARRAY of IDs, display them if possible
 o display
  public void display()
dummy until we write one...
Overrides:
display in class DrawableSGMLNode
 o display
  public void display(Graphics g)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else.
Overrides:
display in class DrawableX_Node
 o debug
  public void debug()
for debug
Overrides:
debug in class DrawableX_Node
 o childrenToString
  public String childrenToString()
this is required as we have to deal with _PEL subnodes; note that this returns the UNALTERED input (i.e. no conversion or expansion)
Overrides:
childrenToString in class SGMLNode
 o drawIcon
  public int drawIcon(Graphics g,
                      int x,
                      int y)
at some stage make this useful to subclasses
Overrides:
drawIcon in class DataPrimitive

All Packages  Class Hierarchy  This Package  Previous  Next  Index