Class FDATI.ModelPanel
All Packages Class Hierarchy This Package Previous Next Index
Class FDATI.ModelPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----FDATI.ModelPanel
- public class ModelPanel
- extends Panel
Panel which contains the displayed model and controls for adding/removing
fixture points, specifying analysis options and submitting the added fixture
points for stability analysis.
Copyright (c) 1995, H. Robert Frost, Stanford University.
All rights reserved.
Copyright (c) 1996, H. Robert Frost, Enterprise Integration Technologies,
Inc. All rights reserved.
RESTRICTED RIGHTS LEGEND: Use, duplication or disclosure by the
Government is subject to restrictions as set forth in
subparagraph(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 252.227-7013 and in similar clauses in the
FAR and NASA FAR supplement.
This software is bound by the terms and conditions listed in the
attached LICENSE file.
-
parent
-
-
ModelPanel(FDATI, model, String, Color, Color)
- Creates a new ModelPanel from the specified FDATIapplet for the specified
model.
-
action(Event, Object)
-
-
action(ModelViewer, String)
- Called by ModelViewer when fixture points have been added or another
message event has occured (usually debugging event).
-
addSystemMessage(String)
- Adds a string message to the ModelPanel's TextArea.
-
removeFrame(Frame)
- Called by a child frame to remove itself from the frames list.
-
setDim(String)
- Sets the dimensionality analysis option.
-
setDir(String)
- Sets the directionality analysis option.
-
setDirVec(hpoint)
- Sets the direction vector for directional analysis.
-
setDisplayOptions(boolean, boolean, String)
- Changes the display options.
-
stop()
-
parent
public FDATI parent
ModelPanel
public ModelPanel(FDATI p,
model m,
String name,
Color bg,
Color button)
- Creates a new ModelPanel from the specified FDATIapplet for the specified
model.
- Parameters:
- p - FDATI from which this ModelPanel was created
- m - Model to be displayed
- name - Name of the model
addSystemMessage
public void addSystemMessage(String message)
- Adds a string message to the ModelPanel's TextArea.
- Parameters:
- message - Message to display.
action
public boolean action(Event evt,
Object arg)
- Overrides:
- action in class Component
stop
protected void stop()
removeFrame
public void removeFrame(Frame child)
- Called by a child frame to remove itself from the frames list.
setDim
public void setDim(String dim)
- Sets the dimensionality analysis option.
- Parameters:
- dim - String representing the dimensionality, either "3D" or
"planar"
setDir
public void setDir(String dir)
- Sets the directionality analysis option.
- Parameters:
- dim - String representing the directionality, either "Form Closure"
or "Directional"
setDirVec
public void setDirVec(hpoint vec)
- Sets the direction vector for directional analysis.
- Parameters:
- vec - An hpoint vector.
setDisplayOptions
public void setDisplayOptions(boolean edge,
boolean render,
String light)
- Changes the display options. If both edge and render are false, the
model will be rendered.
- Parameters:
- edge - Should edges be shown?
- render - Should faces be rendered?
- light - Direction of light vector, one of "north", "south", "east"
or "west".
action
public void action(ModelViewer viewer,
String message)
- Called by ModelViewer when fixture points have been added or another
message event has occured (usually debugging event).
- Parameters:
- viewer - AppModelViewer which has called the action method
- message - Message being sent by viewer
All Packages Class Hierarchy This Package Previous Next Index