public class LatexText extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_BOTTOM |
static int |
ALIGN_CENTER |
static int |
ALIGN_LEFT |
static int |
ALIGN_RIGTH |
static int |
ALIGN_TOP |
static int |
ROTATE_LEFT |
static int |
ROTATE_NONE |
static int |
ROTATE_RIGHT |
Constructor and Description |
---|
LatexText(String text) |
LatexText(String text,
double xc,
double yc) |
Modifier and Type | Method and Description |
---|---|
static LatexText |
createFromDouble(double number,
int order) |
void |
drawString(Graphics2D g2d,
int x,
int y,
int alignX,
int alignY) |
void |
drawString(Graphics2D g2d,
int x,
int y,
int alignX,
int alignY,
int rotate) |
Rectangle2D |
getBounds(FontMetrics fm,
Graphics2D g2d) |
Rectangle2D |
getBounds(Graphics2D g2d) |
Rectangle2D |
getBoundsNumber(Graphics2D g2d) |
int |
getColor() |
AttributedString |
getText() |
String |
getTextString() |
double |
getX() |
double |
getY() |
static void |
main(String[] args) |
void |
setColor(int color) |
void |
setFont(String fontname) |
void |
setFontSize(int size) |
void |
setLocation(double xr,
double yr) |
void |
setText(String text) |
public static int ALIGN_LEFT
public static int ALIGN_CENTER
public static int ALIGN_RIGTH
public static int ALIGN_TOP
public static int ALIGN_BOTTOM
public static int ROTATE_NONE
public static int ROTATE_LEFT
public static int ROTATE_RIGHT
public LatexText(String text, double xc, double yc)
public LatexText(String text)
public final void setText(String text)
public final String getTextString()
public final void setLocation(double xr, double yr)
public int getColor()
public void setColor(int color)
public double getX()
public double getY()
public AttributedString getText()
public final void setFont(String fontname)
public final void setFontSize(int size)
public void drawString(Graphics2D g2d, int x, int y, int alignX, int alignY, int rotate)
public void drawString(Graphics2D g2d, int x, int y, int alignX, int alignY)
public Rectangle2D getBoundsNumber(Graphics2D g2d)
public Rectangle2D getBounds(Graphics2D g2d)
public Rectangle2D getBounds(FontMetrics fm, Graphics2D g2d)
public static LatexText createFromDouble(double number, int order)
public static void main(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics