|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vmm.core.View vmm.core3D.View3D vmm.conformalmap.ConformalMap.ConformalMapView
public static class ConformalMap.ConformalMapView
A class that defines the default view for a ConformalMap. This subclass of View3D uses
the enableThreeD property of View3D -- that property was introduced to make it possible to
switch back and forth between 2D and 3D, which is something that is needed for conformal maps
(and possibly nowhere else). See View3D.setEnableThreeD(boolean)
.
Field Summary | |
---|---|
protected ToggleAction |
use3DToggle
|
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 | |
---|---|
ConformalMap.ConformalMapView()
|
Method Summary | |
---|---|
void |
addDecoration(Decoration d)
Add a decoration that will appear in this View only. |
ActionList |
getActions()
Generates a list of "Action commands" that can be applied to this View. |
MouseTask |
getDefaultMouseTask()
Overridden to return a mouse task that lets the user switch between the view of the domain grid and the view of the value grid by shift-right-clicking (or shift-command-clicking on a Macintosh). |
boolean |
getDrawValueGrid()
Tells whether the value grid (the image of the function) is currently displayed, as opposed to the domain grid. |
boolean |
getShowBothArgAndValue()
|
boolean |
getUse3D()
|
boolean |
getUseColor()
Tells whether grid lines are drawn in colors. |
void |
readExtraXML(org.w3c.dom.Element viewInfo)
Overridden to read back the extra transform info. |
void |
removeFigures()
|
void |
setBackground(java.awt.Color c)
Set the background color that will be used for rendering this view. |
void |
setDisplay(Display display)
Set the display where this view draws its exhibit. |
void |
setExhibit(Exhibit exhibit)
Set the exhibit shown in this view. |
void |
setShowAxes(boolean show)
If set to true, an Axes decoration is added to the View. |
void |
setShowBothArgAndValue(boolean showBothArgAndValue)
|
void |
setUse3D(boolean use3D)
Sets whether to enable 3D in the view; this method is really not meant to be called except by this class. |
void |
setUseColor(boolean useColor)
Set whether to use a range of colors for the grid lines. |
void |
takeExhibit(View view,
boolean shareTransform)
Set this View to view the same exhibit as another specififed view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ToggleAction use3DToggle
Constructor Detail |
---|
public ConformalMap.ConformalMapView()
Method Detail |
---|
public void removeFigures()
public void setExhibit(Exhibit exhibit)
View3D
View3D.transform3D
and to manage stereographic viewing if necessary.
setExhibit
in class View3D
exhibit
- The exhibit to be installed in this View. The value can be null.
In that case, no Exhibit will be associated with the View after the method executes.
If exhibit is already installed in this View, then no changes are made.Display.install(View, Exhibit)
public boolean getUseColor()
public void setUseColor(boolean useColor)
public boolean getDrawValueGrid()
public MouseTask getDefaultMouseTask()
getDefaultMouseTask
in class View3D
BasicMouseTask2D
, which allows
dragging and zooming of the 2D window.MouseTask
public ActionList getActions()
View
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.
getActions
in class View
public void takeExhibit(View view, boolean shareTransform)
View3D
takeExhibit
in class View3D
view
- The view whose Exhibit is to be copied. After the method is called, both views will
be drawing the same exhibit. If null, then the exhibit of this view will also be set to null.shareTransform
- If true, the two views will share the same Transform, so that changes made to the transform in
one will also result in a change in the other.public boolean getUse3D()
public void setUse3D(boolean use3D)
public boolean getShowBothArgAndValue()
public void setShowBothArgAndValue(boolean showBothArgAndValue)
public void setDisplay(Display display)
View3D
setDisplay
in class View3D
Display.install(View, Exhibit)
public void setBackground(java.awt.Color c)
View
Exhibit.getDefaultBackground()
; if a null exhibit is installed, the background color
is set to white. So, this method is only for adjusting the background color while an exhibit is displayed.
Changing the background color will cause a redraw.
In addition to setting the background color, this method will set the foreground color to either black or white, depending on whehter the background color is light or dark. It is possible to change the foreground color to something else after setting the background.
setBackground
in class View3D
public void setShowAxes(boolean show)
View
View.createAxes()
.
setShowAxes
in class View
public void addDecoration(Decoration d)
View
forceRedraw
.
addDecoration
in interface Decorateable
addDecoration
in class View
d
- The decoration to be added. If this is null or if it has already been added to the View,
then nothing is done. The View is added
as a ChangeListener to the decoration. This will cause the View to be automatically
redrawn when the Decoration is changed.public void readExtraXML(org.w3c.dom.Element viewInfo) throws java.io.IOException
View3D
readExtraXML
in class View3D
viewInfo
- The <view> element from the XML file that contains the information about this
view. Some methods from the SaveAndRestore
class might be useful for getting the data.
java.io.IOException
- If an error is found, an exception of type IOException should be thrown.
This will abort the whole processing of the XML file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |