Ontimize 5.2072EN

com.ontimize.printing
Class TextAttributes

java.lang.Object
  extended bycom.ontimize.printing.TextAttributes

public class TextAttributes
extends java.lang.Object

Class that represents possible attributes in text (font type, font style and font size).

Author:
Imatia Innovation

Field Summary
static java.lang.String ALGERIAN
           
static java.lang.String ARIAL
           
static int BOLD
           
static int BOLD_ITALICS
           
static int BOLD_ITALICS_UNDERLINED
           
static int BOLD_UNDERLINED
           
static java.lang.String COURIER
           
protected  java.lang.String endStyleTag
           
static int EXTRA_LARGE
           
protected  java.lang.String font
           
static int HUGE
           
static int ITALICS
           
static int ITALICS_UNDERLINED
           
static int LARGE
           
static java.lang.String MS_SERIF
           
static int NORMAL
           
static int REGULAR
           
protected  int size
           
static int SMALL
           
protected  java.lang.String startStyleTag
           
protected  int style
           
static int SUBRAYADO
           
static java.lang.String SYMBOL
           
static java.lang.String SYSTEM
           
static java.lang.String TIMES_NEW_ROMAN
           
static int VERY_LARGE
           
static int VERY_SMALL
           
static java.lang.String WINDSORT
           
 
Constructor Summary
TextAttributes()
          Empty constructor.
TextAttributes(java.lang.String fonttype, int fontsize, int fontstyle)
          Builds an object TextAttributes with specific values for attributes.
 
Method Summary
static TextAttributes getDefaultAttributes()
          Creates and gets the default attributes: font type: COURIER; font-size: SMALL and font-size: NORMAL.
 java.lang.String getEndTag()
          Gets the end tag (...
 java.lang.String getStartTag()
          Gets the start tag ().
 void setFontSize(int fontsize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALGERIAN

public static final java.lang.String ALGERIAN
See Also:
Constant Field Values

ARIAL

public static final java.lang.String ARIAL
See Also:
Constant Field Values

TIMES_NEW_ROMAN

public static final java.lang.String TIMES_NEW_ROMAN
See Also:
Constant Field Values

COURIER

public static final java.lang.String COURIER
See Also:
Constant Field Values

MS_SERIF

public static final java.lang.String MS_SERIF
See Also:
Constant Field Values

SYMBOL

public static final java.lang.String SYMBOL
See Also:
Constant Field Values

SYSTEM

public static final java.lang.String SYSTEM
See Also:
Constant Field Values

WINDSORT

public static final java.lang.String WINDSORT
See Also:
Constant Field Values

BOLD

public static final int BOLD
See Also:
Constant Field Values

ITALICS

public static final int ITALICS
See Also:
Constant Field Values

SUBRAYADO

public static final int SUBRAYADO
See Also:
Constant Field Values

BOLD_ITALICS

public static final int BOLD_ITALICS
See Also:
Constant Field Values

BOLD_UNDERLINED

public static final int BOLD_UNDERLINED
See Also:
Constant Field Values

ITALICS_UNDERLINED

public static final int ITALICS_UNDERLINED
See Also:
Constant Field Values

BOLD_ITALICS_UNDERLINED

public static final int BOLD_ITALICS_UNDERLINED
See Also:
Constant Field Values

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

VERY_SMALL

public static final int VERY_SMALL
See Also:
Constant Field Values

SMALL

public static final int SMALL
See Also:
Constant Field Values

REGULAR

public static final int REGULAR
See Also:
Constant Field Values

LARGE

public static final int LARGE
See Also:
Constant Field Values

VERY_LARGE

public static final int VERY_LARGE
See Also:
Constant Field Values

EXTRA_LARGE

public static final int EXTRA_LARGE
See Also:
Constant Field Values

HUGE

public static final int HUGE
See Also:
Constant Field Values

font

protected java.lang.String font

size

protected int size

style

protected int style

startStyleTag

protected java.lang.String startStyleTag

endStyleTag

protected java.lang.String endStyleTag
Constructor Detail

TextAttributes

public TextAttributes()
Empty constructor.


TextAttributes

public TextAttributes(java.lang.String fonttype,
                      int fontsize,
                      int fontstyle)
Builds an object TextAttributes with specific values for attributes.

Parameters:
fonttype - The font type
fontsize - The font size
fontstyle - The font style
Method Detail

getDefaultAttributes

public static TextAttributes getDefaultAttributes()
Creates and gets the default attributes: font type: COURIER; font-size: SMALL and font-size: NORMAL.

Returns:
the text attributes

getStartTag

public java.lang.String getStartTag()
Gets the start tag ().

Returns:
the start tag

getEndTag

public java.lang.String getEndTag()
Gets the end tag (...).

Returns:

setFontSize

public void setFontSize(int fontsize)

Ontimize