vmm.spacecurve
Class SpaceCurveView

java.lang.Object
  extended by vmm.core.View
      extended by vmm.core3D.View3D
          extended by vmm.spacecurve.SpaceCurveView
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
Direct Known Subclasses:
SpaceCurveParametric.SpaceCurveParametricView

public class SpaceCurveView
extends View3D

A View class for SpaceCurves. Adds a useReverseCollar property to a generic View3D.


Field Summary
protected  ToggleAction reverseCollarToggle
          A menu command for controlling the value of useReverseCollar.
protected  boolean useReverseCollar
          Used to determine whether the SpaceCurve exhibit in this View should be drawn with "revesed collars", which give the curve a thick and more three-dimensional appearance.
 
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
 
Constructor Summary
SpaceCurveView()
           
 
Method Summary
 ActionList getActions()
          Returns a list of actions for this view.
 boolean getUseReverseCollar()
          Get the current setting of the useReverseCollar property.
 void setUseReverseCollar(boolean useReverseCollar)
          Sets the value of the useReverseCollar property.
 
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, getDefaultMouseTask, getEnableThreeD, getOrthographicProjection, getSavedAuxiliaryTransformForEnableThreeD, getSettingsCommands, getTransform3D, getViewCommands, getViewPoint, getViewStyle, getViewUp, moveStereographImages, needsNewOSI, prepareOSIForDrawing, putOSI, readExtraXML, setBackground, setDisplay, 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, parameterChanged, 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
 

Field Detail

useReverseCollar

protected boolean useReverseCollar
Used to determine whether the SpaceCurve exhibit in this View should be drawn with "revesed collars", which give the curve a thick and more three-dimensional appearance.


reverseCollarToggle

protected ToggleAction reverseCollarToggle
A menu command for controlling the value of useReverseCollar. This is created in the getActions() method.

Constructor Detail

SpaceCurveView

public SpaceCurveView()
Method Detail

getUseReverseCollar

public boolean getUseReverseCollar()
Get the current setting of the useReverseCollar property.

See Also:
setUseReverseCollar(boolean)

setUseReverseCollar

public void setUseReverseCollar(boolean useReverseCollar)
Sets the value of the useReverseCollar property. When this property is true, the curve is drawn as a thick curve (or collar) in the foreground color, with a thin curve in the background color running down the middle. This gives a nice 3D appearance. When useReverseCollar is false, a one-pixel-wide curve is drawn. The default value of this property is false.


getActions

public ActionList getActions()
Returns a list of actions for this view. This method is overridden to add a ToggleAction for controlling the value of the useReverseCollar property.

Overrides:
getActions in class View
See Also:
setUseReverseCollar(boolean)