Class LatticeModel
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.core3D.Exhibit3D
-
- vmm3d.latticemodel.LatticeModel
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
- Direct Known Subclasses:
- FermiPastaUlam, Toda
public abstract class LatticeModel extends Exhibit3D
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classLatticeModel.LMView
-
Field Summary
Fields Modifier and Type Field and Description static intBOUNDARY_CONDITION_PERIODICstatic intBOUNDARY_CONDITION_ZEROstatic intDISPLAY_BRIDGEstatic intDISPLAY_CIRCILARstatic intDISPLAY_FPU_GRAPHstatic intDISPLAY_LONGITUDINALstatic intDISPLAY_PENDULUMstatic intDISPLAY_TRANSVERSEstatic intINITIAL_MODE_EIGHTHstatic intINITIAL_MODE_FIRSTstatic intINITIAL_MODE_FOURTHstatic intINITIAL_MODE_SECONDstatic intINITIAL_MODE_SIXTEENTHstatic intINITIAL_SHAPE_BREATHERstatic intINITIAL_SHAPE_GAUSSIANstatic intINITIAL_SHAPE_KINKstatic intINITIAL_SHAPE_SINUSOIDALstatic intINITIAL_SHAPE_THERMALstatic intMAX_NUMBER_OF_NODES
-
Constructor Summary
Constructors Constructor and Description LatticeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AnimationgetCreateAnimation(View view)This method is called to "create" the Exhibit.TransformgetDefaultTransform(View view)Returns the default transform for use in the specified View.ViewgetDefaultView()Returns the default View of this Exhibit.ActionListgetSettingsCommandsForView(View view)Returns a list of "settings commands" that can be applied to this Exibit, when displayed in the specified View.-
Methods inherited from class vmm3d.core3D.Exhibit3D
getDefaultViewpoint, getDefaultViewUp, setDefaultViewpoint, setDefaultViewUp
-
Methods inherited from class vmm3d.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addView, clearDecorations, forceRedraw, getActionsForView, getAdditionalAnimationsForView, getAlternativeViews, getBuildAnimation, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultWindow, getFramesForMorphing, getMorphingAnimation, getName, getParameterByName, getParameters, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Field Detail
-
MAX_NUMBER_OF_NODES
public static final int MAX_NUMBER_OF_NODES
- See Also:
- Constant Field Values
-
DISPLAY_TRANSVERSE
public static final int DISPLAY_TRANSVERSE
- See Also:
- Constant Field Values
-
DISPLAY_LONGITUDINAL
public static final int DISPLAY_LONGITUDINAL
- See Also:
- Constant Field Values
-
DISPLAY_CIRCILAR
public static final int DISPLAY_CIRCILAR
- See Also:
- Constant Field Values
-
DISPLAY_PENDULUM
public static final int DISPLAY_PENDULUM
- See Also:
- Constant Field Values
-
DISPLAY_BRIDGE
public static final int DISPLAY_BRIDGE
- See Also:
- Constant Field Values
-
DISPLAY_FPU_GRAPH
public static final int DISPLAY_FPU_GRAPH
- See Also:
- Constant Field Values
-
BOUNDARY_CONDITION_ZERO
public static final int BOUNDARY_CONDITION_ZERO
- See Also:
- Constant Field Values
-
BOUNDARY_CONDITION_PERIODIC
public static final int BOUNDARY_CONDITION_PERIODIC
- See Also:
- Constant Field Values
-
INITIAL_SHAPE_SINUSOIDAL
public static final int INITIAL_SHAPE_SINUSOIDAL
- See Also:
- Constant Field Values
-
INITIAL_SHAPE_GAUSSIAN
public static final int INITIAL_SHAPE_GAUSSIAN
- See Also:
- Constant Field Values
-
INITIAL_SHAPE_THERMAL
public static final int INITIAL_SHAPE_THERMAL
- See Also:
- Constant Field Values
-
INITIAL_SHAPE_KINK
public static final int INITIAL_SHAPE_KINK
- See Also:
- Constant Field Values
-
INITIAL_SHAPE_BREATHER
public static final int INITIAL_SHAPE_BREATHER
- See Also:
- Constant Field Values
-
INITIAL_MODE_FIRST
public static final int INITIAL_MODE_FIRST
- See Also:
- Constant Field Values
-
INITIAL_MODE_SECOND
public static final int INITIAL_MODE_SECOND
- See Also:
- Constant Field Values
-
INITIAL_MODE_FOURTH
public static final int INITIAL_MODE_FOURTH
- See Also:
- Constant Field Values
-
INITIAL_MODE_EIGHTH
public static final int INITIAL_MODE_EIGHTH
- See Also:
- Constant Field Values
-
INITIAL_MODE_SIXTEENTH
public static final int INITIAL_MODE_SIXTEENTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultView
public View getDefaultView()
Description copied from class:Exhibit3DReturns the default View of this Exhibit. In the Exhibit3D class, the return value is a basicView3D.- Overrides:
getDefaultViewin classExhibit3D
-
getCreateAnimation
public Animation getCreateAnimation(View view)
Description copied from class:ExhibitThis method is called to "create" the Exhibit. It should return an animation that will show the process of creating the Exhibit, whatever that means. The animation is run when the Exhibit is first shown on the screen (in the 3dxm shell program) and when the "Create" action command is invoked. If the return value is null, then there is no creation animation for this exhibit. If the return value is non-null, then it can be expected that the animation will be installed in the View's Display.- Overrides:
getCreateAnimationin classExhibit- Parameters:
view- A View that is displaying this Exhibit. The animation, if any, that is returned by this method will be installed in the View's display. If the view is null, than a creation animation that can run independently of a view could be returned.- Returns:
- A creation animation for the given View of this Exhibit. The return value can be null to indicate that no creation animation is to be run.
-
getSettingsCommandsForView
public ActionList getSettingsCommandsForView(View view)
Description copied from class:ExhibitReturns a list of "settings commands" that can be applied to this Exibit, when displayed in the specified View.The items in the returned list must implement the ActionItem interface and generally belong to one of the classes
AbstractActionVMM,ToggleAction,ActionRadioGroup, orActionList. Null items represent separators. The idea is that the list items will be added to a menu or otherwise presented to the user so that the user can invoke the commands (with ActionList items representing submenus).In this top-level Exhibit class, the list contains several commands that call up dialogs where the user can change various settings. (These include: "Set Parameters", "Set Morphing", "Set Number of Frames", and "Set Visible Ranges".) Note that for these commands, the View parameter is used simply to get the View's Display, which is used as the parent of the dialog.
In general, when overriding this method, subclasses should call "super.getSettingsCommandsForView()" to obtain a list of commands from the superclass. It can then add additional commands or remove or disable commands that are in the list from the superclass.
- Overrides:
getSettingsCommandsForViewin classExhibit
-
getDefaultTransform
public Transform getDefaultTransform(View view)
Description copied from class:Exhibit3DReturns the default transform for use in the specified View. If the View is an instance of theView3Dclass, then aTransform3Dobject is returned; this object is constructed from the exhibit's default viewpoint and default window. If the view is not a View3D, then a 2DTransformis returned that is constructed using the exhibit's default window only.- Overrides:
getDefaultTransformin classExhibit3D- Parameters:
view- The View is provided as a parameter since there might be several types of View appropriate for a given exhibit, and they might require different Transforms. In particular, for example, a 3D View will require a 3D Transform.- Returns:
- In this top-level Exhibit class, the Transform that is returned
is a 2D Transform created by calling "new Transform(xmin,xmax,ymin,ymax)" where the values
of xmin, xmax, ymin, and ymax are taken from the array returned
by
getDefaultWindow. - See Also:
Exhibit3D.setDefaultViewpoint(Vector3D),Exhibit.setDefaultWindow(double, double, double, double)
-
-
DMelt 3.0 © DataMelt by jWork.ORG