com.tensegrity.graphics.text
Class HtmlTags

java.lang.Object
  extended bycom.tensegrity.graphics.text.HtmlTags

public class HtmlTags
extends java.lang.Object

Utiltity class for creating html tags.

Version:
$Id: HtmlTags.java,v 1.2 2003/11/21 11:37:33 GillesIachelini Exp $
Author:
Gilles Iachelini

Field Summary
static java.lang.String _B
          The following constants define a bunch of available html tags.
static java.lang.String _BLOCKQUOTE
          The following constants define a bunch of available html tags.
static java.lang.String _BODY
          The following constants define a bunch of available html tags.
static java.lang.String _FONT
          The following constants define a bunch of available html tags.
static java.lang.String _HEAD
          The following constants define a bunch of available html tags.
static java.lang.String _HEADER1
          The following constants define a bunch of available html tags.
static java.lang.String _HTML
          The following constants define a bunch of available html tags.
static java.lang.String _I
          The following constants define a bunch of available html tags.
static java.lang.String _P
          The following constants define a bunch of available html tags.
static java.lang.String _TITLE
          The following constants define a bunch of available html tags.
static java.lang.String B
          The following constants define a bunch of available html tags.
static java.lang.String BLOCKQUOTE
          The following constants define a bunch of available html tags.
static java.lang.String BODY
          The following constants define a bunch of available html tags.
static java.lang.String FONT
          The following constants define a bunch of available html tags.
static java.lang.String FONTSIZE
          The following constants define a bunch of available html tags.
static java.lang.String HEAD
          The following constants define a bunch of available html tags.
static java.lang.String HEADER1
          The following constants define a bunch of available html tags.
static java.lang.String HTML
          The following constants define a bunch of available html tags.
static java.lang.String I
          The following constants define a bunch of available html tags.
static java.lang.String P
          The following constants define a bunch of available html tags.
static java.lang.String PALIGN_CENTER
          The following constants define a bunch of available html tags.
static java.lang.String PALIGN_JUSTIFY
          The following constants define a bunch of available html tags.
static java.lang.String PALIGN_LEFT
          The following constants define a bunch of available html tags.
static java.lang.String PALIGN_RIGHT
          The following constants define a bunch of available html tags.
static java.lang.String TITLE
          The following constants define a bunch of available html tags.
 
Method Summary
static boolean compareFormat(FontFormat fontLeft, FontFormat fontRight)
          Method compareFormat compares two FontFormats by their canonical description and returns true if they are equal, otherwise false.
static java.lang.String getFontTag(java.lang.String family, int size)
          Returns a complete font tag based on given family name and size.
static java.lang.String getParagraphTag(java.lang.String alignment)
          Returns the Paragraph tag with the given alignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTML

public static final java.lang.String HTML
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_HTML

public static final java.lang.String _HTML
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

HEAD

public static final java.lang.String HEAD
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_HEAD

public static final java.lang.String _HEAD
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

TITLE

public static final java.lang.String TITLE
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_TITLE

public static final java.lang.String _TITLE
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

BODY

public static final java.lang.String BODY
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_BODY

public static final java.lang.String _BODY
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

P

public static final java.lang.String P
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_P

public static final java.lang.String _P
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

BLOCKQUOTE

public static final java.lang.String BLOCKQUOTE
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_BLOCKQUOTE

public static final java.lang.String _BLOCKQUOTE
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

B

public static final java.lang.String B
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_B

public static final java.lang.String _B
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

I

public static final java.lang.String I
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_I

public static final java.lang.String _I
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

FONT

public static final java.lang.String FONT
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_FONT

public static final java.lang.String _FONT
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

FONTSIZE

public static final java.lang.String FONTSIZE
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

HEADER1

public static final java.lang.String HEADER1
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

_HEADER1

public static final java.lang.String _HEADER1
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

PALIGN_LEFT

public static final java.lang.String PALIGN_LEFT
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

PALIGN_CENTER

public static final java.lang.String PALIGN_CENTER
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

PALIGN_RIGHT

public static final java.lang.String PALIGN_RIGHT
The following constants define a bunch of available html tags.

See Also:
Constant Field Values

PALIGN_JUSTIFY

public static final java.lang.String PALIGN_JUSTIFY
The following constants define a bunch of available html tags.

See Also:
Constant Field Values
Method Detail

getFontTag

public static final java.lang.String getFontTag(java.lang.String family,
                                                int size)
Returns a complete font tag based on given family name and size.

Parameters:
family - the font family as String
size - the size of the font
Returns:
String a Font tag where the family name is set and the size is adopted to the predefined html sizes.

getParagraphTag

public static final java.lang.String getParagraphTag(java.lang.String alignment)
Returns the Paragraph tag with the given alignment.

Parameters:
alignment - the Paragraph alignment as string.
Returns:
the paragraph tag.

compareFormat

public static final boolean compareFormat(FontFormat fontLeft,
                                          FontFormat fontRight)
Method compareFormat compares two FontFormats by their canonical description and returns true if they are equal, otherwise false.

Parameters:
fontLeft - first Format
fontRight - second Format
Returns:
boolean true if the canonical descriptions of both formats are equal otherwise false.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.