Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.svg
Class QSvgGenerator

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              com.trolltech.qt.svg.QSvgGenerator

All Implemented Interfaces:
  QPaintDeviceInterface, QtJambiInterface

    public class QSvgGenerator

extends QtJambiObject
implements QPaintDeviceInterface

The `QSvgGenerator` class provides a paint device that is used to create SVG drawings.

See also:
  `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)` This method returns the QSvgGenerator instance pointed to by `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

### QSvgGenerator

    public QSvgGenerator()

  Constructs a new generator.

Method Detail

### depth

    public final int depth()

  Returns the bit depth (number of bit planes) of the paint device.

  Specified by:
    `depth` in interface `QPaintDeviceInterface`

### fileName

    public final java.lang.String fileName()

  Returns the name of the file to be created by the generator.

See also:
  `setFileName()`.

### height

    public final int height()

  Returns the height of the paint device in default coordinate system units (e.g. pixels for `QPixmap` and `QWidget`).

See also:
  `heightMM()`.

  Specified by:
    `height` in interface `QPaintDeviceInterface`

### heightMM

    public final int heightMM()

  Returns the height of the paint device in millimeters.

See also:
  `height()`.

  Specified by:
    `heightMM` in interface `QPaintDeviceInterface`

### logicalDpiX

    public final int logicalDpiX()

  Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from `widthMM()`.

  Note that if the `logicalDpiX()` doesn't equal the `physicalDpiX()`, the corresponding `QPaintEngine` must handle the resolution mapping.

See also:
  `logicalDpiY()`, and `physicalDpiX()`.

  Specified by:
    `logicalDpiX` in interface `QPaintDeviceInterface`

### logicalDpiY

    public final int logicalDpiY()

  Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from `heightMM()`.

  Note that if the `logicalDpiY()` doesn't equal the `physicalDpiY()`, the corresponding `QPaintEngine` must handle the resolution mapping.

See also:
  `logicalDpiX()`, and `physicalDpiY()`.

  Specified by:
    `logicalDpiY` in interface `QPaintDeviceInterface`

### numColors

    public final int numColors()

  Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case `INT_MAX` is returned instead.

  Specified by:
    `numColors` in interface `QPaintDeviceInterface`

### outputDevice

    public final QIODevice outputDevice()

  Returns the target output device for generated SVGs.

See also:
  `setOutputDevice()`.

### paintingActive

    public final boolean paintingActive()

  Returns true if the device is currently being painted on, i.e. someone has called `QPainter::begin()` but not yet called `QPainter::end()` for this device; otherwise returns false.

See also:
  `QPainter::isActive()`.

  Specified by:
    `paintingActive` in interface `QPaintDeviceInterface`

### physicalDpiX

    public final int physicalDpiX()

  Returns the horizontal resolution of the device in dots per inch. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.

  Note that if the `physicalDpiX()` doesn't equal the `logicalDpiX()`, the corresponding `QPaintEngine` must handle the resolution mapping.

See also:
  `physicalDpiY()`, and `logicalDpiX()`.

  Specified by:
    `physicalDpiX` in interface `QPaintDeviceInterface`

### physicalDpiY

    public final int physicalDpiY()

  Returns the horizontal resolution of the device in dots per inch. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.

  Note that if the `physicalDpiY()` doesn't equal the `logicalDpiY()`, the corresponding `QPaintEngine` must handle the resolution mapping.

See also:
  `physicalDpiX()`, and `logicalDpiY()`.

  Specified by:
    `physicalDpiY` in interface `QPaintDeviceInterface`

### resolution

    public final int resolution()

  Returns the resolution of the generated output in dots per inch.

See also:
  `setResolution()`.

### setFileName

    public final void setFileName(java.lang.String fileName)

  Sets the target filename for generated SVGs to `fileName`.

See also:
  `fileName()`, and `setOutputDevice()`.

### setOutputDevice

    public final void setOutputDevice(QIODevice outputDevice)

  Sets the output device for generated SVGs to `outputDevice`.

  If both output device and file name are specified, the output device will have precedence.

See also:
  `outputDevice()`.

### setResolution

    public final void setResolution(int dpi)

  Sets the resolution of the generated output to `resolution`. The argument is specified in dots per inch.

  The resolution is used to calculate the physical size of an SVG drawing.

See also:
  `resolution()`.

### setSize

    public final void setSize(QSize size)

  Sets the size of the generated SVG to `size`.

  It is not possible to set the size while the SVG is being generated.

See also:
  `size()`.

### size

    public final QSize size()

  Returns the size of the generated SVG.

See also:
  `setSize()`.

### width

    public final int width()

  Returns the width of the paint device in default coordinate system units (e.g. pixels for `QPixmap` and `QWidget`).

See also:
  `widthMM()`.

  Specified by:
    `width` in interface `QPaintDeviceInterface`

### widthMM

    public final int widthMM()

  Returns the width of the paint device in millimeters.

See also:
  `width()`.

  Specified by:
    `widthMM` in interface `QPaintDeviceInterface`

### metric

    public int metric(QPaintDevice.PaintDeviceMetric metric)

  Returns the metric information for the given paint device `metric`.

See also:
  `PaintDeviceMetric` .

  Specified by:
    `metric` in interface `QPaintDeviceInterface`

### paintEngine

    public QPaintEngine paintEngine()

  Returns a pointer to the paint engine used for drawing on the device.

  Specified by:
    `paintEngine` in interface `QPaintDeviceInterface`

### fromNativePointer

    public static QSvgGenerator fromNativePointer(QNativePointer nativePointer)

  This method returns the QSvgGenerator instance pointed to by `nativePointer`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD