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

Constructor Index

 o DrawableHTMLNode()
create the DrawableHTMLNode
 o DrawableHTMLNode(String, SGMLTree)

Method Index

 o addSubObject(DrawableHTMLNode)
add a DrawableHTMLNode subObject ; could be overridden to validate types
 o debug()
for debug
 o display(Graphics)
displays the object to a pre-selected graphics context
 o getCurrentY()
gets the y value after display
 o main(String[])
 o mouseUp(Event, int, int)
traps mouse clicks; if not dealt with by theDrawable, may be passed to other routines
 o process()
complex objects may require processing; override this.
 o process(Graphics, Scaler2D)
 o setFont(Font)
set the font so the Paragraph remembers it
 o toString()
returns (maybe recursively) the SGML representation of the node.

Constructors

 o DrawableHTMLNode
  public DrawableHTMLNode()
create the DrawableHTMLNode
 o DrawableHTMLNode
  public DrawableHTMLNode(String giName,
                          SGMLTree tree)

Methods

 o addSubObject
  public void addSubObject(DrawableHTMLNode o)
add a DrawableHTMLNode subObject ; could be overridden to validate types
 o setFont
  public void setFont(Font f)
set the font so the Paragraph remembers it
 o 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
 o display
  public void display(Graphics g)
displays the object to a pre-selected graphics context
Overrides:
display in class DrawableSGMLNode
 o getCurrentY
  public int getCurrentY()
gets the y value after display
 o process
  public void process(Graphics g,
                      Scaler2D sc2d)
Overrides:
process in class DrawableSGMLNode
 o process
  public void process()
complex objects may require processing; override this.
Overrides:
process in class DrawableSGMLNode
 o debug
  public void debug()
for debug
Overrides:
debug in class DrawableSGMLNode
 o toString
  public String toString()
returns (maybe recursively) the SGML representation of the node.
Overrides:
toString in class SGMLNode
 o main
  public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index