org.omegahat.Graphics.Devices
Interface HookParameters
- public interface HookParameters
An interface for graphics parameters classes that need to do
something special when parameters are set (pushed) or
reset(popped).
Graphics parameters are normally handled by the device object;
this interface provides control from the parameters object
itself, if something needs to be done that the device
should not know about.
|
Method Summary |
void |
onPop(OutputDevice dev)
Called when the device discards this object
as the active parameters, allowing reparation of the original
state that was present before this object became active. |
void |
onPush(OutputDevice dev)
Called when this object becomes active
(so that the settings contained in the object apply to
subsequent graphics). |
onPush
public void onPush(OutputDevice dev)
- Called when this object becomes active
(so that the settings contained in the object apply to
subsequent graphics).
Allows us to save any details state
for restoring that state when
we deactive these parameters.
onPop
public void onPop(OutputDevice dev)
- Called when the device discards this object
as the active parameters, allowing reparation of the original
state that was present before this object became active.