Logo Search packages:      
Sourcecode: jeuclid version File versions

net::sourceforge::jeuclid::elements::presentation::general::Mfrac Class Reference

Inheritance diagram for net::sourceforge::jeuclid::elements::presentation::general::Mfrac:

net::sourceforge::jeuclid::elements::AbstractJEuclidElement org::w3c::dom::mathml::MathMLFractionElement net::sourceforge::jeuclid::elements::JEuclidElement org::w3c::dom::mathml::MathMLPresentationElement org::w3c::dom::mathml::MathMLElement net::sourceforge::jeuclid::elements::JEuclidNode net::sourceforge::jeuclid::layout::LayoutableNode org::w3c::dom::mathml::MathMLElement net::sourceforge::jeuclid::elements::JEuclidNode

List of all members.

Detailed Description

This math element presents a mathematical fraction.


Definition at line 50 of file Mfrac.java.

Public Member Functions

final void addMathElement (final MathMLElement child)
boolean dispatchEvent (final Event evt)
String getBevelled ()
LayoutContext getChildLayoutContext (final int childNum, final LayoutContext context)
List< LayoutableNodegetChildrenToDraw ()
List< LayoutableNodegetChildrenToLayout ()
String getClassName ()
MathMLNodeList getContents ()
String getDenomalign ()
MathMLElement getDenominator ()
Font getFont (final LayoutContext context)
FontMetrics getFontMetrics (final Graphics2D g, final LayoutContext context)
String getHref ()
String getId ()
int getIndexOfMathElement (final JEuclidElement element)
String getLinethickness ()
float getLinethickness (final Graphics2D g, final LayoutContext context)
String getMathbackground ()
String getMathcolor ()
int getMathElementCount ()
String getMathElementStyle ()
String getMathsize ()
String getMathvariant ()
MathVariant getMathvariantAsVariant ()
float getMiddleShift (final Graphics2D g, final LayoutContext context)
String getNumalign ()
MathMLElement getNumerator ()
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)
 Mfrac ()
void setBevelled (String bevelled)
void setBevelled (final String bevelled)
void setClassName (String className)
void setClassName (final String className)
void setDenomalign (String denomalign)
void setDenomalign (final String denomalign)
void setDenominator (MathMLElement denominator)
void setDenominator (final MathMLElement denominator)
void setFakeParent (final JEuclidElement parent)
void setHref (String href)
void setHref (final String href)
void setId (String id)
void setId (final String id)
void setLinethickness (String linethickness)
void setLinethickness (final String newLinethickness)
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 setNumalign (String numalign)
void setNumalign (final String numalign)
void setNumerator (MathMLElement numerator)
void setNumerator (final MathMLElement numerator)
void setXref (String xref)
void setXref (final String xref)

Static Public Attributes

static final String ATTR_BEVELED_WRONG = "beveled"
static final String ATTR_BEVELLED = "bevelled"
static final String ATTR_CLASS = "class"
static final String ATTR_DENOMALIGN = "denomalign"
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_LINETHICKNESS = "linethickness"
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_NUMALIGN = "numalign"
static final String ATTR_STYLE = "style"
static final String ATTR_XREF = "xref"
static final String ELEMENT = "mfrac"
static final float FRAC_TILT_ANGLE = 0.577f
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)
Node newNode ()
void setDefaultMathAttribute (final String key, final String value)
void setMathElement (final int index, final MathMLElement newElement)

Static Package Functions

 [static initializer]

Private Member Functions

void layoutBeveled (final LayoutInfo info, final LayoutStage stage, final float middleShift, final float linethickness, final float extraSpace, final LayoutInfo numerator, final LayoutInfo denominator, final LayoutContext context)
void layoutStacked (final LayoutInfo info, final LayoutStage stage, final float middleShift, final float linethickness, final float extraSpace, final LayoutInfo numerator, final LayoutInfo denominator, final LayoutContext context)

Static Private Attributes

static final String EXTRA_SPACE_AROUND = "0.1em"
static final float NOLINE_THRESHHOLD = 0.001f
static final long serialVersionUID = 1L

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

Generated by  Doxygen 1.6.0   Back to index