|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.dom.AbstractPartialNodeImpl
net.sourceforge.jeuclid.dom.AbstractPartialDocumentImpl
net.sourceforge.jeuclid.elements.generic.DocumentElement
public class DocumentElement
Class for MathML Document Nodes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl |
|---|
AbstractPartialNodeImpl.NodeList |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DocumentElement(MathBase base)
Creates a math element. |
|
| Method Summary | |
|---|---|
void |
addListener(ChangeTrackingInterface listener)
Adds a change listener to this element. |
void |
fireChanged(boolean propagate)
Called when the element has changed. |
void |
fireChangeForSubTree()
fires a change on this element and all its children, but no listeners and parents. |
float |
getAscentHeight(Graphics2D g)
Returns the current height of the upper part of this component from the baseline. |
float |
getDescentHeight(Graphics2D g)
Returns the current height of the lower part of this component from the baseline. |
String |
getDomain()
The domain name of the server that served the document, or null if the server cannot be identified by a domain name, or if it is not available. |
float |
getFontsizeInPoint()
Gets the size of the actual font used (including scriptsizemultiplier). |
float |
getHeight(Graphics2D g)
Return the current height of this element. |
float |
getMathsizeInPoint()
Get the actual mathsize in points. |
float |
getPaintedPosX()
Returns the last X position this node was painted on. |
float |
getPaintedPosY()
Returns the last Y position this node was painted on. |
String |
getReferrer()
The URI of the page that linked to this document, if available. |
String |
getURI()
The complete URI of this document. |
float |
getWidth(Graphics2D g)
Returns the current width of this element. |
float |
getXCenter(Graphics2D g)
Returns the center X coordinate of the content. |
void |
paint(Graphics2D g,
float posX,
float posY)
Paints the whole MathML document. |
void |
setMathBase(MathBase base)
Set the MathBase to use within this document tree. |
| Methods inherited from class net.sourceforge.jeuclid.dom.AbstractPartialNodeImpl |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
|---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Constructor Detail |
|---|
public DocumentElement(MathBase base)
base - The base for the math element tree.| Method Detail |
|---|
public String getDomain()
getDomain in interface MathMLDocumentpublic String getReferrer()
getReferrer in interface MathMLDocumentpublic String getURI()
getURI in interface MathMLDocument
public void paint(Graphics2D g,
float posX,
float posY)
paint in interface DisplayableNodeg - Graphics2D context.posX - x-offset to start from.posY - y-offset to start from.public float getWidth(Graphics2D g)
getWidth in interface DisplayableNodeg - Graphics2D context to use.
public float getAscentHeight(Graphics2D g)
getAscentHeight in interface DisplayableNodeg - Graphics2D context to use.
public float getDescentHeight(Graphics2D g)
getDescentHeight in interface DisplayableNodeg - Graphics2D context to use.
public void setMathBase(MathBase base)
base - the MathBase object to use.public float getMathsizeInPoint()
getMathsizeInPoint in interface JEuclidNodepublic float getFontsizeInPoint()
getFontsizeInPoint in interface JEuclidNodepublic void addListener(ChangeTrackingInterface listener)
addListener in interface ChangeTrackingInterfacelistener - the element to be notified in case of changes (if propagate
is set).public void fireChanged(boolean propagate)
fireChanged in interface ChangeTrackingInterfacepropagate - if set to true, change is also fired on parent and
registered listeners.public void fireChangeForSubTree()
fireChangeForSubTree in interface ChangeTrackingInterfacepublic float getHeight(Graphics2D g)
getHeight in interface DisplayableNodeg - Graphics2D context to use.
public float getPaintedPosX()
getPaintedPosX in interface DisplayableNodepublic float getPaintedPosY()
getPaintedPosY in interface DisplayableNodepublic float getXCenter(Graphics2D g)
getXCenter in interface DisplayableNodeg - X-offset of the horizontal center of the actual content.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||