public class SVGGraphicsConfiguration extends java.awt.GraphicsConfiguration
SVGGraphics2D
class.Constructor and Description |
---|
SVGGraphicsConfiguration(int width,
int height)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
createCompatibleImage(int width,
int height)
Creates a compatible image.n This override is only here to provide
support for Java 6 because from Java 7 onwards the super class has a
non-abstract implementation for this method.
|
java.awt.image.VolatileImage |
createCompatibleVolatileImage(int width,
int height,
java.awt.ImageCapabilities caps,
int transparency)
Returns a volatile image.
|
java.awt.Rectangle |
getBounds()
Returns the bounds for this configuration.
|
java.awt.image.ColorModel |
getColorModel()
Returns the color model for this configuration.
|
java.awt.image.ColorModel |
getColorModel(int transparency)
Returns the color model for the specified transparency type, or
null . |
java.awt.geom.AffineTransform |
getDefaultTransform()
Returns the default transform.
|
java.awt.GraphicsDevice |
getDevice()
Returns the graphics device that this configuration is associated with.
|
java.awt.geom.AffineTransform |
getNormalizingTransform()
Returns the normalizing transform.
|
public SVGGraphicsConfiguration(int width, int height)
width
- the width of the bounds.height
- the height of the bounds.public java.awt.GraphicsDevice getDevice()
getDevice
in class java.awt.GraphicsConfiguration
null
).public java.awt.image.ColorModel getColorModel()
getColorModel
in class java.awt.GraphicsConfiguration
public java.awt.image.ColorModel getColorModel(int transparency)
null
.getColorModel
in class java.awt.GraphicsConfiguration
transparency
- the transparency type.null
).public java.awt.geom.AffineTransform getDefaultTransform()
getDefaultTransform
in class java.awt.GraphicsConfiguration
public java.awt.geom.AffineTransform getNormalizingTransform()
getNormalizingTransform
in class java.awt.GraphicsConfiguration
public java.awt.Rectangle getBounds()
getBounds
in class java.awt.GraphicsConfiguration
public java.awt.image.BufferedImage createCompatibleImage(int width, int height)
createCompatibleImage
in class java.awt.GraphicsConfiguration
width
- the width.height
- the height.public java.awt.image.VolatileImage createCompatibleVolatileImage(int width, int height, java.awt.ImageCapabilities caps, int transparency) throws java.awt.AWTException
createCompatibleVolatileImage
in class java.awt.GraphicsConfiguration
width
- the image width.height
- the image height.caps
- the image capabilities.transparency
- the transparency.java.awt.AWTException
- if there is a problem creating the image.