net.sourceforge.jeuclid.elements
Class AbstractJEuclidElement

java.lang.Object
  extended by org.apache.batik.dom.AbstractNode
      extended by org.apache.batik.dom.AbstractParentNode
          extended by org.apache.batik.dom.AbstractParentChildNode
              extended by org.apache.batik.dom.AbstractElement
                  extended by org.apache.batik.dom.AbstractElementNS
                      extended by org.apache.batik.dom.GenericElementNS
                          extended by net.sourceforge.jeuclid.elements.AbstractJEuclidElement
All Implemented Interfaces:
Serializable, JEuclidElement, JEuclidNode, LayoutableNode, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, Element, ElementTraversal, EventTarget, MathMLElement, Node
Direct Known Subclasses:
AbstractContainer, AbstractInvisibleJEuclidElement, AbstractRoot, AbstractScriptElement, AbstractTokenWithTextLayout, AbstractUnderOver, ForeignElement, Mfrac, Mo, Mspace

public abstract class AbstractJEuclidElement
extends GenericElementNS
implements JEuclidElement

The basic class for all math elements. Every element class inherits from this class. It provides basic functionality for drawing.

Version:
$Revision: 62d8defc665e $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractElement
AbstractElement.ElementTypeInfo, AbstractElement.Entry, AbstractElement.NamedNodeHashMap
 
Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS
 
Field Summary
static String ATTR_CLASS
          Constant for class attribute.
static String ATTR_DEPRECATED_BACKGROUND
          Constant for background attribute.
static String ATTR_DEPRECATED_COLOR
          Constant for color attribute.
static String ATTR_DEPRECATED_FONTFAMILY
          Constant for fontfamily attribute.
static String ATTR_DEPRECATED_FONTSIZE
          Constant for fontsize attribute.
static String ATTR_DEPRECATED_FONTSTYLE
          Constant for fontstyle attribute.
static String ATTR_DEPRECATED_FONTWEIGHT
          Constant for fontweight attribute.
static String ATTR_HREF
          Constant for href attribute.
static String ATTR_ID
          Constant for id attribute.
static String ATTR_MATHBACKGROUND
          The mathbackground attribute.
static String ATTR_MATHCOLOR
          Constant for mathcolor attribute.
static String ATTR_MATHSIZE
          Constant for mathsize attribute.
static String ATTR_MATHVARIANT
          Constant for mathvariant attribute.
static String ATTR_STYLE
          Constant for style attribute.
static String ATTR_XREF
          Constant for xref attribute.
static int TRIVIAL_SPACE_MAX
          largest value for all trivial spaces (= spaces that can be ignored / shortened).
static String URI
          The URI from MathML.
 
Fields inherited from class org.apache.batik.dom.GenericElementNS
nodeName, readonly
 
Fields inherited from class org.apache.batik.dom.AbstractElementNS
namespaceURI
 
Fields inherited from class org.apache.batik.dom.AbstractElement
attributes, typeInfo
 
Fields inherited from class org.apache.batik.dom.AbstractParentChildNode
nextSibling, parentNode, previousSibling
 
Fields inherited from class org.apache.batik.dom.AbstractParentNode
childNodes
 
Fields inherited from class org.apache.batik.dom.AbstractNode
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
AbstractJEuclidElement(String qname, AbstractDocument odoc)
          Default constructor.
AbstractJEuclidElement(String nsUri, String qname, AbstractDocument odoc)
          Constructor to explicitly set the namespace.
 
Method Summary
 void addMathElement(MathMLElement child)
          Add a math element as a child.
 LayoutContext applyLocalAttributesToContext(LayoutContext context)
          Retrieve the LayoutContext valid for the current node.
protected  void changeHook()
          Override this function to get notified whenever the contents of this element have changed.
 boolean dispatchEvent(Event evt)
          
 LayoutContext getChildLayoutContext(int childNum, LayoutContext context)
          get the layout context for the given child.
 List<LayoutableNode> getChildrenToDraw()
          
 List<LayoutableNode> getChildrenToLayout()
          
 String getClassName()
          The class attribute of the element.
 MathMLNodeList getContents()
          Returns the children as a MathML NodeList.
 Font getFont(LayoutContext context)
          Gets the used font.
 FontMetrics getFontMetrics(Graphics2D g, LayoutContext context)
          Gets the font metrics of the used font.
 String getHref()
          The xlink:href attribute of the element.
 String getId()
          The element's identifier.
 int getIndexOfMathElement(JEuclidElement element)
          Gets index of child element.
protected  String getMathAttribute(String attrName)
          retrieve an attribute from the MathML or default name space, returning the default value if the attribute is not set.
protected  String getMathAttribute(String attrName, boolean useDefault)
          retrieve an attribute from the MathML or default name space.
 String getMathbackground()
          Returns value of mathbackground attribute.
 String getMathcolor()
          Returns value of mathcolor attribute.
protected  JEuclidElement getMathElement(int index)
          Gets a child from this element.
 int getMathElementCount()
          Returns the count of children for this element.
 String getMathElementStyle()
          A string identifying the element's style attribute.
 String getMathsize()
          Retrieve the mathsize attribute.
 String getMathvariant()
          Returns value of mathvariant attribute (style of the element).
 MathVariant getMathvariantAsVariant()
          Gets the current mathvariant.
 float getMiddleShift(Graphics2D g, LayoutContext context)
          Returns the distance of the baseline and the middleline.
 MathMLMathElement getOwnerMathElement()
          The MathMLMathElement corresponding to the nearest math element ancestor of this element.
 JEuclidElement getParent()
          Returns parent of this element.
 String getText()
          Returns the text content of this element.
 String getXref()
          The xref attribute of the element.
 boolean hasChildPostscripts(JEuclidElement child, LayoutContext context)
          returns true is the child has postscripts attached to it.
 boolean hasChildPrescripts(JEuclidElement child)
          returns true is the child has prescripts attached to it.
 void layoutStage1(LayoutView view, LayoutInfo info, LayoutStage childMinStage, LayoutContext context)
          context insensitive layout.
 void layoutStage2(LayoutView view, LayoutInfo info, LayoutContext context)
          context sensitive layout.
protected  void layoutStageInvariant(LayoutView view, LayoutInfo info, LayoutStage stage, LayoutContext context)
          Layout for elements which are stage independent.
 void setClassName(String className)
          setter for the className attribute.
protected  void setDefaultMathAttribute(String key, String value)
          Sets default values for math attributes.
 void setFakeParent(JEuclidElement parent)
          Sets the parent of this element.
 void setHref(String href)
          setter for the href attribute.
 void setId(String id)
          setter for the id attribute.
 void setMathbackground(String mathbackground)
          Sets the value of the machbackground attribute.
 void setMathcolor(String mathcolor)
          Sets value of math color attribute.
protected  void setMathElement(int index, MathMLElement newElement)
          Sets a specific child to the newElement, creating other subelements as necessary.
 void setMathElementStyle(String mathElementStyle)
          setter for the mathElementStyle attribute.
 void setMathsize(String mathsize)
          Sets mathsize to a new value.
 void setMathvariant(String mathvariant)
          Sets value of mathvariant attribute (style of the element).
 void setXref(String xref)
          setter for the xref attribute.
 
Methods inherited from class org.apache.batik.dom.GenericElementNS
copyInto, deepCopyInto, deepExport, export, getNodeName, isReadonly, newNode, setNodeName, setReadonly
 
Methods inherited from class org.apache.batik.dom.AbstractElementNS
getNamespaceURI
 
Methods inherited from class org.apache.batik.dom.AbstractElement
attrAdded, attrModified, attrRemoved, checkChildType, createAttributes, fireDOMAttrModifiedEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getFirstElementChild, getIdAttribute, getLastElementChild, getNextElementSibling, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, hasAttributes, nodeAdded, nodeToBeRemoved, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from class org.apache.batik.dom.AbstractParentChildNode
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling
 
Methods inherited from class org.apache.batik.dom.AbstractParentNode
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getTextContent, hasChildNodes, insertBefore, removeChild, replaceChild
 
Methods inherited from class org.apache.batik.dom.AbstractNode
addEventListener, addEventListenerNS, cloneNode, compareDocumentPosition, compareNamedNodeMaps, compareStrings, createDOMException, fireDOMCharacterDataModifiedEvent, fireUserDataHandlers, getBaseURI, getBaseURI, getCascadedXMLBase, getCurrentDocument, getEventSupport, getFeature, getLocalName, getManagerData, getNodeValue, getOwnerDocument, getParentNodeEventTarget, getPrefix, getUserData, getXblBoundElement, getXblChildNodes, getXblDefinitions, getXblFirstChild, getXblFirstElementChild, getXblLastChild, getXblLastElementChild, getXblNextElementSibling, getXblNextSibling, getXblParentNode, getXblPreviousElementSibling, getXblPreviousSibling, getXblScopedChildNodes, getXblShadowTree, hasEventListenerNS, initializeEventSupport, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, removeEventListener, removeEventListenerNS, setManagerData, setNodeValue, setOwnerDocument, setPrefix, setSpecified, setTextContent, setUserData, willTriggerNS
 
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.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
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
 

Field Detail

ATTR_MATHVARIANT

public static final String ATTR_MATHVARIANT
Constant for mathvariant attribute.

See Also:
Constant Field Values

ATTR_MATHCOLOR

public static final String ATTR_MATHCOLOR
Constant for mathcolor attribute.

See Also:
Constant Field Values

ATTR_MATHSIZE

public static final String ATTR_MATHSIZE
Constant for mathsize attribute.

See Also:
Constant Field Values

ATTR_DEPRECATED_FONTFAMILY

public static final String ATTR_DEPRECATED_FONTFAMILY
Constant for fontfamily attribute.

See Also:
Constant Field Values

ATTR_DEPRECATED_FONTSTYLE

public static final String ATTR_DEPRECATED_FONTSTYLE
Constant for fontstyle attribute.

See Also:
Constant Field Values

ATTR_DEPRECATED_FONTWEIGHT

public static final String ATTR_DEPRECATED_FONTWEIGHT
Constant for fontweight attribute.

See Also:
Constant Field Values

ATTR_DEPRECATED_FONTSIZE

public static final String ATTR_DEPRECATED_FONTSIZE
Constant for fontsize attribute.

See Also:
Constant Field Values

ATTR_DEPRECATED_COLOR

public static final String ATTR_DEPRECATED_COLOR
Constant for color attribute.

See Also:
Constant Field Values

ATTR_DEPRECATED_BACKGROUND

public static final String ATTR_DEPRECATED_BACKGROUND
Constant for background attribute.

See Also:
Constant Field Values

ATTR_CLASS

public static final String ATTR_CLASS
Constant for class attribute.

See Also:
Constant Field Values

ATTR_STYLE

public static final String ATTR_STYLE
Constant for style attribute.

See Also:
Constant Field Values

ATTR_ID

public static final String ATTR_ID
Constant for id attribute.

See Also:
Constant Field Values

ATTR_HREF

public static final String ATTR_HREF
Constant for href attribute.

See Also:
Constant Field Values

ATTR_XREF

public static final String ATTR_XREF
Constant for xref attribute.

See Also:
Constant Field Values

ATTR_MATHBACKGROUND

public static final String ATTR_MATHBACKGROUND
The mathbackground attribute.

See Also:
Constant Field Values

TRIVIAL_SPACE_MAX

public static final int TRIVIAL_SPACE_MAX
largest value for all trivial spaces (= spaces that can be ignored / shortened).

See Also:
Constant Field Values

URI

public static final String URI
The URI from MathML.

See Also:
Constant Field Values
Constructor Detail

AbstractJEuclidElement

public AbstractJEuclidElement(String qname,
                              AbstractDocument odoc)
Default constructor. Sets MathML Namespace.

Parameters:
qname - Qualified name.
odoc - Owner Document.

AbstractJEuclidElement

public AbstractJEuclidElement(String nsUri,
                              String qname,
                              AbstractDocument odoc)
Constructor to explicitly set the namespace.

Parameters:
nsUri - Namespace URI.
qname - Qualified name.
odoc - Owner Document.
Method Detail

getFont

public Font getFont(LayoutContext context)
Gets the used font. Everything regardes font, processed by MathBase object.

Parameters:
context - LayoutContext to use.
Returns:
Font Font object.

getMathvariantAsVariant

public MathVariant getMathvariantAsVariant()
Gets the current mathvariant.

Specified by:
getMathvariantAsVariant in interface JEuclidElement
Returns:
the current MathVariant

addMathElement

public final void addMathElement(MathMLElement child)
Add a math element as a child.

Parameters:
child - Math element object.

getMathElement

protected JEuclidElement getMathElement(int index)
Gets a child from this element.

Please note, that unlike the MathML DOM model functions this function uses a 0-based index.

Parameters:
index - Index of the child (0-based).
Returns:
The child MathElement object.

setMathElement

protected void setMathElement(int index,
                              MathMLElement newElement)
Sets a specific child to the newElement, creating other subelements as necessary.

Parameters:
index - the index to set (0=the first child)
newElement - new element to be set as child.

getIndexOfMathElement

public int getIndexOfMathElement(JEuclidElement element)
Gets index of child element.

Specified by:
getIndexOfMathElement in interface JEuclidElement
Parameters:
element - Child element.
Returns:
Index of the element, -1 if element was not found

getMathElementCount

public int getMathElementCount()
Returns the count of children for this element.

Specified by:
getMathElementCount in interface JEuclidElement
Returns:
number of children.

getText

public String getText()
Returns the text content of this element.

Returns:
Text content.

setFakeParent

public void setFakeParent(JEuclidElement parent)
Sets the parent of this element.

Specified by:
setFakeParent in interface JEuclidElement
Parameters:
parent - Parent element

getParent

public JEuclidElement getParent()
Returns parent of this element.

Specified by:
getParent in interface JEuclidElement
Returns:
Parent element.

setMathvariant

public void setMathvariant(String mathvariant)
Sets value of mathvariant attribute (style of the element).

Parameters:
mathvariant - Value of mathvariant.

getMathvariant

public String getMathvariant()
Returns value of mathvariant attribute (style of the element).

Returns:
Value of mathvariant.

getFontMetrics

public FontMetrics getFontMetrics(Graphics2D g,
                                  LayoutContext context)
Gets the font metrics of the used font.

Parameters:
context - LayoutContext to use.
g - Graphics2D context to use.
Returns:
Font metrics.

setMathcolor

public void setMathcolor(String mathcolor)
Sets value of math color attribute.

Parameters:
mathcolor - Color object.

getMathcolor

public String getMathcolor()
Returns value of mathcolor attribute.

Returns:
Color as string.

getMathsize

public String getMathsize()
Retrieve the mathsize attribute.

Returns:
the mathsize attribute.

setMathsize

public void setMathsize(String mathsize)
Sets mathsize to a new value.

Parameters:
mathsize - value of mathsize.

setDefaultMathAttribute

protected void setDefaultMathAttribute(String key,
                                       String value)
Sets default values for math attributes. Default values are returned through getMathAttribute, but not stored in the actual DOM tree. This is necessary to support proper serialization.

Parameters:
key - the attribute to set.
value - value of the attribute.

getMathAttribute

protected String getMathAttribute(String attrName)
retrieve an attribute from the MathML or default name space, returning the default value if the attribute is not set.

Parameters:
attrName - the name of the attribute
Returns:
attribute value or null if not set.
See Also:
getMathAttribute(String, boolean)

getMathAttribute

protected String getMathAttribute(String attrName,
                                  boolean useDefault)
retrieve an attribute from the MathML or default name space.

Parameters:
attrName - the name of the attribute
useDefault - is true, the default value is used if the attribute is not set.
Returns:
attribute value or null if not set.
See Also:
getMathAttribute(String)

getMathbackground

public String getMathbackground()
Returns value of mathbackground attribute.

Returns:
Color as string.

setMathbackground

public void setMathbackground(String mathbackground)
Sets the value of the machbackground attribute.

Parameters:
mathbackground - a string to be used as background color.

getMiddleShift

public float getMiddleShift(Graphics2D g,
                            LayoutContext context)
Returns the distance of the baseline and the middleline.

Parameters:
context - Layout Context to use
g - Graphics2D context to use.
Returns:
Distance baseline - middleline.

getClassName

public String getClassName()
The class attribute of the element. See the discussion elsewhere in this document of the class attribute; see also the HTML definition of this attribute.

Specified by:
getClassName in interface MathMLElement
Returns:
value of the className attribute.

setClassName

public void setClassName(String className)
setter for the className attribute.

Specified by:
setClassName in interface MathMLElement
Parameters:
className - new value for className.
See Also:
MathMLElement.getClassName()

getMathElementStyle

public String getMathElementStyle()
A string identifying the element's style attribute.

Specified by:
getMathElementStyle in interface MathMLElement
Returns:
value of the mathElementStyle attribute.

setMathElementStyle

public void setMathElementStyle(String mathElementStyle)
setter for the mathElementStyle attribute.

Specified by:
setMathElementStyle in interface MathMLElement
Parameters:
mathElementStyle - new value for mathElementStyle.
See Also:
MathMLElement.getMathElementStyle()

getId

public String getId()
The element's identifier. See the discussion elsewhere in this document of the id attribute; see also the HTML definition.

Specified by:
getId in interface MathMLElement
Overrides:
getId in class AbstractElement
Returns:
value of the id attribute.

setId

public void setId(String id)
setter for the id attribute.

Specified by:
setId in interface MathMLElement
Parameters:
id - new value for id.
See Also:
MathMLElement.getId()

getXref

public String getXref()
The xref attribute of the element. See the discussion elsewhere in this document of the xref attribute.

Specified by:
getXref in interface MathMLElement
Returns:
value of the xref attribute.

setXref

public void setXref(String xref)
setter for the xref attribute.

Specified by:
setXref in interface MathMLElement
Parameters:
xref - new value for xref.
See Also:
MathMLElement.getXref()

getHref

public String getHref()
The xlink:href attribute of the element. See the discussion elsewhere in this document of the xlink:href attribute; see also the definition of this attribute in the XLink specification.

Specified by:
getHref in interface MathMLElement
Returns:
value of the href attribute.

setHref

public void setHref(String href)
setter for the href attribute.

Specified by:
setHref in interface MathMLElement
Parameters:
href - new value for href.
See Also:
MathMLElement.getHref()

getOwnerMathElement

public MathMLMathElement getOwnerMathElement()
The MathMLMathElement corresponding to the nearest math element ancestor of this element. Should be null if this element is a top-level math element.

Specified by:
getOwnerMathElement in interface MathMLElement
Returns:
value of the ownerMathElement attribute.

hasChildPrescripts

public boolean hasChildPrescripts(JEuclidElement child)
returns true is the child has prescripts attached to it. In this case, there should be no extra space on the left.

Specified by:
hasChildPrescripts in interface JEuclidElement
Parameters:
child - child to test
Returns:
true if there are attached prescripts

hasChildPostscripts

public boolean hasChildPostscripts(JEuclidElement child,
                                   LayoutContext context)
returns true is the child has postscripts attached to it. In this case, there should be no extra space on the left.

Specified by:
hasChildPostscripts in interface JEuclidElement
Parameters:
child - child to test
context - current layout context.
Returns:
true if there are attached postscripts

getContents

public MathMLNodeList getContents()
Returns the children as a MathML NodeList.

Returns:
a list of children

getChildLayoutContext

public LayoutContext getChildLayoutContext(int childNum,
                                           LayoutContext context)
get the layout context for the given child.

Specified by:
getChildLayoutContext in interface JEuclidNode
Parameters:
childNum - 0-based number of the child to check.
context - external context.
Returns:
layout context to use.

applyLocalAttributesToContext

public LayoutContext applyLocalAttributesToContext(LayoutContext context)
Retrieve the LayoutContext valid for the current node.

Parameters:
context - external context.
Returns:
the current layout context.

getChildrenToLayout

public List<LayoutableNode> getChildrenToLayout()

Specified by:
getChildrenToLayout in interface LayoutableNode
Returns:
List of children to Layout. Normally, all children.

getChildrenToDraw

public List<LayoutableNode> getChildrenToDraw()

Specified by:
getChildrenToDraw in interface LayoutableNode
Returns:
List of children to Draw. Normally, all children.

layoutStageInvariant

protected void layoutStageInvariant(LayoutView view,
                                    LayoutInfo info,
                                    LayoutStage stage,
                                    LayoutContext context)
Layout for elements which are stage independent.

This function will layout an element which is layed out the same no matter what stage it is in. This is the case for most elements.

Notable exceptions are mo and tables.

Parameters:
view - View Object for this layout.
info - An info object which will be filled during layout.
stage - current layout stage.
context - current LayoutContext.

layoutStage1

public void layoutStage1(LayoutView view,
                         LayoutInfo info,
                         LayoutStage childMinStage,
                         LayoutContext context)
context insensitive layout.

Specified by:
layoutStage1 in interface LayoutableNode
Parameters:
view - LayoutView to use.
info - LayoutInfo to manipulate.
childMinStage - minimum stage of children. Either STAGE1 or STAGE2.
context - LayoutContext for this element.

layoutStage2

public void layoutStage2(LayoutView view,
                         LayoutInfo info,
                         LayoutContext context)
context sensitive layout.

Specified by:
layoutStage2 in interface LayoutableNode
Parameters:
view - LayoutView to use.
info - LayoutInfo to manipulate.
context - LayoutContext for this element.

changeHook

protected void changeHook()
Override this function to get notified whenever the contents of this element have changed.


dispatchEvent

public boolean dispatchEvent(Event evt)

Specified by:
dispatchEvent in interface NodeEventTarget
Specified by:
dispatchEvent in interface EventTarget
Overrides:
dispatchEvent in class AbstractNode


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.