| java.lang.Object org.jdesktop.j3dfly.warp.WarpSet
WarpSet | public class WarpSet extends Object implements Serializable(Code) | | Encapsulates a set of WarpPositions
author: Paul Byrne version: 1.6, 12/19/00 |
addWarpPosition | public void addWarpPosition(String name, String description, Transform3D position)(Code) | | Add a new Warp to the set.
Parameters: name - Name of the warp Parameters: description - A description of the Warp (can be null) Parameters: position - The position of the warp |
changeWarpPosition | public void changeWarpPosition(String name, Transform3D newPosition)(Code) | | Change the position of the named warp, if the warp does not exist it
will be created.
Parameters: name - Name of the warp Parameters: newPosition - The new position for the warp |
clear | public void clear()(Code) | | Clear the warp set and update the combobox
|
createWarp | public String createWarp(Transform3D position, JDialog parent)(Code) | | Create a warp for the supplied position.
Present the user with a dialog to obtain the
name and description of the warp.
Parameters: position - The position of the warp Parameters: parent - The component which should be the parent of the dialog Returns the name of the new warp, or null if user cancelled creation |
deleteWarpPosition | public void deleteWarpPosition(String name)(Code) | | Remove the named warp
|
getNames | public String[] getNames()(Code) | | Returns an array containing all the warp names
|
getWarps | public WarpPosition[] getWarps()(Code) | | Return all the warps.
This was added to support the transition to the new
WarpPlugin
|
merge | public void merge(WarpSet set)(Code) | | Merge set with this warp set
If this defaultWarp==null then set it to set.defaultWarp
TODO - Handle duplicate names correctly
|
nameExists | public boolean nameExists(String name)(Code) | | Returns true if name exists in the set
|
warpTo | public void warpTo(String name, TransformGroup viewTG)(Code) | | Set the viewTG to the position of the named warp.
If the named warp does not exist the transformGroup will not
be modified.
Parameters: name - Name of the warp Parameters: viewTG - The View TransformGroup |
|
|