public class SVGGraphicsConfiguration extends GraphicsConfiguration
SVGGraphics2D
class.Constructor and Description |
---|
SVGGraphicsConfiguration(int width,
int height)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
createCompatibleImage(int width,
int height)
Creates a compatible image.
|
VolatileImage |
createCompatibleVolatileImage(int width,
int height,
ImageCapabilities caps,
int transparency)
Returns a volatile image.
|
Rectangle |
getBounds()
Returns the bounds for this configuration.
|
ColorModel |
getColorModel()
Returns the color model for this configuration.
|
ColorModel |
getColorModel(int transparency)
Returns the color model for the specified transparency type, or
null . |
AffineTransform |
getDefaultTransform()
Returns the default transform.
|
GraphicsDevice |
getDevice()
Returns the graphics device that this configuration is associated with.
|
AffineTransform |
getNormalizingTransform()
Returns the normalizing transform.
|
createCompatibleImage, createCompatibleVolatileImage, createCompatibleVolatileImage, createCompatibleVolatileImage, getBufferCapabilities, getImageCapabilities, isTranslucencyCapable
public SVGGraphicsConfiguration(int width, int height)
width
- the width of the bounds.height
- the height of the bounds.public GraphicsDevice getDevice()
getDevice
in class GraphicsConfiguration
null
).public ColorModel getColorModel()
getColorModel
in class GraphicsConfiguration
public ColorModel getColorModel(int transparency)
null
.getColorModel
in class GraphicsConfiguration
transparency
- the transparency type.null
).public AffineTransform getDefaultTransform()
getDefaultTransform
in class GraphicsConfiguration
public AffineTransform getNormalizingTransform()
getNormalizingTransform
in class GraphicsConfiguration
public Rectangle getBounds()
getBounds
in class GraphicsConfiguration
public BufferedImage createCompatibleImage(int width, int height)
createCompatibleImage
in class GraphicsConfiguration
width
- the width.height
- the height.public VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) throws AWTException
createCompatibleVolatileImage
in class GraphicsConfiguration
width
- the image width.height
- the image height.caps
- the image capabilities.transparency
- the transparency.AWTException
- if there is a problem creating the image.Copyright © 2021. All rights reserved.