Logo Search packages:      
Sourcecode: jeuclid version File versions

net::sourceforge::jeuclid::elements::AbstractJEuclidElement Class Reference

Inheritance diagram for net::sourceforge::jeuclid::elements::AbstractJEuclidElement:

net::sourceforge::jeuclid::elements::JEuclidElement org::w3c::dom::mathml::MathMLElement net::sourceforge::jeuclid::elements::JEuclidNode net::sourceforge::jeuclid::layout::LayoutableNode net::sourceforge::jeuclid::elements::JEuclidNode net::sourceforge::jeuclid::elements::AbstractInvisibleJEuclidElement net::sourceforge::jeuclid::elements::presentation::AbstractContainer net::sourceforge::jeuclid::elements::presentation::general::AbstractRoot net::sourceforge::jeuclid::elements::presentation::general::Mfrac net::sourceforge::jeuclid::elements::presentation::script::AbstractScriptElement net::sourceforge::jeuclid::elements::presentation::script::AbstractUnderOver net::sourceforge::jeuclid::elements::presentation::token::AbstractTokenWithTextLayout net::sourceforge::jeuclid::elements::presentation::token::Mo net::sourceforge::jeuclid::elements::presentation::token::Mspace

List of all members.


Detailed Description

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

Version:
Revision
807

Definition at line 60 of file AbstractJEuclidElement.java.


Public Member Functions

final void addMathElement (final MathMLElement child)
boolean dispatchEvent (final Event evt)
LayoutContext getChildLayoutContext (final int childNum, final LayoutContext context)
List< LayoutableNodegetChildrenToDraw ()
List< LayoutableNodegetChildrenToLayout ()
String getClassName ()
MathMLNodeList getContents ()
Font getFont (final LayoutContext context)
FontMetrics getFontMetrics (final Graphics2D g, final LayoutContext context)
String getHref ()
String getId ()
int getIndexOfMathElement (final JEuclidElement element)
String getMathbackground ()
String getMathcolor ()
int getMathElementCount ()
String getMathElementStyle ()
String getMathsize ()
String getMathvariant ()
MathVariant getMathvariantAsVariant ()
float getMiddleShift (final Graphics2D g, final LayoutContext context)
MathMLMathElement getOwnerMathElement ()
JEuclidElement getParent ()
String getText ()
String getXref ()
boolean hasChildPostscripts (final JEuclidElement child, LayoutContext context)
boolean hasChildPostscripts (final JEuclidElement child, final LayoutContext context)
boolean hasChildPrescripts (final JEuclidElement child)
void layoutStage1 (LayoutView view, LayoutInfo info, LayoutStage childMinStage, LayoutContext context)
void layoutStage1 (final LayoutView view, final LayoutInfo info, final LayoutStage childMinStage, final LayoutContext context)
void layoutStage2 (LayoutView view, LayoutInfo info, LayoutContext context)
void layoutStage2 (final LayoutView view, final LayoutInfo info, final LayoutContext context)
void setClassName (String className)
void setClassName (final String className)
void setFakeParent (final JEuclidElement parent)
void setHref (String href)
void setHref (final String href)
void setId (String id)
void setId (final String id)
void setMathbackground (final String mathbackground)
void setMathcolor (final String mathcolor)
void setMathElementStyle (String mathElementStyle)
void setMathElementStyle (final String mathElementStyle)
void setMathsize (final String mathsize)
void setMathvariant (final String mathvariant)
void setXref (String xref)
void setXref (final String xref)

Static Public Attributes

static final String ATTR_CLASS = "class"
static final String ATTR_DEPRECATED_BACKGROUND = "background"
static final String ATTR_DEPRECATED_COLOR = "color"
static final String ATTR_DEPRECATED_FONTFAMILY = "fontfamily"
static final String ATTR_DEPRECATED_FONTSIZE = "fontsize"
static final String ATTR_DEPRECATED_FONTSTYLE = "fontstyle"
static final String ATTR_DEPRECATED_FONTWEIGHT = "fontweight"
static final String ATTR_HREF = "xlink:href"
static final String ATTR_ID = "id"
static final String ATTR_MATHBACKGROUND = "mathbackground"
static final String ATTR_MATHCOLOR = "mathcolor"
static final String ATTR_MATHSIZE = "mathsize"
static final String ATTR_MATHVARIANT = "mathvariant"
static final String ATTR_STYLE = "style"
static final String ATTR_XREF = "xref"
static final int TRIVIAL_SPACE_MAX = 0x20
static final String URI = "http://www.w3.org/1998/Math/MathML"

Protected Member Functions

LayoutContext applyLocalAttributesToContext (final LayoutContext context)
void changeHook ()
String getMathAttribute (final String attrName, final boolean useDefault)
String getMathAttribute (final String attrName)
JEuclidElement getMathElement (final int index)
void layoutStageInvariant (final LayoutView view, final LayoutInfo info, final LayoutStage stage, final LayoutContext context)
void setDefaultMathAttribute (final String key, final String value)
void setMathElement (final int index, final MathMLElement newElement)

Static Package Functions

 [static initializer]

Private Member Functions

LayoutContext applyStyleAttributes (final LayoutContext applyTo)
JEuclidNode getParentAsJEuclidNode ()

Private Attributes

final Map< String, String > defaultMathAttributes = new HashMap<String, String>()
JEuclidElement fakeParent

Static Private Attributes

static final Set< String > DEPRECATED_ATTRIBUTES = new HashSet<String>()
static final float MIDDLE_SHIFT = 0.38f

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index