|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.batik.dom.AbstractNode org.apache.batik.dom.AbstractParentNode org.apache.batik.dom.AbstractParentChildNode org.apache.batik.dom.AbstractElement org.apache.batik.dom.AbstractElementNS org.apache.batik.dom.GenericElementNS net.sourceforge.jeuclid.elements.AbstractJEuclidElement net.sourceforge.jeuclid.elements.presentation.token.Mo
public final class Mo
This class presents a math operator, like "(" or "*".
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_ACCENT
Attribute for accent. |
static String |
ATTR_FENCE
Attribute name of the fence property. |
static String |
ATTR_FORM
Attribute for form. |
static String |
ATTR_LARGEOP
Attribute name of the largeop property. |
static String |
ATTR_LSPACE
Attribute for lspace. |
static String |
ATTR_MAXSIZE
Attribute for max size. |
static String |
ATTR_MINSIZE
Attribute for min size. |
static String |
ATTR_MOVABLELIMITS
Attribute for movable limits. |
static String |
ATTR_MOVEABLEWRONG
Wrong attribute name for movable limits. |
static String |
ATTR_RSPACE
Attribute for rspace. |
static String |
ATTR_SEPARATOR
Attribute for separator. |
static String |
ATTR_STRETCHY
Attribute name of the stretchy property. |
static String |
ATTR_SYMMETRIC
Attribute name of the symmetric property. |
static String |
ELEMENT
The XML element from this class. |
static float |
LARGEOP_CORRECTOR_BLOCK
Multiplier for increasing size of mo with attribute largop = true. |
static float |
LARGEOP_CORRECTOR_INLINE
Multiplier for increasing size of mo with attribute largop = true. |
static String |
MOEVENT
Event name for operator events. |
static String |
VALUE_STRETCHY_HORIZONTAL
JEuclid extension to stretchy: stretch horizontal only. |
static String |
VALUE_STRETCHY_VERTICAL
JEuclid extension to stretchy: stretch vertical only. |
Fields inherited from class net.sourceforge.jeuclid.elements.AbstractJEuclidElement |
---|
ATTR_CLASS, ATTR_DEPRECATED_BACKGROUND, ATTR_DEPRECATED_COLOR, ATTR_DEPRECATED_FONTFAMILY, ATTR_DEPRECATED_FONTSIZE, ATTR_DEPRECATED_FONTSTYLE, ATTR_DEPRECATED_FONTWEIGHT, ATTR_HREF, ATTR_ID, ATTR_MATHBACKGROUND, ATTR_MATHCOLOR, ATTR_MATHSIZE, ATTR_MATHVARIANT, ATTR_STYLE, ATTR_XREF, TRIVIAL_SPACE_MAX, URI |
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 |
Constructor Summary | |
---|---|
Mo(String qname,
AbstractDocument odoc)
Default constructor. |
Method Summary | |
---|---|
void |
changeHook()
Override this function to get notified whenever the contents of this element have changed. |
String |
getAccent()
The accent attribute (true or false) for the mo element, if specified. |
String |
getExtendedStretchy()
Retrieves the JEuclid specific extension of the stretch attribute. |
String |
getFence()
The fence attribute (true or false) for the mo element, if specified. |
String |
getForm()
The form attribute (prefix, infix or postfix) for the mo element, if specified. |
String |
getLargeop()
The largeop attribute for the mo element, if specified. |
float |
getLargeOpCorrector(LayoutContext now)
|
String |
getLspace()
The lspace attribute (spacing to left) of the mo element, if specified. |
String |
getMaxsize()
Gets value of maxsize property. |
String |
getMinsize()
Gets value of minsize property. |
String |
getMovablelimits()
The movablelimits (true or false) attribute for the mo element, if specified. |
String |
getRspace()
The rspace attribute (spacing to right) of the mo element, if specified. |
String |
getSeparator()
The separator attribute (true or false) for the mo element, if specified. |
String |
getStretchy()
The stretchy attribute (true or false) for the mo element, if specified. |
String |
getSymmetric()
The symmetric attribute (true or false) for the mo element, if specified. |
void |
handleEvent(Event evt)
|
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 Node |
newNode()
|
void |
setAccent(String accent)
setter for the accent attribute. |
void |
setFence(String fence)
setter for the fence attribute. |
void |
setForm(String form)
setter for the form attribute. |
void |
setLargeop(String largeop)
setter for the largeop attribute. |
void |
setLspace(String lspace)
setter for the lspace attribute. |
void |
setMaxsize(String maxsize)
Sets value of maxsize property. |
void |
setMinsize(String minsize)
Sets value of minsize property. |
void |
setMovablelimits(String movablelimits)
setter for the movablelimits attribute. |
void |
setRspace(String rspace)
setter for the rspace attribute. |
void |
setSeparator(String separator)
setter for the separator attribute. |
void |
setStretchy(String stretchy)
setter for the stretchy attribute. |
void |
setSymmetric(String symmetric)
setter for the symmetric attribute. |
Methods inherited from class org.apache.batik.dom.GenericElementNS |
---|
copyInto, deepCopyInto, deepExport, export, getNodeName, isReadonly, setNodeName, setReadonly |
Methods inherited from class org.apache.batik.dom.AbstractElementNS |
---|
getNamespaceURI |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.mathml.MathMLPresentationToken |
---|
getContents, getMathbackground, getMathcolor, getMathsize, getMathvariant, setMathbackground, setMathcolor, setMathsize, setMathvariant |
Methods inherited from interface org.w3c.dom.mathml.MathMLElement |
---|
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXref |
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 |
---|
public static final String ATTR_FORM
public static final String ATTR_SEPARATOR
public static final String ATTR_LSPACE
public static final String ATTR_RSPACE
public static final String ATTR_MINSIZE
public static final String ATTR_MAXSIZE
public static final String ATTR_MOVEABLEWRONG
public static final String ATTR_MOVABLELIMITS
public static final String ATTR_ACCENT
public static final String ELEMENT
public static final float LARGEOP_CORRECTOR_INLINE
public static final float LARGEOP_CORRECTOR_BLOCK
public static final String ATTR_STRETCHY
public static final String VALUE_STRETCHY_HORIZONTAL
public static final String VALUE_STRETCHY_VERTICAL
public static final String ATTR_LARGEOP
public static final String ATTR_SYMMETRIC
public static final String ATTR_FENCE
public static final String MOEVENT
Constructor Detail |
---|
public Mo(String qname, AbstractDocument odoc)
qname
- Qualified name.odoc
- Owner Document.Method Detail |
---|
protected Node newNode()
newNode
in class GenericElementNS
public float getLargeOpCorrector(LayoutContext now)
now
- applied layout context.
public void setMaxsize(String maxsize)
setMaxsize
in interface MathMLOperatorElement
maxsize
- Maxsize value.MathMLOperatorElement.getMaxsize()
public String getMaxsize()
getMaxsize
in interface MathMLOperatorElement
public void setMinsize(String minsize)
setMinsize
in interface MathMLOperatorElement
minsize
- Minsize value.MathMLOperatorElement.getMinsize()
public String getMinsize()
getMinsize
in interface MathMLOperatorElement
public void changeHook()
changeHook
in class AbstractJEuclidElement
public String getLargeop()
getLargeop
in interface MathMLOperatorElement
public String getLspace()
getLspace
in interface MathMLOperatorElement
public String getMovablelimits()
getMovablelimits
in interface MathMLOperatorElement
public String getRspace()
getRspace
in interface MathMLOperatorElement
public void setAccent(String accent)
setAccent
in interface MathMLOperatorElement
accent
- new value for accent.MathMLOperatorElement.getAccent()
public void setFence(String fence)
setFence
in interface MathMLOperatorElement
fence
- new value for fence.MathMLOperatorElement.getFence()
public void setForm(String form)
setForm
in interface MathMLOperatorElement
form
- new value for form.MathMLOperatorElement.getForm()
public void setLargeop(String largeop)
setLargeop
in interface MathMLOperatorElement
largeop
- new value for largeop.MathMLOperatorElement.getLargeop()
public void setLspace(String lspace)
setLspace
in interface MathMLOperatorElement
lspace
- new value for lspace.MathMLOperatorElement.getLspace()
public void setMovablelimits(String movablelimits)
setMovablelimits
in interface MathMLOperatorElement
movablelimits
- new value for movablelimits.MathMLOperatorElement.getMovablelimits()
public void setRspace(String rspace)
setRspace
in interface MathMLOperatorElement
rspace
- new value for rspace.MathMLOperatorElement.getRspace()
public void setSeparator(String separator)
setSeparator
in interface MathMLOperatorElement
separator
- new value for separator.MathMLOperatorElement.getSeparator()
public void setStretchy(String stretchy)
setStretchy
in interface MathMLOperatorElement
stretchy
- new value for stretchy.MathMLOperatorElement.getStretchy()
public void setSymmetric(String symmetric)
setSymmetric
in interface MathMLOperatorElement
symmetric
- new value for symmetric.MathMLOperatorElement.getSymmetric()
public String getFence()
getFence
in interface MathMLOperatorElement
public String getForm()
getForm
in interface MathMLOperatorElement
public String getSeparator()
getSeparator
in interface MathMLOperatorElement
public String getExtendedStretchy()
Constants.TRUE
, Constants.FALSE
,
VALUE_STRETCHY_HORIZONTAL
, VALUE_STRETCHY_VERTICAL
, or
null if no stretchy attribute is set.
public String getStretchy()
getStretchy
in interface MathMLOperatorElement
public String getAccent()
getAccent
in interface MathMLOperatorElement
public String getSymmetric()
getSymmetric
in interface MathMLOperatorElement
public void layoutStage1(LayoutView view, LayoutInfo info, LayoutStage childMinStage, LayoutContext context)
layoutStage1
in interface LayoutableNode
layoutStage1
in class AbstractJEuclidElement
view
- LayoutView to use.info
- LayoutInfo to manipulate.childMinStage
- minimum stage of children. Either STAGE1 or STAGE2.context
- LayoutContext for this element.public void layoutStage2(LayoutView view, LayoutInfo info, LayoutContext context)
layoutStage2
in interface LayoutableNode
layoutStage2
in class AbstractJEuclidElement
view
- LayoutView to use.info
- LayoutInfo to manipulate.context
- LayoutContext for this element.public void handleEvent(Event evt)
handleEvent
in interface EventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |