Class semper.tinguin.SimpleFont
All Packages Class Hierarchy This Package Previous Next Index
Class semper.tinguin.SimpleFont
java.lang.Object
|
+----semper.tinguin.SimpleFont
- public class SimpleFont
- extends Object
Definition of device indepent font structure. Very simple,
Maybe to simple! With this class it is possible to specify a font with respect to
the size, if it should be bold and/or italic and/or fixed. As long as you one uses
StructDoc to generate documents this class is not necessary.
- Version:
- 0.4
- Author:
- Tobias Himstedt
-
AS_IS
- Constant to specify no change
-
BOLD
- Use bold font.
-
FIXED
- Use fixed font.
-
ITALIC
- Use italic font.
-
NORMAL
- Use normal font.
-
NORMAL_SIZE
- The default size of a font.
-
SimpleFont(int, int, int, int)
- Create a new Font.
-
toString()
- Returns the parameter String of this SimpleFont.
AS_IS
public static int AS_IS
- Constant to specify no change
NORMAL_SIZE
public static int NORMAL_SIZE
- The default size of a font.
BOLD
public static int BOLD
- Use bold font.
ITALIC
public static int ITALIC
- Use italic font.
FIXED
public static int FIXED
- Use fixed font.
NORMAL
public static int NORMAL
- Use normal font.
SimpleFont
public SimpleFont(int size,
int it,
int tt,
int b)
- Create a new Font.
- Parameters:
- size - The size of the font
- it - 1 one italic, any other normal
- tt - 1 one fixed font, any other normal
- b - 1 for bold font, any other normal
toString
public String toString()
- Returns the parameter String of this SimpleFont.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index