Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Package Attributes | Private Member Functions | Private Attributes | Static Private Attributes
edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.vis.applets.ActionPropertiesEditor:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 30 of file ActionPropertiesEditor.java.


Member Function Documentation

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

Parameters:
new_propsMapping 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

Parameters:
propString denoting the property to be added
valString denoting the value to be assigned to the property

Definition at line 245 of file ActionPropertiesEditor.java.

Add a new item to the action_props ListBox.

For internal use, use the public {

See also:
addActionPropItem} instead.
Parameters:
nameString used for the item, composed of its property and value

Definition at line 276 of file ActionPropertiesEditor.java.

Handle controlP5 mouse events

Definition at line 408 of file ActionPropertiesEditor.java.

Draw the content of the applet

Definition at line 148 of file ActionPropertiesEditor.java.

Get the super-class of the currently edited action

Returns:
cl IRI of the super-class

Definition at line 198 of file ActionPropertiesEditor.java.

Get the action identifier

Returns:
id IRI of the current action

Definition at line 179 of file ActionPropertiesEditor.java.

Definition at line 385 of file ActionPropertiesEditor.java.

Initialize the controlP5 library and create GUI elements

Definition at line 641 of file ActionPropertiesEditor.java.

Definition at line 365 of file ActionPropertiesEditor.java.

Definition at line 381 of file ActionPropertiesEditor.java.

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.

Implementation of the IClassSelectionCallback interface; accept OWL classes selected by external components.

Parameters:
clIRI 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.

Remove a ListBoxItem from the action_props ListBox

Parameters:
itemReference to a ListBoxItem that is to be removed

Definition at line 304 of file ActionPropertiesEditor.java.

Set the super-class of the currently edited action

Parameters:
clIRI 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.

Parameters:
propsMapping from the property identifier to a list of values

Definition at line 209 of file ActionPropertiesEditor.java.

Parameters:
cbSet

Definition at line 594 of file ActionPropertiesEditor.java.

Parameters:
base_iri

Definition at line 602 of file ActionPropertiesEditor.java.

set the currently selected item in the action properties ListBox

Parameters:
itemReference to the item to be set as 'selected'

Definition at line 350 of file ActionPropertiesEditor.java.

Definition at line 369 of file ActionPropertiesEditor.java.

Set the action identifier

Parameters:
idIRI of the current action

Definition at line 170 of file ActionPropertiesEditor.java.

Definition at line 124 of file ActionPropertiesEditor.java.


Member Data Documentation

List of properties defined for the current action

Definition at line 60 of file ActionPropertiesEditor.java.

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.

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.

Reference to the OwlClassSelectorApplet used for selecting an OWL class from an ontology

Definition at line 44 of file ActionPropertiesEditor.java.

Definition at line 106 of file ActionPropertiesEditor.java.

Definition at line 34 of file ActionPropertiesEditor.java.

currently selected ListBoxItem in the action_props ListBox

Definition at line 70 of file ActionPropertiesEditor.java.

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.

Flag indicating if new action is created or existing action is edited

Definition at line 102 of file ActionPropertiesEditor.java.

Definition at line 104 of file ActionPropertiesEditor.java.

Applet completely initialized

Definition at line 97 of file ActionPropertiesEditor.java.

Height of a row in the action_props ListBox

Definition at line 92 of file ActionPropertiesEditor.java.

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.

List of applicable properties, from which the user can select which ones to define

Definition at line 65 of file ActionPropertiesEditor.java.

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.

submit button

Definition at line 55 of file ActionPropertiesEditor.java.

Definition at line 108 of file ActionPropertiesEditor.java.


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


mod_vis
Author(s): Moritz Tenorth, Jakob Engel
autogenerated on Sat Dec 28 2013 17:09:50