Package rma.swing
Class HersheyFont
java.lang.Object
rma.swing.HersheyFont
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]
protected int[]
protected int
protected int
protected int
protected char[][][]
static final int
static final int
static final int
static final int
protected String
protected int[]
static final int
static final int
static final int
static final int
static final int
protected static final int
protected static final int
-
Constructor Summary
ConstructorsConstructorDescriptionHersheyFont
(String fontName) HersheyFont
(URL base) HersheyFont
(URL base, String fontName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
calculateCharacterSize
(int j, int xadj) protected void
drawCharacter
(int xp, int yp, int rotpx, int rotpy, float width, float height, boolean rotate, float sinTheta, float cosTheta, boolean Draw, Rectangle r, char[][] Vectors, int numberOfPoints, int minX, int characterSetMinY, boolean Italics, float slant, Graphics g) protected void
drawFontLine
(int x1, int y1, int x2, int y2, int width, Graphics g) void
drawString
(String text, int x, int y, Graphics g) protected int
drawText
(String text, int xc, int yc, float width, float height, int Horizontal_Alignment, int Vertical_Alignment, double theta, boolean Draw, Rectangle r, Graphics g) protected int
fontAdjustment
(String fontname) getName()
void
setHeight
(float height) void
setHorizontalAlignment
(int alignment) void
setItalics
(boolean flag) void
setItalicsSlant
(float slant) void
setLineWidth
(int width) void
setRotation
(double theta) void
setVerticalAlignment
(int alignment) void
setWidth
(float width) stringLimit
(String text, int x, int y, Graphics g) toString()
protected final int
transformX
(int xoffset, int px, int minx, float mag) protected final int
transformY
(int yoffset, int py, int miny, float mag)
-
Field Details
-
HORIZONTAL_CENTER
public static final int HORIZONTAL_CENTER- See Also:
-
HORIZONTAL_LEFT
public static final int HORIZONTAL_LEFT- See Also:
-
HORIZONTAL_RIGHT
public static final int HORIZONTAL_RIGHT- See Also:
-
HORIZONTAL_NORMAL
public static final int HORIZONTAL_NORMAL- See Also:
-
VERTICAL_TOP
public static final int VERTICAL_TOP- See Also:
-
VERTICAL_HALF
public static final int VERTICAL_HALF- See Also:
-
VERTICAL_CAP
public static final int VERTICAL_CAP- See Also:
-
VERTICAL_BOTTOM
public static final int VERTICAL_BOTTOM- See Also:
-
VERTICAL_NORMAL
public static final int VERTICAL_NORMAL- See Also:
-
X
protected static final int X- See Also:
-
Y
protected static final int Y- See Also:
-
name
-
characterVectors
protected char[][][] characterVectors -
numberOfPoints
protected int[] numberOfPoints -
characterMinX
protected int[] characterMinX -
characterMaxX
protected int[] characterMaxX -
characterSetMinY
protected int characterSetMinY -
characterSetMaxY
protected int characterSetMaxY -
charactersInSet
protected int charactersInSet
-
-
Constructor Details
-
HersheyFont
-
HersheyFont
-
HersheyFont
-
-
Method Details
-
calculateCharacterSize
protected void calculateCharacterSize(int j, int xadj) -
drawString
-
stringLimit
-
setRotation
public void setRotation(double theta) -
setWidth
public void setWidth(float width) -
setHeight
public void setHeight(float height) -
setVerticalAlignment
public void setVerticalAlignment(int alignment) -
setHorizontalAlignment
public void setHorizontalAlignment(int alignment) -
setItalics
public void setItalics(boolean flag) -
setItalicsSlant
public void setItalicsSlant(float slant) -
setLineWidth
public void setLineWidth(int width) -
getName
-
toString
-
drawText
-
drawFontLine
-
fontAdjustment
-
drawCharacter
-
transformX
protected final int transformX(int xoffset, int px, int minx, float mag) -
transformY
protected final int transformY(int yoffset, int py, int miny, float mag)
-