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