|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxe.equations.element.MathElement
jaxe.equations.element.MathOperator
public class MathOperator
This class presents a operator, like "(" or "*"
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_STRETCHY
Attribute name of the stretchy property |
static java.lang.String |
ELEMENT
The XML element from this class |
private double |
lspace
|
private double |
rspace
|
private boolean |
stretchy
|
| Fields inherited from class jaxe.equations.element.MathElement |
|---|
FO_URI, SVG_URI, URI |
| Constructor Summary | |
|---|---|
MathOperator()
|
|
| Method Summary | |
|---|---|
int |
getAscentHeight(boolean dynamicParts)
Return the current height of the upper part of this component from the baseline |
int |
getDescentHeight(boolean dynamicParts)
Return the current height of the lower part of this component from the baseline |
int |
getHeight(boolean dynamicParts)
Return the current height of this element |
int |
getWidth(boolean dynamicParts)
Return the current width of this element |
void |
paint(java.awt.Graphics g,
int posX,
int posY)
Paints this element |
private void |
paintCurlyDelimiter(java.awt.Graphics g,
int posX,
int posY,
char upperSymbol,
char middleSymbol,
char connectSymbol,
char lowerSymbol)
Paints a delimitier |
private void |
paintCurlyDelimiterHorizontal(java.awt.Graphics g,
int posX,
int posY,
char upperSymbol,
char middleSymbol,
char connectSymbol,
char lowerSymbol)
Paints a horizontal delimitier |
private void |
paintDelimiter(java.awt.Graphics g,
int posX,
int posY,
char upperSymbol,
char middleSymbol,
char lowerSymbol)
Paints a delimitier |
void |
setLspace(double lspace)
Set left space in em |
void |
setRspace(double rspace)
Set right space in em |
void |
setStretchy(boolean stretchy)
Enables, or disables if the operator should fit his size to the size of the container |
| Methods inherited from class jaxe.equations.element.MathElement |
|---|
addMathElement, addText, debug, getFont, getFontMetrics, getFontSize, getMathBase, getMathElement, getMathElementCount, getMiddleShift, getParent, getSymbolFont, getSymbolFontMetrics, getSymbolGlyphVector, getText, setFontSize, setMathBase, setMathElementAt, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ELEMENT
public static final java.lang.String ATTRIBUTE_STRETCHY
private boolean stretchy
private double lspace
private double rspace
| Constructor Detail |
|---|
public MathOperator()
| Method Detail |
|---|
public void setStretchy(boolean stretchy)
stretchy - True, if the operater should fit this sizepublic void setLspace(double lspace)
public void setRspace(double rspace)
private void paintDelimiter(java.awt.Graphics g,
int posX,
int posY,
char upperSymbol,
char middleSymbol,
char lowerSymbol)
g - The graphics context to use for paintingposX - The first left position for paintingposY - The position of the baselineupperSymbol - The symbol for upper edgemiddleSymbol - The symbol for middle partlowerSymbol - The symbol for lower edge
private void paintCurlyDelimiter(java.awt.Graphics g,
int posX,
int posY,
char upperSymbol,
char middleSymbol,
char connectSymbol,
char lowerSymbol)
g - The graphics context to use for paintingposX - The first left position for paintingposY - The position of the baselineupperSymbol - The symbol for upper edgemiddleSymbol - The symbol for middle partconnectSymbol - The symbol for connecting
the middle part with the edgeslowerSymbol - The symbol for lower edge
private void paintCurlyDelimiterHorizontal(java.awt.Graphics g,
int posX,
int posY,
char upperSymbol,
char middleSymbol,
char connectSymbol,
char lowerSymbol)
g - The graphics context to use for paintingposX - The first left position for paintingposY - The position of the baselineupperSymbol - The symbol for upper edgemiddleSymbol - The symbol for middle partconnectSymbol - The symbol for connecting
the middle part with the edgeslowerSymbol - The symbol for lower edge
public void paint(java.awt.Graphics g,
int posX,
int posY)
paint in class MathElementg - The graphics context to use for paintingposX - The first left position for paintingposY - The position of the baselinepublic int getWidth(boolean dynamicParts)
getWidth in class MathElementdynamicParts - Should be true, if the calculation consider the elements,
which has not fixed sizes
public int getHeight(boolean dynamicParts)
getHeight in class MathElementdynamicParts - Should be true, if the calculation consider the elements,
which has not fixed sizes
public int getAscentHeight(boolean dynamicParts)
getAscentHeight in class MathElementdynamicParts - Should be true, if the calculation consider the elements,
which has not fixed sizes
public int getDescentHeight(boolean dynamicParts)
getDescentHeight in class MathElementdynamicParts - Should be true, if the calculation consider the elements,
which has not fixed sizes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||