All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.jslider.gui.TextEditor

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----org.jfouffa.jslider.gui.HeaderEditor
                                           |
                                           +----org.jfouffa.jslider.gui.TextEditor

public abstract class TextEditor
extends HeaderEditor
Defines a generic HeaderEditor for the font CSS properties.


Constructor index

 o TextEditor(Frame, String)
Constructs an initially invisible TextEditor with a title.

Method index

 o getBackgroundColor()
Gets the background-color property.
 o getColor()
Gets the color property.
 o getFontFamily()
Gets the value of the font-family property.
 o getFontSize()
Returns the value of the font-size property.
 o getFontStyle()
Gets the value of the font-style property.
 o getFontWeight()
Gets the value of the font-weight property.
 o getTextDecoration()
Gets the value of the text-decoration.
 o setBackgroundColor(String)
Sets the background-color property to the specified value.
 o setColor(String)
Sets the foreground color to the specified color.
 o setFontFamily(String)
Sets the font-family property to the specified value.
 o setFontSize(String)
Sets the font-size property to the specified value.
 o setFontStyle(String)
Sets the font-style property to the specified value.
 o setFontWeight(String)
Sets the font-weight property to the specified value.
 o setTextDecoration(String)
Sets the text-decoration property to the specified value.

Constructors

 o TextEditor
 public TextEditor(Frame parent,
                   String title)
Constructs an initially invisible TextEditor with a title.

Parameters:
parent - the parent of this dialog

Methods

 o getFontFamily
 public String getFontFamily()
Gets the value of the font-family property. The font-family is the font set used in your document. The font family returned could be generic names or familiar names.

 o getFontStyle
 public String getFontStyle()
Gets the value of the font-style property. The font-style lets you specify an oblique or italic style within the current font family.

Allowed values : normal | italic | oblique

 o getFontWeight
 public String getFontWeight()
Gets the value of the font-weight property. The font-weight is the weight of the desired font within the current family.

Allowed values : normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900

 o getFontSize
 public String getFontSize()
Returns the value of the font-size property. The font-size property specified the size of the font.

 o getTextDecoration
 public String getTextDecoration()
Gets the value of the text-decoration. The property is used to add underliningm overlining, strike-out or blinking effect on the text.

Allowed values : none | underline | overline | line-through | blink

 o getColor
 public String getColor()
Gets the color property.

 o getBackgroundColor
 public String getBackgroundColor()
Gets the background-color property.

 o setFontWeight
 public void setFontWeight(String fontWeight)
Sets the font-weight property to the specified value.

Parameters:
fontWeight - normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
 o setFontFamily
 public void setFontFamily(String fontFamily)
Sets the font-family property to the specified value.

Parameters:
fontFamily - a set of font family
 o setFontStyle
 public void setFontStyle(String fontStyle)
Sets the font-style property to the specified value.

Parameters:
fontStyle - normal | italic | oblique
 o setFontSize
 public void setFontSize(String fontSize)
Sets the font-size property to the specified value.

Parameters:
fontSize - the font size in points : | | |
 o setTextDecoration
 public void setTextDecoration(String textDecoration)
Sets the text-decoration property to the specified value.

Parameters:
textDecoration - none | underline | overline | line-through | blink
 o setColor
 public void setColor(String color)
Sets the foreground color to the specified color.

Parameters:
color - the foreground color (RBG triplets or keywords)
 o setBackgroundColor
 public void setBackgroundColor(String backgroundColor)
Sets the background-color property to the specified value.

Parameters:
backgroundColor - transparent | <color> (RBG triplets or keywords)