Class pmr.cml.XHTMLNode
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.cml.XHTMLNode
java.lang.Object
|
+----pmr.sgml.SGMLNode
|
+----pmr.sgml.DrawableSGMLNode
|
+----pmr.cml.DrawableX_Node
|
+----pmr.cml.XHTMLNode
- public class XHTMLNode
- extends DrawableX_Node
encapsulates an HTML (or similar) hypertext subtree. Experimental!
- Author:
- Copyright P. Murray-Rust, 1966
-
BOLD
-
-
ITALIC
-
-
NULL
- flags for markup
-
SUP
-
-
XHTMLNode(String, SGMLTree)
-
-
display(Graphics)
- called from the display() routine of DrawableX_Node
-
getColor()
- this hardcoding is temporary ...
-
getContent(String)
- get content as a string - no guarantees about its structure as
HTML; This is just to fulfil the simplest applications.
-
getTitle()
- get title from SECTION attribute if possible, else default
-
mayContain(SGMLNode)
- can this node contain others.
-
process()
- complex objects may require processing; override this.
-
setContent(String)
- add content as a string - no guarantees about its structure as
HTML; This is just to fulfil the simplest applications.
-
setMarkup(String, String)
- set new markup (e.g.
-
setMultipleDisplay(boolean)
-
-
setReferredNode(SGMLNode)
- create this as a copy of an SGMLNode elsewhere whose children
are HTML nodes (e.g.
-
showHelp()
- display Help
NULL
public final static String NULL
- flags for markup
ITALIC
public final static String ITALIC
BOLD
public final static String BOLD
SUP
public final static String SUP
XHTMLNode
public XHTMLNode(String giName,
SGMLTree tree)
setReferredNode
public void setReferredNode(SGMLNode node)
- create this as a copy of an SGMLNode elsewhere whose children
are HTML nodes (e.g. P, BODY, etc.) This is a very shallowCopy
(i.e. only the node reference is used). deactivated by using an
argument of null
setMarkup
public static void setMarkup(String giName,
String style)
- set new markup (e.g. if "IT" is to be used for italic,
setMarkup("IT", "ITALIC");
The currently supported actions are "ITALIC", "BOLD", "SUP"
getTitle
public String getTitle()
- get title from SECTION attribute if possible, else default
- Overrides:
- getTitle in class DrawableX_Node
getColor
public Color getColor()
- this hardcoding is temporary ...
- Overrides:
- getColor in class SGMLNode
setContent
public void setContent(String s)
- add content as a string - no guarantees about its structure as
HTML; This is just to fulfil the simplest applications.
- Overrides:
- setContent in class SGMLNode
getContent
public String getContent(String s)
- get content as a string - no guarantees about its structure as
HTML; This is just to fulfil the simplest applications.
showHelp
public void showHelp()
- display Help
- Overrides:
- showHelp in class DrawableX_Node
mayContain
public boolean mayContain(SGMLNode n)
- can this node contain others.
- Overrides:
- mayContain in class DrawableX_Node
process
public void process()
- complex objects may require processing; override this.
- Overrides:
- process in class DrawableSGMLNode
display
public void display(Graphics g)
- called from the display() routine of DrawableX_Node
- Overrides:
- display in class DrawableX_Node
setMultipleDisplay
public void setMultipleDisplay(boolean m)
All Packages Class Hierarchy This Package Previous Next Index