org.scilab.forge.jlatexmath
Class RotateBox
java.lang.Object
org.scilab.forge.jlatexmath.Box
org.scilab.forge.jlatexmath.RotateBox
public class RotateBox
- extends Box
A box representing a rotated box.
Field Summary |
protected double |
angle
|
static int |
BBC
|
static int |
BBL
|
static int |
BBR
|
static int |
BC
|
static int |
BL
|
static int |
BR
|
static int |
CC
|
static int |
CL
|
static int |
CR
|
static int |
TC
|
static int |
TL
|
static int |
TR
|
Method Summary |
void |
draw(java.awt.Graphics2D g2,
float x,
float y)
Paints this box at the given coordinates using the given graphics context. |
int |
getLastFontId()
Get the id of the font that will be used the last when this box will be painted. |
static int |
getOrigin(java.lang.String option)
|
Methods inherited from class org.scilab.forge.jlatexmath.Box |
add, add, drawDebug, drawDebug, endDraw, getDepth, getHeight, getShift, getWidth, negWidth, setDepth, setHeight, setShift, setWidth, startDraw |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BL
public static final int BL
- See Also:
- Constant Field Values
BC
public static final int BC
- See Also:
- Constant Field Values
BR
public static final int BR
- See Also:
- Constant Field Values
TL
public static final int TL
- See Also:
- Constant Field Values
TC
public static final int TC
- See Also:
- Constant Field Values
TR
public static final int TR
- See Also:
- Constant Field Values
BBL
public static final int BBL
- See Also:
- Constant Field Values
BBR
public static final int BBR
- See Also:
- Constant Field Values
BBC
public static final int BBC
- See Also:
- Constant Field Values
CL
public static final int CL
- See Also:
- Constant Field Values
CC
public static final int CC
- See Also:
- Constant Field Values
CR
public static final int CR
- See Also:
- Constant Field Values
angle
protected double angle
RotateBox
public RotateBox(Box b,
double angle,
float x,
float y)
RotateBox
public RotateBox(Box b,
double angle,
java.awt.geom.Point2D.Float origin)
RotateBox
public RotateBox(Box b,
double angle,
int option)
getOrigin
public static int getOrigin(java.lang.String option)
draw
public void draw(java.awt.Graphics2D g2,
float x,
float y)
- Description copied from class:
Box
- Paints this box at the given coordinates using the given graphics context.
- Specified by:
draw
in class Box
- Parameters:
g2
- the graphics (2D) context to use for paintingx
- the x-coordinatey
- the y-coordinate
getLastFontId
public int getLastFontId()
- Description copied from class:
Box
- Get the id of the font that will be used the last when this box will be painted.
- Specified by:
getLastFontId
in class Box
- Returns:
- the id of the last font that will be used.