public class FrameFormat
extends java.lang.Object
This object is always created. If a paragraph is a frame, then all properties will contain respective values, otherwise all properties are set to their defaults.
Use isFrame() to check whether paragraph is a frame.
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight()
Gets the height of the specified frame.
|
int |
getHeightRule()
Gets the rule for determining the height of the specified frame.
|
int |
getHorizontalAlignment()
Gets horizontal alignment of the specified frame.
|
double |
getHorizontalDistanceFromText()
Gets horizontal distance between a frame and the surrounding text, in points.
|
double |
getHorizontalPosition()
Gets horizontal distance between the edge of the frame and the item specified by the
getRelativeHorizontalPosition() property. |
int |
getRelativeHorizontalPosition()
Gets the relative horizontal position of a frame.
|
int |
getRelativeVerticalPosition()
Gets the relative vertical position of a frame.
|
int |
getVerticalAlignment()
Gets vertical alignment of the specified frame.
|
double |
getVerticalDistanceFromText()
Specifies vertical distance (in points) between a frame and the surrounding text.
|
double |
getVerticalPosition()
Gets vertical distance between the edge of the frame and the item specified by the
getRelativeVerticalPosition() property. |
double |
getWidth()
Gets the width of the specified frame, in points.
|
boolean |
isFrame()
Returns true if the paragraph is a frame.
|
public int getHeightRule()
HeightRule constants.public double getHeight()
public double getHorizontalDistanceFromText()
public double getHorizontalPosition()
getRelativeHorizontalPosition() property.getRelativeHorizontalPosition() property.public int getRelativeHorizontalPosition()
RelativeHorizontalPosition constants.public int getRelativeVerticalPosition()
RelativeVerticalPosition constants.public double getVerticalDistanceFromText()
double value.public double getVerticalPosition()
getRelativeVerticalPosition() property.getRelativeVerticalPosition() property.public double getWidth()
public int getVerticalAlignment()
VerticalAlignment constants.public int getHorizontalAlignment()
HorizontalAlignment constants.public boolean isFrame()