|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.altair.hwm.beans.utils.HWMBasePanel
com.altair.hwm.beans.hm.HMReflect
public class HMReflect
Title: HMReflect
Description: This bean allows the user to reflect the elements/surfaces of the model in HyperMesh
Company: Altair Engineering, Inc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
static int |
METH_REFLECT
Methods ids that fire HWMCmdEvent |
static java.lang.String |
PROP_BASE_NODE
The property name for the base node |
static java.lang.String |
PROP_BASE_POINT
The property name for the base point |
static java.lang.String |
PROP_COPY_REFLECT
The property name for the copy reflect property |
static java.lang.String |
PROP_NODE1
The property name for the first node (when N1,N2,N3 is the type of relection) |
static java.lang.String |
PROP_NODE2
The property name for the second node (when N1,N2,N3 is the type of relection) |
static java.lang.String |
PROP_NODE3
The property name for the third node (when N1,N2,N3 is the type of relection) |
static java.lang.String |
PROP_POINT1
The property name for the first point (when N1,N2,N3 is the type of relection) |
static java.lang.String |
PROP_POINT2
The property name for the second point (when N1,N2,N3 is the type of relection) |
static java.lang.String |
PROP_POINT3
The property name for the third point (when N1,N2,N3 is the type of relection) |
static java.lang.String |
PROP_REFLECT_ABOUT
The property name for the reflection type |
static java.lang.String |
PROP_SESSION_NAME
The property name for the session name used to communicate with HyperMesh |
static java.lang.String |
REFLECT_N1N2N3
Reflection is done about a vector defined by N1, N2 and N3 |
static java.lang.String |
REFLECT_X_AXIS
Reflection is done about X axis |
static java.lang.String |
REFLECT_Y_AXIS
Reflection is done about Y axis |
static java.lang.String |
REFLECT_Z_AXIS
Reflection is done about Z axis |
static java.lang.String |
VERSION
The version ID for this component |
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 | |
---|---|
HMReflect()
Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvt)
Called when the combo box selecion is changed, when select is pressed or when reflect is pressed |
void |
Disable()
This is called when the user wants to disable the reflect button. |
void |
Enable()
Enable the reflect button. |
java.lang.String |
GetBaseNode()
Gets the selected base node's id |
HWMPoint |
GetBasePoint()
Gets the base point |
java.lang.String |
GetCopyBtnLabel()
Gets the label of "Copy" chk box |
java.lang.String |
GetNode1()
Gets the first selected node's id |
java.lang.String |
GetNode2()
Gets the second selected node's id |
java.lang.String |
GetNode3()
Gets the third selected node's id |
HWMPoint |
GetPoint1()
Gets the first point |
HWMPoint |
GetPoint2()
Gets the second point |
HWMPoint |
GetPoint3()
Gets the third point |
java.lang.String |
GetReflectBtnLabel()
Gets label of "Reflect" button |
java.lang.String |
GetReflectType()
Gets the reflect type |
java.lang.String |
GetReflectTypeLabel()
Gets label of "Reflect Type" combo box |
java.lang.String |
GetSelectBtnLabel()
Gets label of "Select" button |
java.lang.String |
GetSelectedLabel()
Gets label of "Selected Nodes" label |
java.lang.String |
GetSessionName()
Returns the session name for HM communication |
boolean |
IsCopy()
Returns true if the original model should also be shown along with reflection else false. |
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 |
Reflect()
Performs the reflection |
void |
SaveProperties()
Save the required properties in the datamodel (so that they persist) |
void |
setBackground(java.awt.Color colBckGround)
Sets the background color |
void |
SetBaseNode(java.lang.String strNodeID)
Sets the selected base node's id |
void |
SetBasePoint(HWMPoint hwmPoint)
Sets the base point |
void |
SetCopy(boolean bCopy)
Sets/Resets the copy before reflect flag |
void |
SetCopyBtnLabel(java.lang.String strLabelName)
Sets the label of "Copy" chk box |
void |
setEnabled(boolean bEnable)
This is called when the user wants to enable/disable the reflect button. |
void |
setFont(java.awt.Font font)
Sets the font for all the controls in the panel |
void |
setForeground(java.awt.Color colForeGround)
Sets the foreground color |
void |
SetFrameWork(IHWMFrameWork hwmFrameWork)
Overrides the IHWMControl's SetHWMFrameWork to create all the necessary hm bean's comm classes |
void |
SetNode1(java.lang.String strNodeID)
Sets the first selected node's id |
void |
SetNode2(java.lang.String strNodeID)
Sets the second selected node's id |
void |
SetNode3(java.lang.String strNodeID)
Sets the third selected node's id |
void |
SetPoint1(HWMPoint hwmPoint)
Sets the first point |
void |
SetPoint2(HWMPoint hwmPoint)
Sets the second point |
void |
SetPoint3(HWMPoint hwmPoint)
Sets the third point |
void |
SetReflectBtnLabel(java.lang.String strLabelName)
Sets the label of "Reflect" button |
void |
SetReflectType(java.lang.String strReflectType)
Sets the reflect type |
void |
SetReflectTypeLabel(java.lang.String strLabelName)
Sets the label of "Reflect type" combo box |
void |
SetSelectBtnLabel(java.lang.String strLabelName)
Sets the label of "Select" button |
void |
SetSelectedLabel(java.lang.String strLabelName)
Sets the label of "Selected Nodes" label |
void |
SetSessionName(java.lang.String strSessionName)
Sets the session name for HM communication |
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, SetBeanName |
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 |
---|
public static final java.lang.String VERSION
public static final java.lang.String PROP_SESSION_NAME
public static final java.lang.String PROP_REFLECT_ABOUT
public static final java.lang.String PROP_COPY_REFLECT
public static final java.lang.String PROP_NODE1
public static final java.lang.String PROP_NODE2
public static final java.lang.String PROP_NODE3
public static final java.lang.String PROP_BASE_NODE
public static final java.lang.String PROP_POINT1
public static final java.lang.String PROP_POINT2
public static final java.lang.String PROP_POINT3
public static final java.lang.String PROP_BASE_POINT
public static final int METH_REFLECT
public static final java.lang.String REFLECT_N1N2N3
public static final java.lang.String REFLECT_X_AXIS
public static final java.lang.String REFLECT_Y_AXIS
public static final java.lang.String REFLECT_Z_AXIS
Constructor Detail |
---|
public HMReflect()
Method Detail |
---|
public void SetFrameWork(IHWMFrameWork hwmFrameWork)
SetFrameWork
in interface IHWMControl
SetFrameWork
in class HWMBasePanel
hwmFrameWork
- The interface which allows the communication
between beans and the container framepublic void SaveProperties()
SaveProperties
in class HWMBasePanel
public void ReadProperties()
ReadProperties
in class HWMBasePanel
public void writeExternal(java.io.ObjectOutput objOutput) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class HWMBasePanel
objOutput
- The stream to which data will be written
java.io.IOException
public void readExternal(java.io.ObjectInput objInput) throws java.lang.ClassNotFoundException, java.io.IOException
readExternal
in interface java.io.Externalizable
readExternal
in class HWMBasePanel
objInput
- The stream from which data will be read
IOException,
- ClassNotFoundException
java.lang.ClassNotFoundException
java.io.IOException
public void setFont(java.awt.Font font)
setFont
in class HWMBasePanel
font
- The new font for the panelpublic void setBackground(java.awt.Color colBckGround)
setBackground
in class HWMBasePanel
colBckGround
- background colorpublic void setForeground(java.awt.Color colForeGround)
setForeground
in class HWMBasePanel
colForeGround
- foreground colorpublic void actionPerformed(java.awt.event.ActionEvent actionEvt)
actionPerformed
in interface java.awt.event.ActionListener
actionEvt
- The action event object (See java docs for help)public void Reflect()
public void SetReflectType(java.lang.String strReflectType)
strReflectType
- sets the reflect type. It can be REFLECT_N1N2N3,
REFLECT_X_AXIS, REFLECT_Y_AXIS or REFLECT_Z_AXISpublic java.lang.String GetReflectType()
public void SetSessionName(java.lang.String strSessionName)
strSessionName
- The session name for HM Commpublic java.lang.String GetSessionName()
public void SetNode1(java.lang.String strNodeID) throws java.lang.Exception
strNodeID
- ID of first node selected
java.lang.Exception
public java.lang.String GetNode1()
public void SetNode2(java.lang.String strNodeID) throws java.lang.Exception
strNodeID
- ID of second node selected
java.lang.Exception
public java.lang.String GetNode2()
public void SetNode3(java.lang.String strNodeID) throws java.lang.Exception
strNodeID
- ID of third node selected
java.lang.Exception
public java.lang.String GetNode3()
public void SetBaseNode(java.lang.String strNodeID) throws java.lang.Exception
strNodeID
- ID of base node selected
java.lang.Exception
public java.lang.String GetBaseNode()
public void SetPoint1(HWMPoint hwmPoint)
hwmPoint
- The coordinates of the first pointpublic HWMPoint GetPoint1()
HWMPoint
- The coordinates of the first pointpublic void SetPoint2(HWMPoint hwmPoint)
hwmPoint
- The coordinates of the second pointpublic HWMPoint GetPoint2()
HWMPoint
- The coordinates of the second pointpublic void SetPoint3(HWMPoint hwmPoint)
hwmPoint
- The coordinates of the third pointpublic HWMPoint GetPoint3()
HWMPoint
- The coordinates of the third pointpublic void SetBasePoint(HWMPoint hwmPoint)
hwmPoint
- The coordinates of the base pointpublic HWMPoint GetBasePoint()
HWMPoint
- The coordinates of the base pointpublic void SetCopy(boolean bCopy)
bCopy
- true if the original model should also be shown along
with reflection else false.public boolean IsCopy()
public void Enable()
Enable
in class HWMBasePanel
public void Disable()
Disable
in class HWMBasePanel
public void setEnabled(boolean bEnable)
setEnabled
in class javax.swing.JComponent
public void SetReflectTypeLabel(java.lang.String strLabelName)
String
- label of "Reflect Type" combo boxpublic java.lang.String GetReflectTypeLabel()
public void SetCopyBtnLabel(java.lang.String strLabelName)
strLabelName
- label of "Copy" chk boxpublic java.lang.String GetCopyBtnLabel()
public void SetSelectBtnLabel(java.lang.String strLabelName)
strLabelName
- label of "Select" buttonpublic java.lang.String GetSelectBtnLabel()
public void SetReflectBtnLabel(java.lang.String strLabelName)
strLabelName
- label of "Reflect" buttonpublic java.lang.String GetReflectBtnLabel()
public void SetSelectedLabel(java.lang.String strLabelName)
strLabelName
- label of "Selected Nodes" labelpublic java.lang.String GetSelectedLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |