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.


Variable Index

 o ALIGN_CENTER
A possible value for paragraph alignment.
 o ALIGN_JUSTIFIED
A possible value for paragraph alignment.
 o ALIGN_LEFT
A possible value for paragraph alignment.
 o ALIGN_RIGHT
A possible value for paragraph alignment.
 o Alignment
 o FirstLineIndent
 o LeftIndent
 o LineSpacing
 o RightIndent
 o SpaceAbove
 o SpaceBelow

Method Index

 o getAlignment()
Fetches the current setting of alignment for the paragraph.
 o getFirstLineIndent()
Fetch the amount to indent the first line of the paragraph, relative to the left indent.
 o getLeftIndent()
Fetch the amount to indent the left side of the paragraph.
 o getLineSpacing()
Fetch the amount of space to place between lines of the paragraph.
 o getRightIndent()
Fetch the amount to indent the right side of the paragraph.
 o getSpaceAbove()
Fetch the amount of space to place above the paragraph.
 o getSpaceBelow()
Fetch the amount of space to place below the paragraph.
 o setAlignment(int)
Set the alignment for the paragraph.
 o setFirstLineIndent(float)
Set the amount of space to indent the first line of the paragraph.
 o setLeftIndent(float)
Set the amount of space to indent the left side of the paragraph.
 o setLineSpacing(float)
Set the amount of space to place between lines of the paragraph.
 o setRightIndent(float)
Set the amount of space to indent the right side of the paragraph.
 o setSpaceAbove(float)
Set the amount of space to place above the paragraph.
 o setSpaceBelow(float)
Set the amount of space to place below the paragraph.

Variables

 o 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.

 o 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.

 o 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.

 o 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.

 o FirstLineIndent
 public static final String FirstLineIndent
 o LeftIndent
 public static final String LeftIndent
 o RightIndent
 public static final String RightIndent
 o LineSpacing
 public static final String LineSpacing
 o SpaceAbove
 public static final String SpaceAbove
 o SpaceBelow
 public static final String SpaceBelow
 o Alignment
 public static final String Alignment

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o getAlignment
 public abstract int getAlignment()
Fetches the current setting of alignment for the paragraph.

 o setAlignment
 public abstract void setAlignment(int a)
Set the alignment for the paragraph. Valid values are:


All Packages  Class Hierarchy  This Package  Previous  Next  Index