|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QTextFormat
com.trolltech.qt.gui.QTextCharFormat
com.trolltech.qt.gui.QTextImageFormat
public class QTextImageFormat
The QTextImageFormat class provides formatting information for images in a QTextDocument.
Inline images are represented by an object replacement character (0xFFFC in Unicode) which has an associated QTextImageFormat. The image format specifies a name with setName that is used to locate the image. The size of the rectangle that the image will occupy is specified using setWidth and setHeight.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QTextCharFormat |
---|
QTextCharFormat.UnderlineStyle, QTextCharFormat.VerticalAlignment |
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.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Constructor Summary | |
---|---|
QTextImageFormat()
Creates a new image format object. |
Method Summary | |
---|---|
static QTextImageFormat |
fromNativePointer(QNativePointer nativePointer)
This function returns the QTextImageFormat instance pointed to by nativePointer |
double |
height()
Returns the height of the rectangle occupied by the image. |
boolean |
isValid()
Returns true if this image format is valid; otherwise returns false. |
java.lang.String |
name()
Returns the name of the image. |
static QNativePointer |
nativePointerArray(QTextImageFormat[] array)
This function returns a QNativePointer that is pointing to the specified QTextImageFormat array. |
void |
setHeight(double height)
Sets the height of the rectangle occupied by the image. |
void |
setName(java.lang.String name)
Sets the name of the image. |
void |
setWidth(double width)
Sets the width of the rectangle occupied by the image. |
double |
width()
Returns the width of the rectangle occupied by the image. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QTextImageFormat()
Creates a new image format object.
Method Detail |
---|
public final double height()
Returns the height of the rectangle occupied by the image.
public final boolean isValid()
Returns true if this image format is valid; otherwise returns false.
isValid
in class QTextCharFormat
public final java.lang.String name()
Returns the name of the image. The name refers to an entry in the application's resources file.
public final void setHeight(double height)
Sets the height of the rectangle occupied by the image.
public final void setName(java.lang.String name)
Sets the name of the image. The name is used to locate the image in the application's resources.
public final void setWidth(double width)
Sets the width of the rectangle occupied by the image.
public final double width()
Returns the width of the rectangle occupied by the image.
public static QTextImageFormat fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.public static QNativePointer nativePointerArray(QTextImageFormat[] array)
array
- the array that the returned pointer will point to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |