vmm.latticemodel
Class LatticeModel.LMView
java.lang.Object
vmm.core.View
vmm.core3D.View3D
vmm.latticemodel.LatticeModel.LMView
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
- Direct Known Subclasses:
- FermiPastaUlam.FPUView, Toda.TodaView
- Enclosing class:
- LatticeModel
public class LatticeModel.LMView
- extends View3D
Fields inherited from class vmm.core3D.View3D |
CROSS_EYE_STEREO_VIEW, leftStereographOSI, MONOCULAR_VIEW, projectionCommands, RED_GREEN_STEREO_VIEW, rightStereographOSI, set3DViewOptionsAction, setViewpointAction, stereoComposite, STEREOGRAPH_VIEW, transform3D, viewStyleCommands |
Fields inherited from class vmm.core.View |
backgroundCommands, buildAnimation, buildingImageForFilmstrip, currentGraphics, decorations, directOffscreenDrawing, fullOSI, needsRedraw, offscreenImageType, parameters, showAxesAction |
Methods inherited from class vmm.core3D.View3D |
addExtraXML, clearOSI, clip, createAxes, createOSI, drawCollaredCurve, drawCollaredCurve, drawCollaredCurve, drawCurve, drawCurve, drawCurve, drawDot, drawLine, drawPixel, drawPixelDirect, drawPixels, drawString, drawWireframeSurface, finish, finishOSIDraw, finishStereoView, getEnableThreeD, getOrthographicProjection, getSavedAuxiliaryTransformForEnableThreeD, getSettingsCommands, getTransform3D, getViewCommands, getViewPoint, getViewStyle, getViewUp, moveStereographImages, needsNewOSI, prepareOSIForDrawing, putOSI, readExtraXML, setBackground, setEnableThreeD, setExhibit, setOrthographicProjection, setSavedAuxiliaryTransformForEnableThreeD, setTransform, setUpForLeftEye, setUpForRightEye, setViewPoint, setViewStyle, setViewUp, setWindowForUseWhileThreeDDisabled, stateChanged, stereographLeftEyeRect, stereographRightEyeRect, takeExhibit |
Methods inherited from class vmm.core.View |
addDecoration, addParameter, beginDrawToOffscreenImage, clearDecorations, doDraw, drawCurve, drawCurve, drawCurve, drawDot, drawLine, drawLine, drawLineDirect, drawPixel, drawPixel, drawPixels, drawString, drawString, endDrawToOffscreenImage, fillRectDirect, forceRedraw, getActionsForViewAndExhibit, getAdditionalAnimations, getAdditionalAnimationsForViewAndExhibit, getAntialiased, getApplyGraphics2DTransform, getBackground, getColor, getDecorations, getDisplay, getExhibit, getFastDrawing, getForeground, getImage, getName, getParameterByName, getParameters, getPreserveAspect, getRequestedWindow, getSettingsCommandsForViewAndExhibit, getShowAxes, getStatusText, getTitle, getTransform, getViewAndExhibitParameters, getWindow, removeDecoration, removeParameter, render, setAntialiased, setApplyGraphics2DTransform, setColor, setFastDrawing, setFastDrawing, setForeground, setName, setPreserveAspect, setShowAxes, setStrokeSizeMultiplier, setWindow, setWindow |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
restartAction
protected AbstractActionVMM restartAction
stopAction
protected AbstractActionVMM stopAction
continueAction
protected AbstractActionVMM continueAction
stepAction
protected AbstractActionVMM stepAction
displayStyleSelect
protected ActionRadioGroup displayStyleSelect
initialModeSelect
protected ActionRadioGroup initialModeSelect
initialShapeSelect
protected ActionRadioGroup initialShapeSelect
boundaryConditionSelect
protected ActionRadioGroup boundaryConditionSelect
showNormalModeToggle
protected ToggleAction showNormalModeToggle
showControlPanelToggle
protected ToggleAction showControlPanelToggle
latticeLength
protected RealParam latticeLength
latticeDensity
protected RealParam latticeDensity
amplitude
protected RealParam amplitude
numberOfNodes
protected IntegerParam numberOfNodes
latticeData
protected LatticeModel.LatticeData latticeData
LatticeModel.LMView
public LatticeModel.LMView()
getNumberOfNodes
public int getNumberOfNodes()
getLatticeData
public LatticeModel.LatticeData getLatticeData()
getDisplayStyle
public int getDisplayStyle()
setDisplayStyle
public void setDisplayStyle(int displayStyle)
getBoundaryCondition
public int getBoundaryCondition()
setBoundaryCondition
public void setBoundaryCondition(int boundaryCondition)
getInitialShape
public int getInitialShape()
setInitialShape
public void setInitialShape(int initialShape)
getInitialMode
public int getInitialMode()
setInitialMode
public void setInitialMode(int initialMode)
getDefaultMouseTask
public MouseTask getDefaultMouseTask()
- Description copied from class:
View3D
- Returns a MouseTase of type
BasicMouseTask3D
, which is approriate for most 3D views.
- Overrides:
getDefaultMouseTask
in class View3D
- Returns:
- The value returned in the top-level View class is a
BasicMouseTask2D
, which allows
dragging and zooming of the 2D window. - See Also:
MouseTask
getActions
public ActionList getActions()
- Description copied from class:
View
- Generates a list of "Action commands" that can be applied to this View.
The commands must implement the
ActionItem
interface and will generally
belong to one of the classes AbstractActionVMM
,
ToggleAction
, ActionRadioGroup
, or
ActionList
. 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).
Null values can occur in the list; they are meant to become separaters in the menu.
Subclasses that override this method should generally call super.getActionss() and add their
commands to the list retured by that method. This top-level View class does not define any Action
commands; the return value is an empty non-null ArrayList.
- Overrides:
getActions
in class View
getShowControlPanel
public boolean getShowControlPanel()
setShowControlPanel
public void setShowControlPanel(boolean showControlPanel)
getShowNormalModeDisplay
public boolean getShowNormalModeDisplay()
setShowNormalModeDisplay
public void setShowNormalModeDisplay(boolean showNormalModeDisplay)
parameterChanged
public void parameterChanged(Parameter param,
java.lang.Object oldValue,
java.lang.Object newValue)
- Description copied from class:
View
- This method will be called automatically when a parameter that has been added to this View
is changed. It is not meant to be called directly. Note that in fact, this method
simply calls
forceRedraw
.
- Specified by:
parameterChanged
in interface Parameterizable
- Overrides:
parameterChanged
in class View
- Parameters:
param
- The Parmeter whose value has been set.oldValue
- The previous value of the parameter.newValue
- The new, current value of the parameter. This is not
necessarily guaranteed to be different from the old value (although it
is for parameters definedin the VMM core).- See Also:
View.forceRedraw()
setDisplay
public void setDisplay(Display display)
- Description copied from class:
View3D
- Set the display where this view draws its exhibit. This is overridden in this class
to put the display into stereograpic view mode, if the view is currently set to
use sterographic viewing.
- Overrides:
setDisplay
in class View3D
- See Also:
Display.install(View, Exhibit)