All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.java.swing.text.ParagraphStyle
- public interface ParagraphStyle
A collection of well known or common paragraph attributes.
These attributes form the definition of a paragraph to be rendered.
All sizes are specified in points (such as found in postscript), a
device independant measure.

-
ALIGN_CENTER
- A possible value for paragraph alignment.
-
ALIGN_JUSTIFIED
- A possible value for paragraph alignment.
-
ALIGN_LEFT
- A possible value for paragraph alignment.
-
ALIGN_RIGHT
- A possible value for paragraph alignment.
-
Alignment
-
-
FirstLineIndent
-
-
LeftIndent
-
-
LineSpacing
-
-
RightIndent
-
-
SpaceAbove
-
-
SpaceBelow
-
-
getAlignment()
- Fetches the current setting of alignment for
the paragraph.
-
getFirstLineIndent()
- Fetch the amount to indent the first line
of the paragraph, relative to the left indent.
-
getLeftIndent()
- Fetch the amount to indent the left side
of the paragraph.
-
getLineSpacing()
- Fetch the amount of space to place between lines
of the paragraph.
-
getRightIndent()
- Fetch the amount to indent the right side
of the paragraph.
-
getSpaceAbove()
- Fetch the amount of space to place above the
paragraph.
-
getSpaceBelow()
- Fetch the amount of space to place below the
paragraph.
-
setAlignment(int)
- Set the alignment for the paragraph.
-
setFirstLineIndent(float)
- Set the amount of space to indent the first
line of the paragraph.
-
setLeftIndent(float)
- Set the amount of space to indent the left side
of the paragraph.
-
setLineSpacing(float)
- Set the amount of space to place between lines of
the paragraph.
-
setRightIndent(float)
- Set the amount of space to indent the right side
of the paragraph.
-
setSpaceAbove(float)
- Set the amount of space to place above the paragraph.
-
setSpaceBelow(float)
- Set the amount of space to place below the paragraph.
ALIGN_LEFT
public static final int ALIGN_LEFT
- A possible value for paragraph alignment. This
specifies that the text aligned to the left
indent and extra whitespace should be placed on
the right.
ALIGN_CENTER
public static final int ALIGN_CENTER
- A possible value for paragraph alignment. This
specifies that the text aligned to the center
and extra whitespace should be placed equally on
the left and right.
ALIGN_RIGHT
public static final int ALIGN_RIGHT
- A possible value for paragraph alignment. This
specifies that the text aligned to the right
indent and extra whitespace should be placed on
the left.
ALIGN_JUSTIFIED
public static final int ALIGN_JUSTIFIED
- A possible value for paragraph alignment. This
specifies that extra whitespace should be spread
out through the rows of the paragraph with the
text lined up with the left and right indent
except on the last line which should be aligned
to the left.
FirstLineIndent
public static final String FirstLineIndent
LeftIndent
public static final String LeftIndent
RightIndent
public static final String RightIndent
LineSpacing
public static final String LineSpacing
SpaceAbove
public static final String SpaceAbove
SpaceBelow
public static final String SpaceBelow
Alignment
public static final String Alignment
getFirstLineIndent
public abstract float getFirstLineIndent()
- Fetch the amount to indent the first line
of the paragraph, relative to the left indent.
Defaults to 0 if not specified.
- Returns:
- s The size of the indent, in points.
setFirstLineIndent
public abstract void setFirstLineIndent(float i)
- Set the amount of space to indent the first
line of the paragraph. This value may be negative
to offset in the reverse direction.
- Parameters:
- i - The size of the space, in points.
getLeftIndent
public abstract float getLeftIndent()
- Fetch the amount to indent the left side
of the paragraph. Defaults to 0 if not specified.
- Returns:
- s The size of the indent, in points.
setLeftIndent
public abstract void setLeftIndent(float i)
- Set the amount of space to indent the left side
of the paragraph. This value may be negative
to offset in the reverse direction.
- Parameters:
- i - The size of the space, in points.
getRightIndent
public abstract float getRightIndent()
- Fetch the amount to indent the right side
of the paragraph. Defaults to 0 if not specified.
- Returns:
- s The size of the indent, in points.
setRightIndent
public abstract void setRightIndent(float i)
- Set the amount of space to indent the right side
of the paragraph. This value may be negative
to offset in the reverse direction.
- Parameters:
- i - The size of the space, in points.
getLineSpacing
public abstract float getLineSpacing()
- Fetch the amount of space to place between lines
of the paragraph. Defaults to 0 if not specified.
- Returns:
- s The size of the space, in points.
setLineSpacing
public abstract void setLineSpacing(float i)
- Set the amount of space to place between lines of
the paragraph.
- Parameters:
- sp - The size of the space, in points.
getSpaceAbove
public abstract float getSpaceAbove()
- Fetch the amount of space to place above the
paragraph. Defaults to 0 if not specified.
- Returns:
- s The size of the space, in points.
setSpaceAbove
public abstract void setSpaceAbove(float sp)
- Set the amount of space to place above the paragraph.
- Parameters:
- sp - The size of the space, in points.
getSpaceBelow
public abstract float getSpaceBelow()
- Fetch the amount of space to place below the
paragraph. Defaults to 0 if not specified.
- Returns:
- s The size of the space, in points.
setSpaceBelow
public abstract void setSpaceBelow(float sp)
- Set the amount of space to place below the paragraph.
- Parameters:
- sp - The size of the space, in points.
getAlignment
public abstract int getAlignment()
- Fetches the current setting of alignment for
the paragraph.
setAlignment
public abstract void setAlignment(int a)
- Set the alignment for the paragraph. Valid values
are:
- ALIGN_LEFT
- ALIGN_RIGHT
- ALIGN_CENTER
- ALIGN_JUSTIFED
All Packages Class Hierarchy This Package Previous Next Index