public class CoordinatePanel extends ControlPanel implements ValueChangeListener
ControlPanel
with support for widgets that control
joint coordinate values.ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility
myProps
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
Constructor and Description |
---|
CoordinatePanel() |
CoordinatePanel(java.lang.String name) |
CoordinatePanel(java.lang.String name,
java.lang.String options) |
Modifier and Type | Method and Description |
---|---|
CoordinateWidget |
addCoordinateWidget(JointBase joint,
int coordIdx) |
CoordinateWidget |
addCoordinateWidget(JointBase joint,
java.lang.String coordName) |
CoordinateWidget |
addCoordinateWidget(java.lang.String label,
JointBase joint,
int coordIdx) |
CoordinateWidget |
addCoordinateWidget(java.lang.String label,
JointBase joint,
java.lang.String coordName) |
void |
addCoordinateWidgets(JointBase joint) |
MechModel |
getMechModel() |
void |
postscan(java.util.Deque<ScanToken> tokens,
CompositeComponent ancestor)
Performs any required post-scanning for this component.
|
boolean |
scanItem(ReaderTokenizer rtok,
java.util.Deque<ScanToken> tokens) |
void |
setMechModel(MechModel mech) |
void |
updateComponentCaches() |
void |
updateCoordinateWidgetList() |
void |
updateWidgetValues()
Update the value of all property widgets in this window and its owned
windows.
|
void |
updateWrapPaths() |
void |
valueChange(ValueChangeEvent e) |
actionPerformed, addGlobalValueChangeListener, addLabel, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidgets, connectToHierarchy, disconnectFromHierarchy, dispose, enableLiveUpdating, getAllPropertyInfo, getFrame, getGlobalValueChangeListeners, getHeight, getLocation, getPropertyPanel, getSize, getSoftReferences, getSynchronizeObject, getWidth, isLiveUpdatingEnabled, isScrollable, isVisible, locateRight, numWidgets, pack, postscanWidget, removeGlobalValueChangeListener, removeStalePropertyWidgets, scanWidget, setDefaultValues, setFocusableWindowState, setLocation, setLocation, setName, setScrollable, setSize, setSize, setSynchronizeObject, setVisible, updateReferences, write, writeWidget
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, copy, createTempFlag, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable
public CoordinatePanel()
public CoordinatePanel(java.lang.String name)
public CoordinatePanel(java.lang.String name, java.lang.String options)
public MechModel getMechModel()
public void setMechModel(MechModel mech)
public CoordinateWidget addCoordinateWidget(JointBase joint, java.lang.String coordName)
public CoordinateWidget addCoordinateWidget(java.lang.String label, JointBase joint, java.lang.String coordName)
public CoordinateWidget addCoordinateWidget(java.lang.String label, JointBase joint, int coordIdx)
public CoordinateWidget addCoordinateWidget(JointBase joint, int coordIdx)
public void addCoordinateWidgets(JointBase joint)
public void valueChange(ValueChangeEvent e)
valueChange
in interface ValueChangeListener
public void updateComponentCaches()
public void updateCoordinateWidgetList()
public void updateWrapPaths()
public void updateWidgetValues()
PropertyWindow
updateWidgetValues
in interface PropertyWindow
updateWidgetValues
in class ControlPanel
public boolean scanItem(ReaderTokenizer rtok, java.util.Deque<ScanToken> tokens) throws java.io.IOException
scanItem
in class ControlPanel
java.io.IOException
public void postscan(java.util.Deque<ScanToken> tokens, CompositeComponent ancestor) throws java.io.IOException
PostScannable
scan()
method and stored in the token queue.
The most common use of this method is to resolve the paths
of component references, which may not have been created
at the time of the initial scan()
call.postscan
in interface PostScannable
postscan
in class ModelComponentBase
tokens
- token information that was stored during
scan()
.ancestor
- ancestor component with respect to which
reference component paths are defined.java.io.IOException
- if an error is encountered (such as a reference to a
non-existent component)