Class GraphicConfiguration
java.lang.Object
de.gurkenlabs.litiengine.configuration.ConfigurationGroup
de.gurkenlabs.litiengine.configuration.GraphicConfiguration
public class GraphicConfiguration
extends ConfigurationGroup
Nested Class Summary
Nested classes/interfaces inherited from class de.gurkenlabs.litiengine.configuration.ConfigurationGroup
ConfigurationGroup.ConfigurationChangedListener
Method Summary
Modifier and Type Method Description boolean
antiAlising()
boolean
colorInterpolation()
boolean
enableResolutionScaling()
DisplayMode
getDisplayMode()
Quality
getGraphicQuality()
Gets the graphic quality.java.awt.Dimension
getResolution()
Gets the resolution.int
getResolutionHeight()
int
getResolutionWidth()
boolean
reduceFramesWhenNotFocused()
boolean
renderDynamicShadows()
void
setAntiAliasing(boolean antiAliasing)
void
setColorInterpolation(boolean colorInterpolation)
void
setDisplayMode(DisplayMode displayMode)
void
setEnableResolutionScale(boolean enableResolutionScale)
void
setGraphicQuality(Quality graphicQuality)
Sets the graphic quality.void
setReduceFramesWhenNotFocused(boolean reduceFramesWhenNotFocused)
void
setRenderDynamicShadows(boolean renderDynamicShadows)
void
setResolutionHeight(int resolutionHeight)
void
setResolutionWidth(int resolutionWidth)
Methods inherited from class de.gurkenlabs.litiengine.configuration.ConfigurationGroup
getPrefix, initializeByProperty, isDebug, onChanged, removeListener, set, setDebug, storeProperties
Method Details
getGraphicQuality
Gets the graphic quality.- Returns:
- the graphic quality
getResolution
public java.awt.Dimension getResolution()Gets the resolution.- Returns:
- the resolution
getResolutionHeight
public int getResolutionHeight()getResolutionWidth
public int getResolutionWidth()renderDynamicShadows
public boolean renderDynamicShadows()antiAlising
public boolean antiAlising()colorInterpolation
public boolean colorInterpolation()getDisplayMode
setDisplayMode
setGraphicQuality
Sets the graphic quality.- Parameters:
graphicQuality
- the new graphic quality
setRenderDynamicShadows
public void setRenderDynamicShadows(boolean renderDynamicShadows)setResolutionHeight
public void setResolutionHeight(int resolutionHeight)setResolutionWidth
public void setResolutionWidth(int resolutionWidth)enableResolutionScaling
public boolean enableResolutionScaling()setEnableResolutionScale
public void setEnableResolutionScale(boolean enableResolutionScale)reduceFramesWhenNotFocused
public boolean reduceFramesWhenNotFocused()setReduceFramesWhenNotFocused
public void setReduceFramesWhenNotFocused(boolean reduceFramesWhenNotFocused)setAntiAliasing
public void setAntiAliasing(boolean antiAliasing)setColorInterpolation
public void setColorInterpolation(boolean colorInterpolation)