|
|||||||||
| 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.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.QSignalEmitter |
|---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
| 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 |
fileName()
Returns the name of the file to be created by the generator. |
static QSvgGenerator |
fromNativePointer(QNativePointer nativePointer)
|
int |
height()
Returns the height of the paint device in default coordinate system units (e.g. |
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()
Returns the target output device for generated SVGs. |
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.e. |
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()
Returns the resolution of the generated output in dots per inch. |
void |
setFileName(java.lang.String fileName)
Sets the target filename for generated SVGs to fileName. |
void |
setOutputDevice(QIODevice outputDevice)
Sets the output device for generated SVGs to outputDevice. |
void |
setResolution(int dpi)
Sets the resolution of the generated output to resolution. |
void |
setSize(QSize size)
Sets the size of the generated SVG to size. |
QSize |
size()
Returns the size of the generated SVG. |
int |
width()
Returns the width of the paint device in default coordinate system units (e.g. |
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 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 QPaintDeviceInterfacepublic final java.lang.String fileName()
setFileName().
public final int height()
QPixmap and QWidget). heightMM().
height in interface QPaintDeviceInterfacepublic final int heightMM()
height().
heightMM in interface QPaintDeviceInterfacepublic 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 QPaintDeviceInterfacepublic 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 QPaintDeviceInterfacepublic final int numColors()
INT_MAX is returned instead.
numColors in interface QPaintDeviceInterfacepublic final QIODevice outputDevice()
setOutputDevice().
public final boolean paintingActive()
QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false. QPainter::isActive().
paintingActive in interface QPaintDeviceInterfacepublic 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 QPaintDeviceInterfacepublic 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 QPaintDeviceInterfacepublic final int resolution()
setResolution().
public final void setFileName(java.lang.String fileName)
fileName(), and setOutputDevice().
public final void setOutputDevice(QIODevice outputDevice)
If both output device and file name are specified, the output device will have precedence.
outputDevice().
public final void setResolution(int dpi)
The resolution is used to calculate the physical size of an SVG drawing.
resolution().
public final void setSize(QSize size)
It is not possible to set the size while the SVG is being generated.
size().
public final QSize size()
setSize().
public final int width()
QPixmap and QWidget). widthMM().
width in interface QPaintDeviceInterfacepublic final int widthMM()
width().
widthMM in interface QPaintDeviceInterfacepublic int metric(QPaintDevice.PaintDeviceMetric metric)
PaintDeviceMetric .
metric in interface QPaintDeviceInterfacepublic QPaintEngine paintEngine()
paintEngine in interface QPaintDeviceInterfacepublic static QSvgGenerator fromNativePointer(QNativePointer nativePointer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||