|
|||||||||
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.svg.QSvgGenerator
public class QSvgGenerator
The QSvgGenerator class provides a paint device that is used to create SVG drawings.
QSvgRenderer
, and QSvgWidget
.
Nested Class Summary |
---|
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 | |
---|---|
QSvgGenerator()
Constructs a new generator. |
Method Summary | |
---|---|
int |
depth()
Returns the bit depth (number of bit planes) of the paint device. |
java.lang.String |
description()
This property holds the description of the generated SVG drawing. |
java.lang.String |
fileName()
This property holds the target filename for the generated SVG drawing. |
int |
height()
Returns the height of the paint device in default coordinate system units (e. |
int |
heightMM()
Returns the height of the paint device in millimeters. |
int |
logicalDpiX()
Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. |
int |
logicalDpiY()
Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. |
int |
metric(QPaintDevice.PaintDeviceMetric metric)
Returns the metric information for the given paint device metric. |
int |
numColors()
Returns the number of different colors available for the paint device. |
QIODevice |
outputDevice()
This property holds the output device for the generated SVG drawing. |
QPaintEngine |
paintEngine()
Returns a pointer to the paint engine used for drawing on the device. |
boolean |
paintingActive()
Returns true if the device is currently being painted on, i. |
int |
physicalDpiX()
Returns the horizontal resolution of the device in dots per inch. |
int |
physicalDpiY()
Returns the horizontal resolution of the device in dots per inch. |
int |
resolution()
This property holds the resolution of the generated output. |
void |
setDescription(java.lang.String description)
This property holds the description of the generated SVG drawing. |
void |
setFileName(java.lang.String fileName)
This property holds the target filename for the generated SVG drawing. |
void |
setOutputDevice(QIODevice outputDevice)
This property holds the output device for the generated SVG drawing. |
void |
setResolution(int dpi)
This property holds the resolution of the generated output. |
void |
setSize(QSize size)
This property holds the size of the generated SVG drawing. |
void |
setTitle(java.lang.String title)
This property holds the title of the generated SVG drawing. |
void |
setViewBox(QRect viewBox)
This property holds the viewBox of the generated SVG drawing. |
void |
setViewBox(QRectF viewBox)
This property holds the viewBox of the generated SVG drawing. |
QSize |
size()
This property holds the size of the generated SVG drawing. |
java.lang.String |
title()
This property holds the title of the generated SVG drawing. |
QRect |
viewBox()
Returns viewBoxF() .toRect(). |
QRectF |
viewBoxF()
This property holds the viewBox of the generated SVG drawing. |
int |
width()
Returns the width of the paint device in default coordinate system units (e. |
int |
widthMM()
Returns the width of the paint device in millimeters. |
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 |
---|
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 QSvgGenerator()
Method Detail |
---|
public final int depth()
depth
in interface QPaintDeviceInterface
public final java.lang.String description()
title
.
public final java.lang.String fileName()
outputDevice
.
public final int height()
QPixmap
and QWidget
). heightMM()
.
height
in interface QPaintDeviceInterface
public final int heightMM()
height()
.
heightMM
in interface QPaintDeviceInterface
public final int logicalDpiX()
widthMM()
. Note that if the logicalDpiX()
doesn't equal the physicalDpiX()
, the corresponding QPaintEngine
must handle the resolution mapping.
logicalDpiY()
, and physicalDpiX()
.
logicalDpiX
in interface QPaintDeviceInterface
public final int logicalDpiY()
heightMM()
. Note that if the logicalDpiY()
doesn't equal the physicalDpiY()
, the corresponding QPaintEngine
must handle the resolution mapping.
logicalDpiX()
, and physicalDpiY()
.
logicalDpiY
in interface QPaintDeviceInterface
public final int numColors()
numColors
in interface QPaintDeviceInterface
public final QIODevice outputDevice()
fileName
.
public final boolean paintingActive()
QPainter::begin()
but not yet called QPainter::end()
for this device; otherwise returns false. QPainter::isActive()
.
paintingActive
in interface QPaintDeviceInterface
public final int physicalDpiX()
Note that if the physicalDpiX()
doesn't equal the logicalDpiX()
, the corresponding QPaintEngine
must handle the resolution mapping.
physicalDpiY()
, and logicalDpiX()
.
physicalDpiX
in interface QPaintDeviceInterface
public final int physicalDpiY()
Note that if the physicalDpiY()
doesn't equal the logicalDpiY()
, the corresponding QPaintEngine
must handle the resolution mapping.
physicalDpiX()
, and logicalDpiY()
.
physicalDpiY
in interface QPaintDeviceInterface
public final int resolution()
size
, and viewBox
.
public final void setDescription(java.lang.String description)
title
.
public final void setFileName(java.lang.String fileName)
outputDevice
.
public final void setOutputDevice(QIODevice outputDevice)
fileName
.
public final void setResolution(int dpi)
size
, and viewBox
.
public final void setSize(QSize size)
Note: It is not possible to change this property while a QPainter
is active on the generator.
viewBox
, and resolution
.
public final void setTitle(java.lang.String title)
description
.
public final void setViewBox(QRect viewBox)
viewBox
of the generated SVG drawing. By default this property is set to QRect(0, 0, -1, -1), which indicates that the generator should not output the viewBox
attribute of the <svg> element. Note: It is not possible to change this property while a QPainter
is active on the generator.
viewBox()
, size
, and resolution
.
public final void setViewBox(QRectF viewBox)
viewBox
of the generated SVG drawing. By default this property is set to QRect(0, 0, -1, -1), which indicates that the generator should not output the viewBox
attribute of the <svg> element. Note: It is not possible to change this property while a QPainter
is active on the generator.
viewBox()
, size
, and resolution
.
public final QSize size()
Note: It is not possible to change this property while a QPainter
is active on the generator.
viewBox
, and resolution
.
public final java.lang.String title()
description
.
public final QRect viewBox()
viewBoxF()
.toRect(). setViewBox()
, and viewBoxF()
.
public final QRectF viewBoxF()
viewBox
of the generated SVG drawing. By default this property is set to QRect(0, 0, -1, -1), which indicates that the generator should not output the viewBox
attribute of the <svg> element. Note: It is not possible to change this property while a QPainter
is active on the generator.
viewBox()
, size
, and resolution
.
public final int width()
QPixmap
and QWidget
). widthMM()
.
width
in interface QPaintDeviceInterface
public final int widthMM()
width()
.
widthMM
in interface QPaintDeviceInterface
public int metric(QPaintDevice.PaintDeviceMetric metric)
PaintDeviceMetric
.
metric
in interface QPaintDeviceInterface
public QPaintEngine paintEngine()
paintEngine
in interface QPaintDeviceInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |