Package xj3d.browser
Class LinesStyleAction
java.lang.Object
javax.swing.AbstractAction
xj3d.browser.LinesStyleAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
An action that can be used to change rendering style to lines
- Version:
- $Revision: 1.2 $
- Author:
- Alan Hudson
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SwingStatusBar
The status barprotected BrowserCore
The browser coreFields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionLinesStyleAction
(BrowserCore core, SwingStatusBar statusBar) Create an instance of the action class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
An action has been performed.void
reset()
Sets this style to non active.void
setLinkedStyles
(xj3d.browser.RenderStyle[] linked) Set the render styles linked to this one.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
statusBar
The status bar -
universe
The browser core
-
-
Constructor Details
-
LinesStyleAction
Create an instance of the action class.- Parameters:
core
- The Browser core instancestatusBar
- the SwingStatusBar instance
-
-
Method Details
-
actionPerformed
An action has been performed. This is the Go button being pressed. Grab the URL and check with the file to see if it exists first as a local file, and then try to make a URL of it. Finally, if this all works, call the abstract gotoLocation method.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
evt
- The event that caused this method to be called.
-
reset
public void reset()Sets this style to non active. Used when Shaded mode is selected. -
setLinkedStyles
public void setLinkedStyles(xj3d.browser.RenderStyle[] linked) Set the render styles linked to this one. If one is enabled the others will be disabled.- Parameters:
linked
- The linked styles
-