javax.swing.text

Class StyleConstants

Known Direct Subclasses:
StyleConstants.CharacterConstants, StyleConstants.ColorConstants, StyleConstants.FontConstants, StyleConstants.ParagraphConstants

public class StyleConstants
extends Object

Nested Class Summary

static class
StyleConstants.CharacterConstants
static class
StyleConstants.ColorConstants
static class
StyleConstants.FontConstants
static class
StyleConstants.ParagraphConstants

Field Summary

static int
ALIGN_CENTER
static int
ALIGN_JUSTIFIED
static int
ALIGN_LEFT
static int
ALIGN_RIGHT
static Object
Alignment
static Object
Background
static Object
BidiLevel
static Object
Bold
static Object
ComponentAttribute
static String
ComponentElementName
static Object
ComposedTextAttribute
static Object
Family
static Object
FirstLineIndent
static Object
FontFamily
static Object
FontSize
static Object
Foreground
static Object
IconAttribute
static String
IconElementName
static Object
Italic
static Object
LeftIndent
static Object
LineSpacing
static Object
ModelAttribute
static Object
NameAttribute
static Object
Orientation
static Object
ResolveAttribute
static Object
RightIndent
static Object
Size
static Object
SpaceAbove
static Object
SpaceBelow
static Object
StrikeThrough
static Object
Subscript
static Object
Superscript
static Object
TabSet
static Object
Underline

Method Summary

static int
getAlignment(AttributeSet a)
static Color
getBackground(AttributeSet a)
static int
getBidiLevel(AttributeSet a)
static Component
getComponent(AttributeSet a)
static float
getFirstLineIndent(AttributeSet a)
static String
getFontFamily(AttributeSet a)
static int
getFontSize(AttributeSet a)
static Color
getForeground(AttributeSet a)
static Icon
getIcon(AttributeSet a)
static float
getLeftIndent(AttributeSet a)
static float
getLineSpacing(AttributeSet a)
static float
getRightIndent(AttributeSet a)
static float
getSpaceAbove(AttributeSet a)
static float
getSpaceBelow(AttributeSet a)
static TabSet
getTabSet(AttributeSet a)
static boolean
isBold(AttributeSet a)
static boolean
isItalic(AttributeSet a)
static boolean
isStrikeThrough(AttributeSet a)
static boolean
isSubscript(AttributeSet a)
static boolean
isSuperscript(AttributeSet a)
static boolean
isUnderline(AttributeSet a)
static void
setAlignment(MutableAttributeSet a, int align)
static void
setBackground(MutableAttributeSet a, Color fg)
static void
setBidiLevel(MutableAttributeSet a, int lev)
static void
setBold(MutableAttributeSet a, boolean b)
static void
setComponent(MutableAttributeSet a, Component c)
static void
setFirstLineIndent(MutableAttributeSet a, float i)
static void
setFontFamily(MutableAttributeSet a, String fam)
static void
setFontSize(MutableAttributeSet a, int s)
static void
setForeground(MutableAttributeSet a, Color fg)
static void
setIcon(MutableAttributeSet a, Icon c)
static void
setItalic(MutableAttributeSet a, boolean b)
static void
setLeftIndent(MutableAttributeSet a, float i)
static void
setLineSpacing(MutableAttributeSet a, float i)
static void
setRightIndent(MutableAttributeSet a, float i)
static void
setSpaceAbove(MutableAttributeSet a, float i)
static void
setSpaceBelow(MutableAttributeSet a, float i)
static void
setStrikeThrough(MutableAttributeSet a, boolean b)
static void
setSubscript(MutableAttributeSet a, boolean b)
static void
setSuperscript(MutableAttributeSet a, boolean b)
static void
setTabSet(MutableAttributeSet a, TabSet tabs)
static void
setUnderline(MutableAttributeSet a, boolean b)
String
toString()

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

ALIGN_CENTER

public static final int ALIGN_CENTER
Field Value:
1

ALIGN_JUSTIFIED

public static final int ALIGN_JUSTIFIED
Field Value:
3

ALIGN_LEFT

public static final int ALIGN_LEFT
Field Value:
0

ALIGN_RIGHT

public static final int ALIGN_RIGHT
Field Value:
2

Alignment

public static final Object Alignment

Background

public static final Object Background

BidiLevel

public static final Object BidiLevel

Bold

public static final Object Bold

ComponentAttribute

public static final Object ComponentAttribute

ComponentElementName

public static final String ComponentElementName
Field Value:
"component"

ComposedTextAttribute

public static final Object ComposedTextAttribute

Family

public static final Object Family

FirstLineIndent

public static final Object FirstLineIndent

FontFamily

public static final Object FontFamily

FontSize

public static final Object FontSize

Foreground

public static final Object Foreground

IconAttribute

public static final Object IconAttribute

IconElementName

public static final String IconElementName
Field Value:
"icon"

Italic

public static final Object Italic

LeftIndent

public static final Object LeftIndent

LineSpacing

public static final Object LineSpacing

ModelAttribute

public static final Object ModelAttribute

NameAttribute

public static final Object NameAttribute

Orientation

public static final Object Orientation

ResolveAttribute

public static final Object ResolveAttribute

RightIndent

public static final Object RightIndent

Size

public static final Object Size

SpaceAbove

public static final Object SpaceAbove

SpaceBelow

public static final Object SpaceBelow

StrikeThrough

public static final Object StrikeThrough

Subscript

public static final Object Subscript

Superscript

public static final Object Superscript

TabSet

public static final Object TabSet

Underline

public static final Object Underline

Method Details

getAlignment

public static int getAlignment(AttributeSet a)

getBackground

public static Color getBackground(AttributeSet a)

getBidiLevel

public static int getBidiLevel(AttributeSet a)

getComponent

public static Component getComponent(AttributeSet a)

getFirstLineIndent

public static float getFirstLineIndent(AttributeSet a)

getFontFamily

public static String getFontFamily(AttributeSet a)

getFontSize

public static int getFontSize(AttributeSet a)

getForeground

public static Color getForeground(AttributeSet a)

getIcon

public static Icon getIcon(AttributeSet a)

getLeftIndent

public static float getLeftIndent(AttributeSet a)

getLineSpacing

public static float getLineSpacing(AttributeSet a)

getRightIndent

public static float getRightIndent(AttributeSet a)

getSpaceAbove

public static float getSpaceAbove(AttributeSet a)

getSpaceBelow

public static float getSpaceBelow(AttributeSet a)

getTabSet

public static TabSet getTabSet(AttributeSet a)

isBold

public static boolean isBold(AttributeSet a)

isItalic

public static boolean isItalic(AttributeSet a)

isStrikeThrough

public static boolean isStrikeThrough(AttributeSet a)

isSubscript

public static boolean isSubscript(AttributeSet a)

isSuperscript

public static boolean isSuperscript(AttributeSet a)

isUnderline

public static boolean isUnderline(AttributeSet a)

setAlignment

public static void setAlignment(MutableAttributeSet a,
                                int align)

setBackground

public static void setBackground(MutableAttributeSet a,
                                 Color fg)

setBidiLevel

public static void setBidiLevel(MutableAttributeSet a,
                                int lev)

setBold

public static void setBold(MutableAttributeSet a,
                           boolean b)

setComponent

public static void setComponent(MutableAttributeSet a,
                                Component c)

setFirstLineIndent

public static void setFirstLineIndent(MutableAttributeSet a,
                                      float i)

setFontFamily

public static void setFontFamily(MutableAttributeSet a,
                                 String fam)

setFontSize

public static void setFontSize(MutableAttributeSet a,
                               int s)

setForeground

public static void setForeground(MutableAttributeSet a,
                                 Color fg)

setIcon

public static void setIcon(MutableAttributeSet a,
                           Icon c)

setItalic

public static void setItalic(MutableAttributeSet a,
                             boolean b)

setLeftIndent

public static void setLeftIndent(MutableAttributeSet a,
                                 float i)

setLineSpacing

public static void setLineSpacing(MutableAttributeSet a,
                                  float i)

setRightIndent

public static void setRightIndent(MutableAttributeSet a,
                                  float i)

setSpaceAbove

public static void setSpaceAbove(MutableAttributeSet a,
                                 float i)

setSpaceBelow

public static void setSpaceBelow(MutableAttributeSet a,
                                 float i)

setStrikeThrough

public static void setStrikeThrough(MutableAttributeSet a,
                                    boolean b)

setSubscript

public static void setSubscript(MutableAttributeSet a,
                                boolean b)

setSuperscript

public static void setSuperscript(MutableAttributeSet a,
                                  boolean b)

setTabSet

public static void setTabSet(MutableAttributeSet a,
                             TabSet tabs)

setUnderline

public static void setUnderline(MutableAttributeSet a,
                                boolean b)

toString

public String toString()
Overrides:
toString in interface Object

StyleConstants.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.