Classes | |
class | OWLClassSelect |
Public Member Functions | |
void | addActionProperties (Map< String, Vector< String >> new_props) |
void | addActionPropItem (String prop, String val) |
void | controlEvent (ControlEvent ev) |
void | draw () |
String | getActionClass () |
String | getIdentifier () |
boolean | isEditing () |
boolean | isInitialized () |
void | keyPressed (KeyEvent e) |
void | owlClassSelected (String cl) |
void | setActionClass (String cl) |
void | setActionProperties (Map< String, Vector< String >> props) |
void | setAddActionCallback (IAddActionCallback cb) |
void | setBaseIRI (String base_iri) |
void | setEditing (boolean e) |
void | setIdentifier (String id) |
void | setup () |
Static Public Member Functions | |
static void | main (String args[]) |
Public Attributes | |
ControlP5 | controlP5 |
Package Attributes | |
OwlClassSelectorApplet | class_selector |
Private Member Functions | |
void | addActionPropItem (String name) |
String | getIRIForPropShortName (String shortname) |
void | initControlP5 () |
void | removeActionPropItem (ListBoxItem item) |
void | setCurrentActionPropItem (ListBoxItem item) |
Private Attributes | |
ListBox | action_props |
Map< Integer, ListBoxItem > | actionpropId2item |
String | base_iri |
IAddActionCallback | callback |
Textfield | cls |
ListBoxItem | currentActionProp |
ListBoxItem | currentProp |
PFont | dejavuFont |
boolean | editing = false |
Textfield | identifier |
boolean | initialized = false |
int | listBoxHeight = 20 |
Map< Integer, ListBoxItem > | propId2item |
ListBox | props |
boolean | propsIsActive |
Button | submit |
Textfield | value |
Static Private Attributes | |
static final long | serialVersionUID = 7695328948788620463L |
Definition at line 30 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.addActionProperties | ( | Map< String, Vector< String >> | new_props | ) | [inline] |
Read all values from the props Map to the action_props list in addition to the existing ones
new_props | Mapping from the property identifier to a list of values |
Definition at line 224 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.addActionPropItem | ( | String | prop, |
String | val | ||
) | [inline] |
Add a new property/value pair to the list of action properties
prop | String denoting the property to be added |
val | String denoting the value to be assigned to the property |
Definition at line 245 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.addActionPropItem | ( | String | name | ) | [inline, private] |
Add a new item to the action_props ListBox.
For internal use, use the public {
name | String used for the item, composed of its property and value |
Definition at line 276 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.controlEvent | ( | ControlEvent | ev | ) | [inline] |
Handle controlP5 mouse events
Definition at line 408 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.draw | ( | ) | [inline] |
Draw the content of the applet
Definition at line 148 of file ActionPropertiesEditor.java.
String edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.getActionClass | ( | ) | [inline] |
Get the super-class of the currently edited action
Definition at line 198 of file ActionPropertiesEditor.java.
String edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.getIdentifier | ( | ) | [inline] |
Get the action identifier
Definition at line 179 of file ActionPropertiesEditor.java.
String edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.getIRIForPropShortName | ( | String | shortname | ) | [inline, private] |
Definition at line 385 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.initControlP5 | ( | ) | [inline, private] |
Initialize the controlP5 library and create GUI elements
Definition at line 641 of file ActionPropertiesEditor.java.
boolean edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.isEditing | ( | ) | [inline] |
Definition at line 365 of file ActionPropertiesEditor.java.
boolean edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.isInitialized | ( | ) | [inline] |
Definition at line 381 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.keyPressed | ( | KeyEvent | e | ) | [inline] |
Definition at line 516 of file ActionPropertiesEditor.java.
static void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.main | ( | String | args[] | ) | [inline, static] |
Definition at line 709 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.owlClassSelected | ( | String | cl | ) | [inline] |
Implementation of the IClassSelectionCallback interface; accept OWL classes selected by external components.
cl | IRI of the class that has been selected in the external program |
Implements edu.tum.cs.ias.knowrob.vis.applets.IClassSelectionCallback.
Definition at line 586 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.removeActionPropItem | ( | ListBoxItem | item | ) | [inline, private] |
Remove a ListBoxItem from the action_props ListBox
item | Reference to a ListBoxItem that is to be removed |
Definition at line 304 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setActionClass | ( | String | cl | ) | [inline] |
Set the super-class of the currently edited action
cl | IRI of the super-class |
Definition at line 189 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setActionProperties | ( | Map< String, Vector< String >> | props | ) | [inline] |
Read all values from the props Map to the action_props list, which is cleared beforehand.
props | Mapping from the property identifier to a list of values |
Definition at line 209 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setAddActionCallback | ( | IAddActionCallback | cb | ) | [inline] |
cb | Set |
Definition at line 594 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setBaseIRI | ( | String | base_iri | ) | [inline] |
base_iri |
Definition at line 602 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setCurrentActionPropItem | ( | ListBoxItem | item | ) | [inline, private] |
set the currently selected item in the action properties ListBox
item | Reference to the item to be set as 'selected' |
Definition at line 350 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setEditing | ( | boolean | e | ) | [inline] |
Definition at line 369 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setIdentifier | ( | String | id | ) | [inline] |
Set the action identifier
id | IRI of the current action |
Definition at line 170 of file ActionPropertiesEditor.java.
void edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.setup | ( | ) | [inline] |
Definition at line 124 of file ActionPropertiesEditor.java.
ListBox edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.action_props [private] |
List of properties defined for the current action
Definition at line 60 of file ActionPropertiesEditor.java.
Map<Integer, ListBoxItem> edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.actionpropId2item [private] |
Mapping from the integer ID (which will be provided by click events) to the corresponding ListBoxItem in the action_props list
Definition at line 81 of file ActionPropertiesEditor.java.
String edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.base_iri [private] |
Definition at line 112 of file ActionPropertiesEditor.java.
Reference to an iAddActionCallback; usually the parent that started this editor
Definition at line 49 of file ActionPropertiesEditor.java.
OwlClassSelectorApplet edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.class_selector [package] |
Reference to the OwlClassSelectorApplet used for selecting an OWL class from an ontology
Definition at line 44 of file ActionPropertiesEditor.java.
Textfield edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.cls [private] |
Definition at line 106 of file ActionPropertiesEditor.java.
Definition at line 34 of file ActionPropertiesEditor.java.
ListBoxItem edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.currentActionProp [private] |
currently selected ListBoxItem in the action_props ListBox
Definition at line 70 of file ActionPropertiesEditor.java.
ListBoxItem edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.currentProp [private] |
currently selected ListBoxItem in the props ListBox
Definition at line 75 of file ActionPropertiesEditor.java.
Font for drawing text
Definition at line 39 of file ActionPropertiesEditor.java.
boolean edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.editing = false [private] |
Flag indicating if new action is created or existing action is edited
Definition at line 102 of file ActionPropertiesEditor.java.
Textfield edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.identifier [private] |
Definition at line 104 of file ActionPropertiesEditor.java.
boolean edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.initialized = false [private] |
Applet completely initialized
Definition at line 97 of file ActionPropertiesEditor.java.
int edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.listBoxHeight = 20 [private] |
Height of a row in the action_props ListBox
Definition at line 92 of file ActionPropertiesEditor.java.
Map<Integer, ListBoxItem> edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.propId2item [private] |
Mapping from the integer ID (which will be provided by click events) to the corresponding ListBoxItem in the props list
Definition at line 87 of file ActionPropertiesEditor.java.
ListBox edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.props [private] |
List of applicable properties, from which the user can select which ones to define
Definition at line 65 of file ActionPropertiesEditor.java.
boolean edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.propsIsActive [private] |
Definition at line 110 of file ActionPropertiesEditor.java.
final long edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.serialVersionUID = 7695328948788620463L [static, private] |
Definition at line 32 of file ActionPropertiesEditor.java.
Button edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.submit [private] |
submit button
Definition at line 55 of file ActionPropertiesEditor.java.
Textfield edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor.value [private] |
Definition at line 108 of file ActionPropertiesEditor.java.