public class DefaultRenderControls extends AbstractProcessingControls<RenderSettings> implements RenderControls
RenderControls
to be used as base class providing easy and fast access to the most commonly
used SerializableProcessingSettings
. The RenderControls define a set of parameters that control the process of rendering
content.settings
Constructor and Description |
---|
DefaultRenderControls() |
DefaultRenderControls(DefaultRenderControls rc)
Construct a new
AbstractRenderControls and initialize it with the same settings as the given one. |
equals, hashCode, isModified
public DefaultRenderControls()
public DefaultRenderControls(DefaultRenderControls rc)
AbstractRenderControls
and initialize it with the same settings as the given one.rc
- AbstractRenderControls
from which to copy the settings.public static RenderControls getNotNull(RenderControls controls)
DefaultRenderControls
instance with screen resolution will be created and
returned.controls
- the controls object to checkedDefaultRenderControls
object with screen
resolution will be returned.public void clearSettings(Class<? extends RenderSettings> c)
ProcessingControls
clearSettings
in interface ProcessingControls<RenderSettings>
clearSettings
in class AbstractProcessingControls<RenderSettings>
c
- the class of settings to clear.ProcessingControls.clearSettings(java.lang.Class)
public BaseRenderSettings getBaseRenderSettings()
RenderControls
BaseRenderSettings
.getBaseRenderSettings
in interface RenderControls
RenderControls.getBaseRenderSettings()
public ImageRenderSettings getImageRenderSettings()
RenderControls
ImageRenderSettings
.getImageRenderSettings
in interface RenderControls
RenderControls.getImageRenderSettings()
public <S extends RenderSettings> S getSettings(Class<S> c)
ProcessingControls
SerializableProcessingSettings
selected by its class.getSettings
in interface ProcessingControls<RenderSettings>
getSettings
in class AbstractProcessingControls<RenderSettings>
S
- the specific type of SerializableProcessingSettings
to retrievec
- the class of settings to get.SerializableProcessingSettings
of the given class.AbstractProcessingControls.getSettings(java.lang.Class)
public void addRenderSettingsListener(RenderSettingsListener listener)
RenderSettingsListener
for receiving render settings change events.listener
- the listener to registerpublic void removeRenderSettingsListener(RenderSettingsListener listener)
RenderSettingsListener
.listener
- the listener to removepublic List<RenderSettingsListener> getRenderSettingsListeners()
public DefaultRenderControls createSnapshot()
RenderControls
createSnapshot
in interface ProcessingControls<RenderSettings>
createSnapshot
in interface SerializableProcessingControls<RenderSettings>
createSnapshot
in interface RenderControls
RenderControls.createSnapshot()
public Collection<RenderSettings> getSettings()
getSettings
in interface RenderControls
Copyright © 2024 levigo holding gmbh. All rights reserved.