public class RTextLine extends TextLine
Constructor and Description |
---|
RTextLine()
Instantiate the class
|
RTextLine(Component c)
Instantiate the class.
|
RTextLine(Font f,
Color c,
int j)
Instantiate the class
|
RTextLine(Font f,
Color c,
int j,
int a)
Instantiate the class
|
RTextLine(String s)
Instantiate the class.
|
RTextLine(String s,
Color c)
Instantiate the class
|
RTextLine(String s,
Font f)
Instantiate the class
|
RTextLine(String s,
Font f,
Color c,
int j)
Instantiate the class
|
Modifier and Type | Method and Description |
---|---|
void |
copyState(RTextLine t)
Copy the state of the parsed Textline into the existing
object.
|
void |
draw(Component comp,
org.freehep.graphics2d.VectorGraphics g,
int x,
int y)
Parse the text, rotate it then draw it to the screen.
|
void |
draw(org.freehep.graphics2d.VectorGraphics g,
int x,
int y)
Parse the text then draw it.
|
void |
draw(org.freehep.graphics2d.VectorGraphics g,
int x,
int y,
int j)
Parse the text then draw it.
|
int |
getBottomEdge(org.freehep.graphics2d.VectorGraphics g)
Return the bottom edge of the rotated text.
|
int |
getBottomEdge(org.freehep.graphics2d.VectorGraphics g,
int j)
Return the bottom edge of the rotated text.
|
Component |
getComponent() |
int |
getLeftEdge(org.freehep.graphics2d.VectorGraphics g)
Return the left edge of the rotated text.
|
int |
getLeftEdge(org.freehep.graphics2d.VectorGraphics g,
int j)
Return the left edge of the rotated text.
|
int |
getRHeight(org.freehep.graphics2d.VectorGraphics g)
The height of the text after it has been rotated.
|
int |
getRightEdge(org.freehep.graphics2d.VectorGraphics g)
Return the right edge of the rotated text.
|
int |
getRightEdge(org.freehep.graphics2d.VectorGraphics g,
int j)
Return the right edge of the rotated text.
|
int |
getRotation() |
int |
getRWidth(org.freehep.graphics2d.VectorGraphics g)
The width of the text after it has been rotated.
|
int |
getTopEdge(org.freehep.graphics2d.VectorGraphics g)
Return the top edge of the rotated text.
|
int |
getTopEdge(org.freehep.graphics2d.VectorGraphics g,
int j)
Return the top edge of the rotated text.
|
void |
setDrawingComponent(Component c)
Set the Component the text will be drawn into.
|
void |
setRotation(int angle)
Set the text rotation angle.
|
void |
setRotation(int angle,
Component c)
Set the Rotation and the Component that will be drawn into
|
charWidth, copyState, copyState, draw, draw, getAscent, getBackground, getColor, getDescent, getFM, getFont, getFontName, getFontSize, getFontStyle, getHeight, getJustification, getLeading, getMaxAscent, getMaxDescent, getScriptFont, getText, getWidth, isNull, parseDouble, parseDouble, parseDouble, parseText, setBackground, setColor, setFont, setFontName, setFontSize, setFontStyle, setJustification, setText
public RTextLine()
public RTextLine(String s)
s
- String to parse.public RTextLine(Component c)
c
- the Component the text will be drawn into.public RTextLine(String s, Font f)
s
- String to parse.f
- Font to use.public RTextLine(String s, Font f, Color c, int j)
s
- String to parse.f
- Font to use.c
- Color to usej
- Justificationpublic RTextLine(String s, Color c)
s
- String to parse.c
- Color to usepublic RTextLine(Font f, Color c, int j, int a)
f
- Font to use.c
- Color to usej
- Justificationa
- Rotation angle in degreespublic void copyState(RTextLine t)
t
- The TextLine to get the state information from.public void setRotation(int angle)
angle
- The angle to rotate the textpublic void setDrawingComponent(Component c)
c
- The drawing componentpublic void setRotation(int angle, Component c)
angle
- The angle to rotate the textc
- The drawing componentpublic int getRotation()
public Component getComponent()
public int getRWidth(org.freehep.graphics2d.VectorGraphics g)
g
- Graphics context.public int getRHeight(org.freehep.graphics2d.VectorGraphics g)
g
- Graphics context.public int getLeftEdge(org.freehep.graphics2d.VectorGraphics g)
g
- Graphics context.public int getRightEdge(org.freehep.graphics2d.VectorGraphics g)
g
- Graphics context.public int getTopEdge(org.freehep.graphics2d.VectorGraphics g)
g
- Graphics context.public int getBottomEdge(org.freehep.graphics2d.VectorGraphics g)
g
- Graphics context.public int getLeftEdge(org.freehep.graphics2d.VectorGraphics g, int j)
g
- Graphics context.j
- Text justificationpublic int getRightEdge(org.freehep.graphics2d.VectorGraphics g, int j)
g
- Graphics context.j
- Text justificationpublic int getTopEdge(org.freehep.graphics2d.VectorGraphics g, int j)
g
- Graphics context.j
- Text justificationpublic int getBottomEdge(org.freehep.graphics2d.VectorGraphics g, int j)
g
- Graphics context.j
- Text justificationpublic void draw(org.freehep.graphics2d.VectorGraphics g, int x, int y)
g
- Graphics contextx
- pixel position of the texty
- pixel position of the textpublic void draw(org.freehep.graphics2d.VectorGraphics g, int x, int y, int j)
g
- Graphics contextx
- pixel position of the texty
- pixel position of the textj
- justification of the textpublic void draw(Component comp, org.freehep.graphics2d.VectorGraphics g, int x, int y)
g
- Graphics contextx
- pixel position of the texty
- pixel position of the textJas4pp 1.5 © Java Analysis Studio for Particle Physics