|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.util.xml.renderer.html.HTMLObject
public class HTMLObject
Field Summary | |
---|---|
protected java.awt.Color |
background_
|
protected java.awt.Color |
foreground_
|
protected double |
height_
|
protected java.lang.String |
html_text
|
protected boolean |
init_
|
boolean |
is_mouse_over_
|
protected double |
margin_bottom_
|
protected double |
margin_left_
|
protected double |
margin_right_
|
protected double |
margin_up_
|
protected double |
now_y_
|
protected double |
offset_x_
|
protected double |
offset_y_
|
protected double |
preferred_height_
|
protected boolean |
preferred_location_
|
protected double |
preferred_width_
|
protected double |
preferred_x_
|
protected double |
preferred_y_
|
java.awt.geom.Rectangle2D |
rect_
|
protected double |
width_
|
protected double |
write_point_x_
|
protected double |
write_point_y_
|
protected double |
x_
|
protected double |
y_
|
Constructor Summary | |
---|---|
HTMLObject()
|
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
|
static void |
alert(javax.swing.JComponent parent,
java.lang.Object message)
|
static void |
alert(java.lang.Object message)
|
Element |
allowElement(Element element)
called when element is detected. |
boolean |
checkEndTag()
if true, check open tag key and close tag key. |
void |
debug(java.lang.String message)
|
void |
doLayout()
|
void |
doRenderer()
|
void |
draw(java.awt.Graphics g)
|
boolean |
finished()
|
void |
fireChanged()
|
boolean |
forceEmptyTag(java.lang.String key)
Basicly, all the tag must open and close. |
double |
getHeight()
|
ParserPolicy |
getInnerPolicy(Element element)
return handler that handle this element |
double |
getPreferredHeight()
|
double |
getPreferredWidth()
|
double |
getPreferredX()
|
double |
getPreferredY()
|
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
boolean |
hit(double x,
double y)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
|
void |
paint(java.awt.Graphics g)
|
java.lang.String |
selectEncoding(java.lang.String last_tag_key)
if encoding cannot be detected by first line of document, this method will be called. |
void |
setBackground(java.awt.Color background)
|
void |
setForeground(java.awt.Color foreground)
|
void |
setLocation(double x,
double y)
|
void |
setPreferredLocation(double x,
double y)
|
void |
setPreferredSize(double width,
double height)
|
void |
setSize(double width,
double height)
|
Element |
startElement(Element element)
|
boolean |
throwExceptionIfDocumentHasError()
Throw exception if document has error. |
void |
write(HTMLObject html_object)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean init_
protected double preferred_width_
protected double preferred_height_
protected double preferred_x_
protected double preferred_y_
protected double offset_x_
protected double offset_y_
protected boolean preferred_location_
protected double width_
protected double height_
protected double x_
protected double y_
protected java.awt.Color background_
protected java.awt.Color foreground_
public boolean is_mouse_over_
protected double write_point_x_
protected double write_point_y_
protected double margin_up_
protected double margin_bottom_
protected double margin_right_
protected double margin_left_
protected java.lang.String html_text
protected double now_y_
public java.awt.geom.Rectangle2D rect_
Constructor Detail |
---|
public HTMLObject()
Method Detail |
---|
public static void alert(java.lang.Object message)
public static void alert(javax.swing.JComponent parent, java.lang.Object message)
public boolean hit(double x, double y)
public void addChangeListener(javax.swing.event.ChangeListener listener)
public void fireChanged()
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
public void mouseClicked(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void setBackground(java.awt.Color background)
public void setForeground(java.awt.Color foreground)
public void setPreferredSize(double width, double height)
public void setPreferredLocation(double x, double y)
public double getPreferredWidth()
public double getPreferredHeight()
public double getPreferredX()
public double getPreferredY()
public double getX()
public double getY()
public double getWidth()
public double getHeight()
public void setLocation(double x, double y)
public void setSize(double width, double height)
public void paint(java.awt.Graphics g)
public void doLayout()
public void doRenderer()
public void write(HTMLObject html_object)
public void draw(java.awt.Graphics g)
public void debug(java.lang.String message)
public boolean throwExceptionIfDocumentHasError()
ParserPolicy
throwExceptionIfDocumentHasError
in interface ParserPolicy
public boolean checkEndTag()
ParserPolicy
checkEndTag
in interface ParserPolicy
public ParserPolicy getInnerPolicy(Element element)
ParserPolicy
getInnerPolicy
in interface ParserPolicy
public java.lang.String selectEncoding(java.lang.String last_tag_key)
ParserPolicy
selectEncoding
in interface ParserPolicy
public boolean forceEmptyTag(java.lang.String key)
ParserPolicy
forceEmptyTag
in interface ParserPolicy
public Element startElement(Element element)
public boolean finished()
finished
in interface ParserPolicy
public Element allowElement(Element element)
ParserPolicy
allowElement
in interface ParserPolicy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |