|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QTextFormat
com.trolltech.qt.gui.QTextFrameFormat
public class QTextFrameFormat
The QTextFrameFormat class provides formatting information for frames in a QTextDocument
. A text frame groups together one or more blocks of text, providing a layer of structure larger than the paragraph. The format of a frame specifies how it is rendered and positioned on the screen. It does not directly specify the behavior of the text formatting within, but provides constraints on the layout of its children.
The frame format defines the width()
and height()
of the frame on the screen. Each frame can have a border()
that surrounds its contents with a rectangular box. The border is surrounded by a margin()
around the frame, and the contents of the frame are kept separate from the border by the frame's padding()
. This scheme is similar to the box model used by Cascading Style Sheets for HTML pages.
position()
of a frame is set using setPosition()
and determines how it is located relative to the surrounding text. The validity of a QTextFrameFormat object can be determined with the isValid() function.
QTextFrame
, and QTextBlockFormat
.
Nested Class Summary | |
---|---|
static class |
QTextFrameFormat.BorderStyle
|
static class |
QTextFrameFormat.Position
|
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QTextFormat |
---|
QTextFormat.FormatType, QTextFormat.ObjectTypes, QTextFormat.PageBreakFlag, QTextFormat.PageBreakFlags, QTextFormat.Property |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QTextFrameFormat()
Constructs a text frame format object with the default properties. |
Method Summary | |
---|---|
double |
border()
Returns the width of the border in pixels. |
QBrush |
borderBrush()
Returns the brush used for the frame's border. |
QTextFrameFormat.BorderStyle |
borderStyle()
Returns the style of the frame's border. |
double |
bottomMargin()
Returns the width of the frame's bottom margin in pixels. |
QTextFrameFormat |
clone()
This method is reimplemented for internal reasons |
QTextLength |
height()
Returns the height of the frame's border rectangle. |
double |
leftMargin()
Returns the width of the frame's left margin in pixels. |
double |
margin()
Returns the width of the frame's external margin in pixels. |
double |
padding()
Returns the width of the frame's internal padding in pixels. |
QTextFormat.PageBreakFlags |
pageBreakPolicy()
Returns the currently set page break policy for the frame/table. |
QTextFrameFormat.Position |
position()
Returns the positioning policy for frames with this frame format. |
double |
rightMargin()
Returns the width of the frame's right margin in pixels. |
void |
setBorder(double border)
Sets the width (in pixels) of the frame's border. |
void |
setBorderBrush(QBrush brush)
Sets the brush used for the frame's border. |
void |
setBorderStyle(QTextFrameFormat.BorderStyle style)
Sets the style of the frame's border. |
void |
setBottomMargin(double margin)
Sets the frame's bottom margin in pixels. |
void |
setHeight(double height)
Sets the frame's height. |
void |
setHeight(QTextLength height)
Sets the frame's height. |
void |
setLeftMargin(double margin)
Sets the frame's left margin in pixels. |
void |
setMargin(double margin)
Sets the frame's margin in pixels. |
void |
setPadding(double padding)
Sets the width of the frame's internal padding in pixels. |
void |
setPageBreakPolicy(QTextFormat.PageBreakFlag[] flags)
|
void |
setPageBreakPolicy(QTextFormat.PageBreakFlags flags)
Sets the page break policy for the frame/table to policy. |
void |
setPosition(QTextFrameFormat.Position f)
Sets the policy for positioning frames with this frame format. |
void |
setRightMargin(double margin)
Sets the frame's right margin in pixels. |
void |
setTopMargin(double margin)
Sets the frame's top margin in pixels. |
void |
setWidth(double width)
Convenience method that sets the width of the frame's border rectangle's width to the specified fixed width. |
void |
setWidth(QTextLength length)
Sets the frame's border rectangle's width. |
double |
topMargin()
Returns the width of the frame's top margin in pixels. |
QTextLength |
width()
Returns the width of the frame's border rectangle. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QTextFrameFormat()
Method Detail |
---|
public final double border()
setBorder()
.
public final QBrush borderBrush()
setBorderBrush()
.
public final QTextFrameFormat.BorderStyle borderStyle()
setBorderStyle()
.
public final double bottomMargin()
setBottomMargin()
.
public final QTextLength height()
setHeight()
.
public final double leftMargin()
setLeftMargin()
.
public final double margin()
setMargin()
.
public final double padding()
setPadding()
.
public final QTextFormat.PageBreakFlags pageBreakPolicy()
QTextFormat::PageBreak_Auto
. setPageBreakPolicy()
.
public final QTextFrameFormat.Position position()
setPosition()
.
public final double rightMargin()
setRightMargin()
.
public final void setBorder(double border)
border()
.
public final void setBorderBrush(QBrush brush)
borderBrush()
.
public final void setBorderStyle(QTextFrameFormat.BorderStyle style)
borderStyle()
.
public final void setBottomMargin(double margin)
bottomMargin()
.
public final void setHeight(QTextLength height)
height()
.
public final void setHeight(double height)
public final void setLeftMargin(double margin)
leftMargin()
.
public final void setMargin(double margin)
margin()
.
public final void setPadding(double padding)
padding()
.
public final void setPageBreakPolicy(QTextFormat.PageBreakFlag[] flags)
public final void setPageBreakPolicy(QTextFormat.PageBreakFlags flags)
pageBreakPolicy()
.
public final void setPosition(QTextFrameFormat.Position f)
position()
.
public final void setRightMargin(double margin)
rightMargin()
.
public final void setTopMargin(double margin)
topMargin()
.
public final void setWidth(QTextLength length)
width()
, and QTextLength
.
public final void setWidth(double width)
public final double topMargin()
setTopMargin()
.
public final QTextLength width()
setWidth()
, and QTextLength
.
public QTextFrameFormat clone()
clone
in class QTextFormat
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |