public class GenericGraphicsDevice extends GraphicsDevice
GraphicsDevice
interface as appropriate for the various output
configurations.GraphicsDevice.WindowTranslucency
TYPE_IMAGE_BUFFER, TYPE_PRINTER, TYPE_RASTER_SCREEN
Constructor and Description |
---|
GenericGraphicsDevice(GraphicsConfiguration gc)
Create a new graphics2D device.
|
Modifier and Type | Method and Description |
---|---|
GraphicsConfiguration |
getBestConfiguration(GraphicsConfigTemplate gct)
Ignore template and return the only config we have
|
GraphicsConfiguration[] |
getConfigurations()
Return an array of our one GraphicsConfig
|
GraphicsConfiguration |
getDefaultConfiguration()
Return out sole GraphicsConfig.
|
String |
getIDstring()
Generate an IdString..
|
int |
getType()
Let the caller know that we are "a printer"
|
getAvailableAcceleratedMemory, getDisplayMode, getDisplayModes, getFullScreenWindow, isDisplayChangeSupported, isFullScreenSupported, isWindowTranslucencySupported, setDisplayMode, setFullScreenWindow
public GenericGraphicsDevice(GraphicsConfiguration gc)
gc
- we should referencepublic GraphicsConfiguration getBestConfiguration(GraphicsConfigTemplate gct)
getBestConfiguration
in class GraphicsDevice
gct
- the template configurationpublic GraphicsConfiguration[] getConfigurations()
getConfigurations
in class GraphicsDevice
public GraphicsConfiguration getDefaultConfiguration()
getDefaultConfiguration
in class GraphicsDevice
public String getIDstring()
getIDstring
in class GraphicsDevice
public int getType()
getType
in class GraphicsDevice
Copyright © 2022 Apache Software Foundation. All rights reserved.