Class pmr.sgml.DrawableHTMLNode
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.sgml.DrawableHTMLNode
java.lang.Object
|
+----pmr.sgml.SGMLNode
|
+----pmr.sgml.DrawableSGMLNode
|
+----pmr.sgml.DrawableHTMLNode
- public class DrawableHTMLNode
- extends DrawableSGMLNode
A generic Drawable HTML node is a set of nestable objects
(e.g. components of a list, etc). As each
subObject is drawn it determines where the next object starts and also
increases the size of 'this' object's bounding box. Expansion is only
vertical at present. the main present emphasis is hypertext page layout
- Author:
- (C) P. Murray-Rust, 1996
-
DrawableHTMLNode()
- create the DrawableHTMLNode
-
DrawableHTMLNode(String, SGMLTree)
-
-
addSubObject(DrawableHTMLNode)
- add a DrawableHTMLNode subObject ; could be overridden to validate types
-
debug()
- for debug
-
display(Graphics)
- displays the object to a pre-selected graphics context
-
getCurrentY()
- gets the y value after display
-
main(String[])
-
-
mouseUp(Event, int, int)
- traps mouse clicks; if not dealt with by theDrawable, may be passed to
other routines
-
process()
- complex objects may require processing; override this.
-
process(Graphics, Scaler2D)
-
-
setFont(Font)
- set the font so the Paragraph remembers it
-
toString()
- returns (maybe recursively) the SGML representation of the node.
DrawableHTMLNode
public DrawableHTMLNode()
- create the DrawableHTMLNode
DrawableHTMLNode
public DrawableHTMLNode(String giName,
SGMLTree tree)
addSubObject
public void addSubObject(DrawableHTMLNode o)
- add a DrawableHTMLNode subObject ; could be overridden to validate types
setFont
public void setFont(Font f)
- set the font so the Paragraph remembers it
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- traps mouse clicks; if not dealt with by theDrawable, may be passed to
other routines
- Overrides:
- mouseUp in class DrawableSGMLNode
display
public void display(Graphics g)
- displays the object to a pre-selected graphics context
- Overrides:
- display in class DrawableSGMLNode
getCurrentY
public int getCurrentY()
- gets the y value after display
process
public void process(Graphics g,
Scaler2D sc2d)
- Overrides:
- process in class DrawableSGMLNode
process
public void process()
- complex objects may require processing; override this.
- Overrides:
- process in class DrawableSGMLNode
debug
public void debug()
- for debug
- Overrides:
- debug in class DrawableSGMLNode
toString
public String toString()
- returns (maybe recursively) the SGML representation of the node.
- Overrides:
- toString in class SGMLNode
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index