de.javagl.swogl.layout
Class BrowseLayoutControl
java.lang.Object
de.javagl.swogl.layout.BrowseLayoutControl
- All Implemented Interfaces:
- de.javagl.swogl.interaction.Control
public class BrowseLayoutControl
- extends java.lang.Object
- implements de.javagl.swogl.interaction.Control
Simple implementation of a Control
for the default
behavior of a BrowseLayout3D
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowseLayoutControl
public BrowseLayoutControl(BrowseLayout3D browseLayout)
- Creates a new BrowseLayoutControl for the given
BrowseLayout3D
.
- Parameters:
browseLayout
- The layout
browseModeActivated
protected void browseModeActivated(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)
- Specified by:
attachTo
in interface de.javagl.swogl.interaction.Control
detachFrom
public void detachFrom(javax.swing.JComponent component)
- Specified by:
detachFrom
in interface de.javagl.swogl.interaction.Control
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interface de.javagl.swogl.interaction.Control
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface de.javagl.swogl.interaction.Control