Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## info.bioinfweb.treegraph.document.format
Class TextFormats

    java.lang.Object
      info.bioinfweb.treegraph.document.format.TextFormats

All Implemented Interfaces:
  ElementFormats, java.lang.Cloneable

Direct Known Subclasses:
  LegendFormats, NodeFormats, ScaleBarFormats, TextLabelFormats

    public class TextFormats

extends java.lang.Object
implements ElementFormats, java.lang.Cloneable

Field Summary
`static int` | `BOLD`
`private java.text.DecimalFormat` | `decimalFormat`
`static java.lang.String` | `DEFAULT_DECIMAL_FORMAT_EXPR`
`private java.lang.String` | `fontName`
`static int` | `ITALIC`
`private java.util.Locale` | `locale`
`static int` | `PLAIN`
`private java.awt.Color` | `textColor`
`private DistanceValue` | `textHeight`
`private int` | `textStyle`
`static int` | `UNDERLINE`

Constructor Summary
`TextFormats()`

Method Summary
`void` | `addTextStyle(int style)`
`void` | `assignTextFormats(TextFormats other)`
`TextFormats` | `clone()`
`java.text.DecimalFormat` | `getDecimalFormat()`
`float` | `getDescent()`
`java.awt.Font` | `getFont(float pixelsPerMillimeter)`
`java.lang.String` | `getFontName()`
`java.util.Locale` | `getLocale()` Return the local object used in the decimal formats.
`java.awt.Color` | `getTextColor()`
`DistanceValue` | `getTextHeight()`
`int` | `getTextStyle()`
`boolean` | `hasTextStyle(int style)`
`void` | `removeTextStyle(int style)`
`void` | `setDecimalFormat(java.text.DecimalFormat decimalFormat, java.util.Locale locale)` Sets a new decimal format object.
`void` | `setFontName(java.lang.String fontName)`
`void` | `setLocale(java.util.Locale locale)` Sets the local object which is used to
`void` | `setTextColor(java.awt.Color textColor)`
`void` | `setTextStyle(int style)`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### PLAIN

    public static final int PLAIN

See Also:
  Constant Field Values

### BOLD

    public static final int BOLD

See Also:
  Constant Field Values

### ITALIC

    public static final int ITALIC

See Also:
  Constant Field Values

### UNDERLINE

    public static final int UNDERLINE

See Also:
  Constant Field Values

### DEFAULT_DECIMAL_FORMAT_EXPR

    public static final java.lang.String DEFAULT_DECIMAL_FORMAT_EXPR

See Also:
  Constant Field Values

### fontName

    private java.lang.String fontName

### textHeight

    private DistanceValue textHeight

### textStyle

    private int textStyle

### textColor

    private java.awt.Color textColor

### locale

    private java.util.Locale locale

### decimalFormat

    private java.text.DecimalFormat decimalFormat

Constructor Detail

### TextFormats

    public TextFormats()

Method Detail

### getFontName

    public java.lang.String getFontName()

### setFontName

    public void setFontName(java.lang.String fontName)

### getTextHeight

    public DistanceValue getTextHeight()

### getDescent

    public float getDescent()

### hasTextStyle

    public boolean hasTextStyle(int style)

### getTextStyle

    public int getTextStyle()

### setTextStyle

    public void setTextStyle(int style)

### addTextStyle

    public void addTextStyle(int style)

### removeTextStyle

    public void removeTextStyle(int style)

### getFont

    public java.awt.Font getFont(float pixelsPerMillimeter)

### getTextColor

    public java.awt.Color getTextColor()

### setTextColor

    public void setTextColor(java.awt.Color textColor)

### getLocale

    public java.util.Locale getLocale()

  Return the local object used in the decimal formats.

  Returns:

### setLocale

    public void setLocale(java.util.Locale locale)

  Sets the local object which is used to

  Parameters:
    `locale` -

### getDecimalFormat

    public java.text.DecimalFormat getDecimalFormat()

### setDecimalFormat

    public void setDecimalFormat(java.text.DecimalFormat decimalFormat,
                                 java.util.Locale locale)

  Sets a new decimal format object. The provided local object will be used to determine the decimal format symbols. (This means that the decimal formats object may be changed after being passed here.)

  Parameters:
    `decimalFormat` - - the new decimal format object
    `locale` - - the locale object which was used to create the new decimal formats
  Throws:
    `java.lang.IllegalArgumentException` - if one of the parameters is `null`

### assignTextFormats

    public void assignTextFormats(TextFormats other)

### clone

    public TextFormats clone()

  Specified by:
    `clone` in interface `ElementFormats`
  Overrides:
    `clone` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD