de.esw.eengine.renderable.wtk.swing
Class WTKDelegate

java.lang.Object
  extended by de.esw.eengine.renderable.AbstractRenderable
      extended by de.esw.eengine.renderable.wtk.swing.WTKDelegate
All Implemented Interfaces:
IActivatable, IRenderable

public class WTKDelegate
extends AbstractRenderable
implements IActivatable

Since:
1.0
Version:
$Id: WTKDelegate.java 209 2005-07-23 00:39:50Z markusw $
Author:
markusw

Constructor Summary
WTKDelegate(Core core, java.awt.Component component, int x, int y, java.awt.Dimension dim)
           
WTKDelegate(Core core, java.awt.Component component, int x, int y, int width, int height)
           
WTKDelegate(Core core, javax.swing.JComponent component, int x, int y)
           
 
Method Summary
 boolean isActive()
           
 void render(IRenderDevice renderDevice)
          Renders this entity to the current IRenderDevice
 void setActive(boolean active)
           
 void toggle()
          Switches activation state
 
Methods inherited from class de.esw.eengine.renderable.AbstractRenderable
blend, getAlpha, getName, setAlpha, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WTKDelegate

public WTKDelegate(Core core,
                   javax.swing.JComponent component,
                   int x,
                   int y)
Parameters:
core - Core to attach this delegate to
component - JComponent to render
x - X position to render component at
y - Y position to render component at

WTKDelegate

public WTKDelegate(Core core,
                   java.awt.Component component,
                   int x,
                   int y,
                   int width,
                   int height)
Parameters:
core - Core to attach this delegate to
component - Component to render
x - X position to render component at
y - Y position to render component at
width - Width of the component
height - Height of the component

WTKDelegate

public WTKDelegate(Core core,
                   java.awt.Component component,
                   int x,
                   int y,
                   java.awt.Dimension dim)
Parameters:
core - Core to attach this delegate to
component - Component to render
x - X position to render component at
y - Y position to render component at
dim - The width and height of the component
Method Detail

render

public void render(IRenderDevice renderDevice)
Description copied from interface: IRenderable
Renders this entity to the current IRenderDevice

Specified by:
render in interface IRenderable
Parameters:
renderDevice - IRenderDevice to render onto
See Also:
IRenderable.render(de.esw.eengine.core.IRenderDevice)

setActive

public void setActive(boolean active)
Specified by:
setActive in interface IActivatable
Parameters:
active - True if IActivatable should be active, false otherwise
See Also:
IActivatable.setActive(boolean)

isActive

public boolean isActive()
Specified by:
isActive in interface IActivatable
Returns:
True if IActivatable is active, false otherwise
See Also:
IActivatable.isActive()

toggle

public void toggle()
Description copied from interface: IActivatable
Switches activation state

Specified by:
toggle in interface IActivatable
See Also:
IActivatable.toggle()