com.altair.hwm.beans.hm
Class HMView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.altair.hwm.beans.utils.HWMBasePanel
                      extended by com.altair.hwm.beans.hm.HMView
All Implemented Interfaces:
HWMEventListener, IHWMControl, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Externalizable, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class HMView
extends HWMBasePanel
implements java.io.Externalizable, java.awt.event.ActionListener

Title: HMView

Description: This bean allows the user to select a view (i.e. iso1, front etc.) of the model in HyperMesh

Company: Altair Engineering, Inc.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
static int METH_VIEW_BOTTOM
          The id for ShowBottomView method
static int METH_VIEW_CCW
          The id for ShowCounterClockwiseView method
static int METH_VIEW_CW
          The id for ShowClockwiseView method
static int METH_VIEW_FRONT
          The id for ShowFrontView method
static int METH_VIEW_ISO1
          The id for ShowISO1View method
static int METH_VIEW_LEFT
          The id for ShowLeftView method
static int METH_VIEW_REAR
          The id for ShowRearView method
static int METH_VIEW_REVERSE
          The id for ShowReverseView method
static int METH_VIEW_RIGHT
          The id for ShowRightView method
static int METH_VIEW_TOP
          The id for ShowTopView method
static java.lang.String PROP_SESSION_NAME
          The property name for the session name used to communicate with HyperMesh
static java.lang.String VERSION
          The version ID for this component
static java.lang.String VIEW_BOTTOM
          The bottom view of the model
static java.lang.String VIEW_CCW
          The counter-clockwise view of the model
static java.lang.String VIEW_CW
          The clockwise view of the model
static java.lang.String VIEW_FRONT
          The front view of the model
static java.lang.String VIEW_ISO1
          The ISO1 view of the model
static java.lang.String VIEW_LEFT
          The left view of the model
static java.lang.String VIEW_REAR
          The rear view of the model
static java.lang.String VIEW_REVERSE
          The reverse view of the model
static java.lang.String VIEW_RIGHT
          The right view of the model
static java.lang.String VIEW_TOP
          The top view of the model
 
Fields inherited from class com.altair.hwm.beans.utils.HWMBasePanel
BASE_VERSION
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
HMView()
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvt)
          Action Performed event is fired when any of the buttons are clicked
 void Disable()
          Disables the UI
 void Enable()
          Enables the UI
 java.lang.String GetBottomViewLabel()
          Gets the bottom view btn label
 java.lang.String GetClockwiseViewLabel()
          Gets the CW view btn label
 java.lang.String GetCounterClockwiseViewLabel()
          Gets the CCW view btn label
 java.lang.String GetFrontViewLabel()
          Gets the front view btn label
 java.lang.String GetISO1ViewLabel()
          Gets the ISO1 view btn label
 java.lang.String GetLeftViewLabel()
          Gets the left view btn label
 java.lang.String GetRearViewLabel()
          Gets the rear view btn label
 java.lang.String GetReverseViewLabel()
          Gets the reverse view btn label
 java.lang.String GetRightViewLabel()
          Gets the right view btn label
 java.lang.String GetSessionName()
          Returns the session name for HM communication
 java.lang.String GetTopViewLabel()
          Gets the top view btn label
 void readExternal(java.io.ObjectInput objInput)
          Loads the version and then calls the appropriate read function for the version
 void ReadProperties()
          Get the required properties from the datamodel and initialize self
 void ReadVersion1_0(java.io.ObjectInput objInput)
          Load the properties that were saved for version 1.0
 void SaveProperties()
          Save the required properties in the datamodel (so that they persist)
 void SetBottomViewLabel(java.lang.String strLabel)
          Sets the bottom view btn label
 void SetClockwiseViewLabel(java.lang.String strLabel)
          Sets the CW view btn label
 void SetCounterClockwiseViewLabel(java.lang.String strLabel)
          Sets the CCW view btn label
 void setEnabled(boolean bEnable)
          Enables/disable the UI
 void SetFrameWork(IHWMFrameWork hwmFrameWork)
          Overrides the IHWMControl's SetHWMFrameWork to create all the necessary hm bean's comm classes
 void SetFrontViewLabel(java.lang.String strLabel)
          Sets the front view btn label
 void SetISO1ViewLabel(java.lang.String strLabel)
          Sets the ISO1 view btn label
 void SetLeftViewLabel(java.lang.String strLabel)
          Sets the left view btn label
 void SetRearViewLabel(java.lang.String strLabel)
          Sets the rear view btn label
 void SetReverseViewLabel(java.lang.String strLabel)
          Sets the reverse view btn label
 void SetRightViewLabel(java.lang.String strLabel)
          Sets the right view btn label
 void SetSessionName(java.lang.String strSessionName)
          Sets the session name for HM communication
 void SetTopViewLabel(java.lang.String strLabel)
          Sets the top view btn label
 void ShowBottomView()
          Shows the bottom view of a model
 void ShowClockwiseView()
          Shows the clockwise view of a model
 void ShowCounterClockwiseView()
          Shows the counter clockwise view of a model
 void ShowFrontView()
          Shows the front view of a model
 void ShowISO1View()
          Shows the ISO1 view of a model
 void ShowLeftView()
          Shows the left view of a model
 void ShowRearView()
          Shows the rear view of a model
 void ShowReverseView()
          Shows the reverse view of a model
 void ShowRightView()
          Shows the rightside view of a model
 void ShowTopView()
          Shows the top view of a model
 void writeExternal(java.io.ObjectOutput objOutput)
          Save the persistent properties
 
Methods inherited from class com.altair.hwm.beans.utils.HWMBasePanel
addHWMCmdEventListener, GetBeanName, GetFrameWork, HWMEventCallback, OnExit, Play, removeHWMCmdEventListener, Run, setBackground, SetBeanName, setFont, setForeground
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
The version ID for this component

See Also:
Constant Field Values

PROP_SESSION_NAME

public static final java.lang.String PROP_SESSION_NAME
The property name for the session name used to communicate with HyperMesh

See Also:
Constant Field Values

METH_VIEW_LEFT

public static final int METH_VIEW_LEFT
The id for ShowLeftView method

See Also:
Constant Field Values

METH_VIEW_RIGHT

public static final int METH_VIEW_RIGHT
The id for ShowRightView method

See Also:
Constant Field Values

METH_VIEW_TOP

public static final int METH_VIEW_TOP
The id for ShowTopView method

See Also:
Constant Field Values

METH_VIEW_BOTTOM

public static final int METH_VIEW_BOTTOM
The id for ShowBottomView method

See Also:
Constant Field Values

METH_VIEW_FRONT

public static final int METH_VIEW_FRONT
The id for ShowFrontView method

See Also:
Constant Field Values

METH_VIEW_REAR

public static final int METH_VIEW_REAR
The id for ShowRearView method

See Also:
Constant Field Values

METH_VIEW_ISO1

public static final int METH_VIEW_ISO1
The id for ShowISO1View method

See Also:
Constant Field Values

METH_VIEW_REVERSE

public static final int METH_VIEW_REVERSE
The id for ShowReverseView method

See Also:
Constant Field Values

METH_VIEW_CW

public static final int METH_VIEW_CW
The id for ShowClockwiseView method

See Also:
Constant Field Values

METH_VIEW_CCW

public static final int METH_VIEW_CCW
The id for ShowCounterClockwiseView method

See Also:
Constant Field Values

VIEW_LEFT

public static final java.lang.String VIEW_LEFT
The left view of the model

See Also:
Constant Field Values

VIEW_TOP

public static final java.lang.String VIEW_TOP
The top view of the model

See Also:
Constant Field Values

VIEW_REAR

public static final java.lang.String VIEW_REAR
The rear view of the model

See Also:
Constant Field Values

VIEW_ISO1

public static final java.lang.String VIEW_ISO1
The ISO1 view of the model

See Also:
Constant Field Values

VIEW_CW

public static final java.lang.String VIEW_CW
The clockwise view of the model

See Also:
Constant Field Values

VIEW_RIGHT

public static final java.lang.String VIEW_RIGHT
The right view of the model

See Also:
Constant Field Values

VIEW_BOTTOM

public static final java.lang.String VIEW_BOTTOM
The bottom view of the model

See Also:
Constant Field Values

VIEW_FRONT

public static final java.lang.String VIEW_FRONT
The front view of the model

See Also:
Constant Field Values

VIEW_REVERSE

public static final java.lang.String VIEW_REVERSE
The reverse view of the model

See Also:
Constant Field Values

VIEW_CCW

public static final java.lang.String VIEW_CCW
The counter-clockwise view of the model

See Also:
Constant Field Values
Constructor Detail

HMView

public HMView()
Constructor

Method Detail

SetFrameWork

public void SetFrameWork(IHWMFrameWork hwmFrameWork)
Overrides the IHWMControl's SetHWMFrameWork to create all the necessary hm bean's comm classes

Specified by:
SetFrameWork in interface IHWMControl
Overrides:
SetFrameWork in class HWMBasePanel
Parameters:
hwmFrameWork - The interface which allows the communication between beans and the container frame

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvt)
Action Performed event is fired when any of the buttons are clicked

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
actionEvt - The action event object (See Java docs for help)

ShowLeftView

public void ShowLeftView()
Shows the left view of a model


ShowTopView

public void ShowTopView()
Shows the top view of a model


ShowRearView

public void ShowRearView()
Shows the rear view of a model


ShowISO1View

public void ShowISO1View()
Shows the ISO1 view of a model


ShowClockwiseView

public void ShowClockwiseView()
Shows the clockwise view of a model


ShowRightView

public void ShowRightView()
Shows the rightside view of a model


ShowBottomView

public void ShowBottomView()
Shows the bottom view of a model


ShowFrontView

public void ShowFrontView()
Shows the front view of a model


ShowReverseView

public void ShowReverseView()
Shows the reverse view of a model


ShowCounterClockwiseView

public void ShowCounterClockwiseView()
Shows the counter clockwise view of a model


SaveProperties

public void SaveProperties()
Save the required properties in the datamodel (so that they persist)

Overrides:
SaveProperties in class HWMBasePanel

ReadProperties

public void ReadProperties()
Get the required properties from the datamodel and initialize self

Overrides:
ReadProperties in class HWMBasePanel

writeExternal

public void writeExternal(java.io.ObjectOutput objOutput)
                   throws java.io.IOException
Save the persistent properties

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class HWMBasePanel
Parameters:
objOutput - The stream to which data will be written
Throws:
java.io.IOException

ReadVersion1_0

public void ReadVersion1_0(java.io.ObjectInput objInput)
                    throws java.lang.ClassNotFoundException,
                           java.io.IOException
Load the properties that were saved for version 1.0

Parameters:
objInput - The stream from which data will be read
Throws:
IOException, - ClassNotFoundException
java.lang.ClassNotFoundException
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput objInput)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
Loads the version and then calls the appropriate read function for the version

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class HWMBasePanel
Parameters:
objInput - The stream from which data will be read
Throws:
IOException, - ClassNotFoundException
java.lang.ClassNotFoundException
java.io.IOException

SetSessionName

public void SetSessionName(java.lang.String strSessionName)
Sets the session name for HM communication

Parameters:
strSessionName - The session name for HM Comm

GetSessionName

public java.lang.String GetSessionName()
Returns the session name for HM communication

Returns:
String The session name for HM Comm

Enable

public void Enable()
Enables the UI

Overrides:
Enable in class HWMBasePanel

Disable

public void Disable()
Disables the UI

Overrides:
Disable in class HWMBasePanel

setEnabled

public void setEnabled(boolean bEnable)
Enables/disable the UI

Overrides:
setEnabled in class javax.swing.JComponent
Parameters:
bEnable - If true the UI is enabled else disabled

SetBottomViewLabel

public void SetBottomViewLabel(java.lang.String strLabel)
Sets the bottom view btn label

Parameters:
strLabel - The new label for the "Bottom View" button

GetBottomViewLabel

public java.lang.String GetBottomViewLabel()
Gets the bottom view btn label

Returns:
String The label for the "Bottom View" button

SetCounterClockwiseViewLabel

public void SetCounterClockwiseViewLabel(java.lang.String strLabel)
Sets the CCW view btn label

Parameters:
strLabel - The new label for the "Counter Clockwise View" button

GetCounterClockwiseViewLabel

public java.lang.String GetCounterClockwiseViewLabel()
Gets the CCW view btn label

Returns:
String The label for the "Counter Clockwise View" button

SetClockwiseViewLabel

public void SetClockwiseViewLabel(java.lang.String strLabel)
Sets the CW view btn label

Parameters:
strLabel - The new label for the "Clockwise View" button

GetClockwiseViewLabel

public java.lang.String GetClockwiseViewLabel()
Gets the CW view btn label

Returns:
String The label for the "Clockwise View" button

SetFrontViewLabel

public void SetFrontViewLabel(java.lang.String strLabel)
Sets the front view btn label

Parameters:
strLabel - The new label for the "Front View" button

GetFrontViewLabel

public java.lang.String GetFrontViewLabel()
Gets the front view btn label

Returns:
String The label for the "Front View" button

SetISO1ViewLabel

public void SetISO1ViewLabel(java.lang.String strLabel)
Sets the ISO1 view btn label

Parameters:
strLabel - The new label for the "ISO1 View" button

GetISO1ViewLabel

public java.lang.String GetISO1ViewLabel()
Gets the ISO1 view btn label

Returns:
String The label for the "ISO1 View" button

SetLeftViewLabel

public void SetLeftViewLabel(java.lang.String strLabel)
Sets the left view btn label

Parameters:
strLabel - The new label for the "Left View" button

GetLeftViewLabel

public java.lang.String GetLeftViewLabel()
Gets the left view btn label

Returns:
String The label for the "Left View" button

SetRearViewLabel

public void SetRearViewLabel(java.lang.String strLabel)
Sets the rear view btn label

Parameters:
strLabel - The new label for the "Rear View" button

GetRearViewLabel

public java.lang.String GetRearViewLabel()
Gets the rear view btn label

Returns:
String The label for the "Rear View" button

SetReverseViewLabel

public void SetReverseViewLabel(java.lang.String strLabel)
Sets the reverse view btn label

Parameters:
strLabel - The new label for the "Reverse View" button

GetReverseViewLabel

public java.lang.String GetReverseViewLabel()
Gets the reverse view btn label

Returns:
String The label for the "Reverse View" button

SetRightViewLabel

public void SetRightViewLabel(java.lang.String strLabel)
Sets the right view btn label

Parameters:
strLabel - The new label for the "Right View" button

GetRightViewLabel

public java.lang.String GetRightViewLabel()
Gets the right view btn label

Returns:
String The label for the "Right View" button

SetTopViewLabel

public void SetTopViewLabel(java.lang.String strLabel)
Sets the top view btn label

Parameters:
strLabel - The new label for the "Top View" button

GetTopViewLabel

public java.lang.String GetTopViewLabel()
Gets the top view btn label

Returns:
String The label for the "Top View" button