org.keridwen.modelling.group.editor.editor
Class CharacteristicEditor<T>

java.lang.Object
  extended by org.keridwen.modelling.group.editor.editor.CharacteristicEditor<T>
Type Parameters:
T -
All Implemented Interfaces:
ActionListener, KeyListener, EventListener, ListSelectionListener

public class CharacteristicEditor<T>
extends Object
implements ActionListener, ListSelectionListener, KeyListener

Generic and graphical Characteristic editor.

Author:
J.Forest, Artenum SARL.

Field Summary
static String ON_CELL
           
static String ON_CURVI
           
static String ON_EDGE
           
static String ON_FACE
           
static String ON_NODE
           
static String SERIE_OF_DOUBLE
           
static String UNDEFINED
           
 
Constructor Summary
CharacteristicEditor()
          Default constructor.
 
Method Summary
 void actionPerformed(ActionEvent evt)
           
 void displaySelectedCharacteristicView(com.artenum.frida.characteristic.AbstractCharacteristic<T> charac)
          Update the view and display the selected characteristic in the right side panel.
 com.artenum.frida.characteristic.AbstractCharacteristic<T> getCharacteristic()
           
 SelectionTreeListener getTreeListener()
          Get the Selection tree listener.
 CharacteristicEditorView getView()
          Return the view of the present editor.
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 void setCharacteristic(com.artenum.frida.characteristic.AbstractCharacteristic<T> charac)
          Set the Characteristic model.
 void setTreeListener(SelectionTreeListener treeListener)
          Set the tree listener.
 void updateSelectedCharacteristicModel()
          Update the model for the selected Characteristic according the selected one in the view.
 void updateView()
          Update the view according the current characteristic.
 void valueChanged(ListSelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON_NODE

public static final String ON_NODE
See Also:
Constant Field Values

ON_EDGE

public static final String ON_EDGE
See Also:
Constant Field Values

ON_FACE

public static final String ON_FACE
See Also:
Constant Field Values

ON_CELL

public static final String ON_CELL
See Also:
Constant Field Values

ON_CURVI

public static final String ON_CURVI
See Also:
Constant Field Values

UNDEFINED

public static final String UNDEFINED
See Also:
Constant Field Values

SERIE_OF_DOUBLE

public static final String SERIE_OF_DOUBLE
See Also:
Constant Field Values
Constructor Detail

CharacteristicEditor

public CharacteristicEditor()
Default constructor.

Method Detail

getView

public CharacteristicEditorView getView()
Return the view of the present editor.

Returns:
CharacteristicEditorView of the editor.

setCharacteristic

public void setCharacteristic(com.artenum.frida.characteristic.AbstractCharacteristic<T> charac)
Set the Characteristic model.

Parameters:
charac -

getCharacteristic

public com.artenum.frida.characteristic.AbstractCharacteristic<T> getCharacteristic()
Returns:
return the current characteristic.

displaySelectedCharacteristicView

public void displaySelectedCharacteristicView(com.artenum.frida.characteristic.AbstractCharacteristic<T> charac)
Update the view and display the selected characteristic in the right side panel.

Parameters:
charac - - selected characteristic.

updateView

public void updateView()
Update the view according the current characteristic.


updateSelectedCharacteristicModel

public void updateSelectedCharacteristicModel()
Update the model for the selected Characteristic according the selected one in the view.


actionPerformed

public void actionPerformed(ActionEvent evt)
Specified by:
actionPerformed in interface ActionListener

valueChanged

public void valueChanged(ListSelectionEvent e)
Specified by:
valueChanged in interface ListSelectionListener

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

setTreeListener

public void setTreeListener(SelectionTreeListener treeListener)
Set the tree listener.

Parameters:
treeListener -

getTreeListener

public SelectionTreeListener getTreeListener()
Get the Selection tree listener.

Returns:


Copyright © 2012-2013 Artenum. All Rights Reserved.