Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.generalrobotix.ui.item.GrxProjectItem Class Reference
Inheritance diagram for com.generalrobotix.ui.item.GrxProjectItem:
Inheritance graph
[legend]

Classes

class  ModeNodeInfo
 

Public Member Functions

boolean create ()
 
Vector< Action > getMenu ()
 
Properties getViewProperties (String viewName)
 
Element getWindowConfigElement (String mode)
 
 GrxProjectItem (String name, GrxPluginManager manager)
 
void importISEProject ()
 
void importISEProject (File f)
 
void load ()
 load a project More...
 
boolean load (File f)
 load a project file More...
 
void restoreProject ()
 
void save (File f)
 
void save ()
 
void saveAs ()
 
void setWindowConfigElement (String mode, Element element)
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
File chooseSaveFile ()
 
GrxBaseItem clone ()
 Override clone method. More...
 
boolean create ()
 
void delete ()
 delete this item More...
 
File getDefaultDir ()
 get default directory More...
 
String getFileExtention ()
 get file extension More...
 
Object getValue ()
 
boolean load (File file)
 
void paste (String clipVal)
 paste object More...
 
void setValue (Object o)
 
- Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
void addObserver (GrxObserver v)
 
GrxBasePlugin clone ()
 Override clone method. More...
 
void deleteObserver (GrxObserver v)
 
boolean equals (Object obj)
 check whether obj equals to this More...
 
Element getElement ()
 get element More...
 
Image getIcon ()
 get icon More...
 
Vector< Action > getMenu ()
 get menu More...
 
String[] getMenuPath ()
 get menu path More...
 
final String getName ()
 get name More...
 
ArrayList< GrxObservergetObserver ()
 
String getOldName ()
 
Vector< MenuManager > getSubMenu ()
 get subMenu More...
 
String getURL (boolean expand)
 
ValueEditType GetValueEditType (String key)
 Return editing type of the key item. More...
 
boolean isExclusive ()
 check whether this is exclusive or not More...
 
boolean isSelected ()
 check whether this is selected or not More...
 
void notifyObservers (Object...arg)
 
boolean propertyChanged (String property, String value)
 check validity of new value of property and update if valid More...
 
boolean registerCORBA ()
 
void rename (String newName)
 rename this item More...
 
void restoreProperties ()
 restore properties. Called by menu item "restore Properties" More...
 
void setDocument (Document doc)
 set document More...
 
void setElement (Element element)
 set element More...
 
void setExclusive (boolean b)
 set exclusive flag More...
 
void setFocused (boolean b)
 set/unset focus on this plugin More...
 
void setMenuItem (Action a)
 add a menu item More...
 
void setName (String name)
 set name More...
 
Object setProperty (String key, String value)
 set property value associated with a keyword More...
 
void setSelected (boolean b)
 set selected flag More...
 
void setSubMenu (MenuManager m)
 add a submenu More...
 
void setURL (String url)
 set URL property More...
 
void shutdown ()
 
Element storeProperties ()
 store properties More...
 
final String toString ()
 convert to String. Currently, name is returned. More...
 
void unregisterCORBA ()
 
- Public Member Functions inherited from com.generalrobotix.ui.util.GrxConfigBundle
final Double getDbl (String key, Double defaultVal)
 get double value associated to key More...
 
Double getDbl (String value)
 
final double[] getDblAry (String key, double[] defaultVal)
 get double array associated to key More...
 
double[] getDblAry (String value)
 get array of double from String More...
 
final Float getFlt (String key, Float defaultVal)
 get float value associated to key More...
 
final Float getFlt (String value)
 
final float[] getFltAry (String key, float[] defaultVal)
 get float array associated to key More...
 
float[] getFltAry (String value)
 
final Integer getInt (String key, Integer defaultVal)
 get integer value associated to key More...
 
final int[] getIntAry (String key)
 get integer array associated to key More...
 
final Short getShort (String key, Short defaultVal)
 get short value associated to key More...
 
Short getShort (String value)
 
final String getStr (String key)
 get value associated to keyword More...
 
final String getStr (String key, String defaultVal)
 get value associated to key More...
 
 GrxConfigBundle ()
 constructor More...
 
 GrxConfigBundle (String fname) throws IOException
 construct from a file More...
 
final boolean isFalse (String key)
 check whether value associated to key includes a word "false" More...
 
final boolean isFalse (String key, boolean defaultVal)
 check whether value associated to key includes a word "false" More...
 
final boolean isTrue (String key)
 check whether value associated to key includes a word "true" More...
 
final boolean isTrue (String key, boolean defaultVal)
 check whether value associated to key includes a word "true" More...
 
void load (String fname) throws IOException
 load config from a file More...
 
final void setBool (String key, boolean value)
 
final void setDbl (String key, double value)
 associate double value to key More...
 
final void setDbl (String key, double value, int digits)
 associate double value to key More...
 
final void setDblAry (String key, double[] value, int digits)
 associate double array to key More...
 
final void setDblAry (String key, double[] value)
 associate double array to key More...
 
final void setFlt (String key, float value)
 associate float value to key More...
 
final void setFltAry (String key, float[] value)
 associate float array to key More...
 
final void setInt (String key, int value)
 associate int value to key More...
 
final void setShort (String key, short value)
 associate short value to key More...
 
void store (String fname, String comments) throws IOException
 store this config More...
 

Static Public Attributes

static final String DEFAULT_DIR = "/"
 
static final String FILE_EXTENSION = "xml"
 
static final int MENU_CREATE =0
 
static final String TITLE = "Project"
 

Private Member Functions

ModeNodeInfo _getModeNodeInfo (String mode)
 
GrxBasePlugin _restorePlugin (Element e)
 
void _updateModeInfo ()
 
void addItem ()
 
boolean checkModifiedModel ()
 
boolean containSimulationItem (NodeList list)
 
void restoreProject_work (String mode, IProgressMonitor monitor)
 
void setDefaultDirectory ()
 
void storeMode (String mode)
 
Element storePerspectiveConf (Element element)
 

Private Attributes

DocumentBuilder builder_
 
Document doc_
 
Vector< Action > menu_
 
Map< String, ModeNodeInfomodeInfoMap_ = new HashMap<String, ModeNodeInfo>()
 
Transformer transformer_
 
HashMap< String, PropertiesviewProperties_ = new HashMap<String, Properties>()
 

Static Private Attributes

static String COLLISIONPAIR_ITEM = "com.generalrobotix.ui.item.GrxCollisionPairItem"
 
static String COLLISIONPAIR_NODE = "jp.go.aist.hrp.simulator.CollisionPairNode"
 
static final File DEFAULT_ISE_PROJECT_DIR = new File("../ISE/Projects")
 
static String ENVIRONMENT_NODE = "jp.go.aist.hrp.simulator.EnvironmentNode"
 
static String GRAPH_ITEM = "com.generalrobotix.ui.item.GrxGraphItem"
 
static String GRAPH_NODE = "jp.go.aist.hrp.simulator.GraphNode"
 
static final String MODE_TAG = "mode"
 
static String MODEL_ITEM = "com.generalrobotix.ui.item.GrxModelItem"
 
static String ROBOT_NODE = "jp.go.aist.hrp.simulator.RobotNode"
 
static final String WINCONF_TAG = "perspective"
 
static String WORLD_STATE_ITEM = "com.generalrobotix.ui.item.GrxWorldStateItem"
 

Additional Inherited Members

- Static Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
static Object getField (Class<?extends GrxBasePlugin > cls, String field, Object defaultValue)
 get field More...
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBaseItem
 GrxBaseItem (String name, GrxPluginManager manager)
 constructor More...
 
void setDefaultDirectory (String dir)
 
void setFileExtension (String ext)
 
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
 GrxBasePlugin (String name, GrxPluginManager manager)
 constructor More...
 
void setIcon (String iconName)
 set icon More...
 
void setMenuPath (String[] path)
 set menu path More...
 
boolean syncExec (Runnable r)
 Transfer SWT UI thread. More...
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
String clipValue_ = ""
 
File file_
 
- Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
Document doc_
 
Element element_
 
GrxPluginManager manager_
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBaseItem
static final String[] jointTypeComboItem_ = new String[] { "fixed", "rotate", "free", "slide" }
 
static final String[] methodComboItem_ = new String[] { "EULER", "RUNGE_KUTTA" }
 
static final String[] modeComboItem_ = new String[] { "Torque", "HighGain" }
 
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
static final String[] booleanComboItem_ = new String[] {"true", "false" }
 
static final String INDENT4 = " "
 
static final String ITEM_TAG = "item"
 
static final String PROPERTY_TAG = "property"
 
static final String VIEW_TAG = "view"
 

Detailed Description

Definition at line 74 of file GrxProjectItem.java.

Constructor & Destructor Documentation

com.generalrobotix.ui.item.GrxProjectItem.GrxProjectItem ( String  name,
GrxPluginManager  manager 
)
inline

Definition at line 100 of file GrxProjectItem.java.

Member Function Documentation

ModeNodeInfo com.generalrobotix.ui.item.GrxProjectItem._getModeNodeInfo ( String  mode)
inlineprivate

Definition at line 189 of file GrxProjectItem.java.

GrxBasePlugin com.generalrobotix.ui.item.GrxProjectItem._restorePlugin ( Element  e)
inlineprivate

Definition at line 741 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem._updateModeInfo ( )
inlineprivate

Definition at line 155 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.addItem ( )
inlineprivate

Definition at line 965 of file GrxProjectItem.java.

boolean com.generalrobotix.ui.item.GrxProjectItem.checkModifiedModel ( )
inlineprivate

Definition at line 373 of file GrxProjectItem.java.

boolean com.generalrobotix.ui.item.GrxProjectItem.containSimulationItem ( NodeList  list)
inlineprivate

Definition at line 774 of file GrxProjectItem.java.

boolean com.generalrobotix.ui.item.GrxProjectItem.create ( )
inline

Definition at line 119 of file GrxProjectItem.java.

Vector<Action> com.generalrobotix.ui.item.GrxProjectItem.getMenu ( )
inline

Definition at line 298 of file GrxProjectItem.java.

Properties com.generalrobotix.ui.item.GrxProjectItem.getViewProperties ( String  viewName)
inline

Definition at line 815 of file GrxProjectItem.java.

Element com.generalrobotix.ui.item.GrxProjectItem.getWindowConfigElement ( String  mode)
inline

Definition at line 220 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.importISEProject ( )
inline

Definition at line 783 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.importISEProject ( File  f)
inline

Definition at line 829 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.load ( )
inline

load a project

Definition at line 481 of file GrxProjectItem.java.

boolean com.generalrobotix.ui.item.GrxProjectItem.load ( File  f)
inline

load a project file

Parameters
fa project file
Returns
true if loaded successfully, false otherwise

Definition at line 499 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.restoreProject ( )
inline

Definition at line 565 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.restoreProject_work ( String  mode,
IProgressMonitor  monitor 
)
inlineprivate

Definition at line 593 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.save ( File  f)
inline

Definition at line 392 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.save ( )
inline

Definition at line 465 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.saveAs ( )
inline

Definition at line 434 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.setDefaultDirectory ( )
inlineprivate

Definition at line 956 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.setWindowConfigElement ( String  mode,
Element  element 
)
inline

Definition at line 216 of file GrxProjectItem.java.

void com.generalrobotix.ui.item.GrxProjectItem.storeMode ( String  mode)
inlineprivate

Definition at line 224 of file GrxProjectItem.java.

Element com.generalrobotix.ui.item.GrxProjectItem.storePerspectiveConf ( Element  element)
inlineprivate

Definition at line 259 of file GrxProjectItem.java.

Member Data Documentation

DocumentBuilder com.generalrobotix.ui.item.GrxProjectItem.builder_
private

Definition at line 86 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.COLLISIONPAIR_ITEM = "com.generalrobotix.ui.item.GrxCollisionPairItem"
staticprivate

Definition at line 826 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.COLLISIONPAIR_NODE = "jp.go.aist.hrp.simulator.CollisionPairNode"
staticprivate

Definition at line 821 of file GrxProjectItem.java.

final String com.generalrobotix.ui.item.GrxProjectItem.DEFAULT_DIR = "/"
static

Definition at line 76 of file GrxProjectItem.java.

final File com.generalrobotix.ui.item.GrxProjectItem.DEFAULT_ISE_PROJECT_DIR = new File("../ISE/Projects")
staticprivate

Definition at line 782 of file GrxProjectItem.java.

Document com.generalrobotix.ui.item.GrxProjectItem.doc_
private

Definition at line 85 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.ENVIRONMENT_NODE = "jp.go.aist.hrp.simulator.EnvironmentNode"
staticprivate

Definition at line 819 of file GrxProjectItem.java.

final String com.generalrobotix.ui.item.GrxProjectItem.FILE_EXTENSION = "xml"
static

Definition at line 77 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.GRAPH_ITEM = "com.generalrobotix.ui.item.GrxGraphItem"
staticprivate

Definition at line 827 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.GRAPH_NODE = "jp.go.aist.hrp.simulator.GraphNode"
staticprivate

Definition at line 822 of file GrxProjectItem.java.

Vector<Action> com.generalrobotix.ui.item.GrxProjectItem.menu_
private

Definition at line 80 of file GrxProjectItem.java.

final int com.generalrobotix.ui.item.GrxProjectItem.MENU_CREATE =0
static

Definition at line 79 of file GrxProjectItem.java.

final String com.generalrobotix.ui.item.GrxProjectItem.MODE_TAG = "mode"
staticprivate

Definition at line 82 of file GrxProjectItem.java.

Map<String, ModeNodeInfo> com.generalrobotix.ui.item.GrxProjectItem.modeInfoMap_ = new HashMap<String, ModeNodeInfo>()
private

Definition at line 90 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.MODEL_ITEM = "com.generalrobotix.ui.item.GrxModelItem"
staticprivate

Definition at line 825 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.ROBOT_NODE = "jp.go.aist.hrp.simulator.RobotNode"
staticprivate

Definition at line 820 of file GrxProjectItem.java.

final String com.generalrobotix.ui.item.GrxProjectItem.TITLE = "Project"
static

Definition at line 75 of file GrxProjectItem.java.

Transformer com.generalrobotix.ui.item.GrxProjectItem.transformer_
private

Definition at line 87 of file GrxProjectItem.java.

HashMap<String, Properties> com.generalrobotix.ui.item.GrxProjectItem.viewProperties_ = new HashMap<String, Properties>()
private

Definition at line 88 of file GrxProjectItem.java.

final String com.generalrobotix.ui.item.GrxProjectItem.WINCONF_TAG = "perspective"
staticprivate

Definition at line 83 of file GrxProjectItem.java.

String com.generalrobotix.ui.item.GrxProjectItem.WORLD_STATE_ITEM = "com.generalrobotix.ui.item.GrxWorldStateItem"
staticprivate

Definition at line 824 of file GrxProjectItem.java.


The documentation for this class was generated from the following file:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:30