de.javagl.swogl.layout
Class BrowseLayoutControl

java.lang.Object
  extended by de.javagl.swogl.layout.BrowseLayoutControl
All Implemented Interfaces:
Control

public class BrowseLayoutControl
extends java.lang.Object
implements Control

Simple implementation of a Control for the default behavior of a BrowseLayout3D.


Constructor Summary
BrowseLayoutControl(BrowseLayout3D browseLayout)
          Creates a new BrowseLayoutControl for the given BrowseLayout3D.
 
Method Summary
 void attachTo(javax.swing.JComponent component)
          Attach this control to the given component
 void detachFrom(javax.swing.JComponent component)
          Detach this control from the given component
 boolean isEnabled()
          Returns whether this control is enabled
protected  void setBrowseModeActivated(boolean activated)
          Will be called when the "browse mode" is activated.
 void setEnabled(boolean enabled)
          Enable or disable this control
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowseLayoutControl

public BrowseLayoutControl(BrowseLayout3D browseLayout)
Creates a new BrowseLayoutControl for the given BrowseLayout3D.

Parameters:
browseLayout - The layout
Method Detail

setBrowseModeActivated

protected void setBrowseModeActivated(boolean activated)
Will be called when the "browse mode" is activated. May be overridden by subclasses to get informed when the browse mode is activated. The default implementation is empty.

Parameters:
activated - Whether the browse mode is activated

attachTo

public void attachTo(javax.swing.JComponent component)
Description copied from interface: Control
Attach this control to the given component

Specified by:
attachTo in interface Control
Parameters:
component - The component to attach to

detachFrom

public void detachFrom(javax.swing.JComponent component)
Description copied from interface: Control
Detach this control from the given component

Specified by:
detachFrom in interface Control
Parameters:
component - The component to detach from

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: Control
Enable or disable this control

Specified by:
setEnabled in interface Control
Parameters:
enabled - Whether this control is enabled

isEnabled

public boolean isEnabled()
Description copied from interface: Control
Returns whether this control is enabled

Specified by:
isEnabled in interface Control
Returns:
Whether this control is enabled