org.keridwen.modelling.group.editor.ui
Class GroupsTreeEditorView

java.lang.Object
  extended by org.keridwen.modelling.group.editor.ui.GroupsTreeEditorView

public class GroupsTreeEditorView
extends Object

Define the GUI (i.e view) of the global Group Tree Editor.

Author:
J.Forest, Artenum SARL.

Constructor Summary
GroupsTreeEditorView(ImprovedSelectionTree selectionGroupsTree, com.artenum.frida.processing.PropertyTypesFilter typesFilterIn, com.artenum.frida.processing.GroupOperatorTypeFilter operatorfilterIn)
          Main constructor.
 
Method Summary
 void addActionListenerToCharacteristicEditor(ActionListener listener)
          Add the given ActionListener to the Characteristic Editor.
 void addActionListenerToDeployPropertiesButton(ActionListener listener)
          Add the given ActionListener to the "Deploy Properties" button.
 void addActionListenerToPriorityButtons(ActionListener listener)
           
 void addActionListenerToPropertyEditor(ActionListener listener)
          Add the given ActionListener to the Property Editor.
 void addActionListenerToToolBarButtons(ActionListener listener)
          Add the given action listener to the buttons of the tool bar.
 JTabbedPane getCassandraPipelineEditor()
          Get the pipeline editor corresponding to the 3D viewer.
 JPanel getCassandraRenderingPanel()
          Get the rendering panel of the linked 3D Cassandra viewer.
 CharacteristicEditor<?> getCharacteristicEditor()
          Get the set Characteristic editor.
 EmptyDefaultEditor getDefaultEditor()
          Get the Default Editor.
 JPanel getEditionPanel()
          Get the edition panel where are located the "user-firendly" group, properties and characteristics editors.
 GroupEditor getGroupEditor()
          Get the common Group Editor.
 JPanel getMainPanel()
          Get the main panel of the groups editor.
 PropertyEditor getPropertyEditor()
          Get the common Property Editor.
 JPanel getRenderingPanel()
          Get the 3D group rendering panel.
 ImprovedSelectionTree getTree()
          Get the JTree
 void init3DRenderer()
          Initialise the 3D Cassandra based renderer.
 void initGUIComponents()
          Initialise the GUI
 void initMainGUI()
          Initialise the main GUI gathering all components generated by initGUIComponents.
 void initToolBar()
          Initialize the tool bar.
 boolean isVtkAvailable()
          Get the VTK context.
 void outLineGroupIn3D(int grpId)
          Outline in the 3D view the actor corresponding to the group of the given Id.
 void reset3DView()
          Reset the 3D view and remove all loaded actors.
 void setEditorView(JPanel nodeEditionPanel)
          Update the editor panel according the type of the selected node in the selection tree.
 void setVtkAvailable(boolean isVtkAvailable)
          Set the VTK context or not, to allow tne 3D view of not.
 void showGroupsIn3D(GroupToVtkConverter grpToVtkConverter)
          Show the groups as given by the GroupToVtkConverter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupsTreeEditorView

public GroupsTreeEditorView(ImprovedSelectionTree selectionGroupsTree,
                            com.artenum.frida.processing.PropertyTypesFilter typesFilterIn,
                            com.artenum.frida.processing.GroupOperatorTypeFilter operatorfilterIn)
Main constructor.

Parameters:
selectionGroupsTree -
Method Detail

initGUIComponents

public void initGUIComponents()
Initialise the GUI


initMainGUI

public void initMainGUI()
Initialise the main GUI gathering all components generated by initGUIComponents.


initToolBar

public void initToolBar()
Initialize the tool bar.


addActionListenerToDeployPropertiesButton

public void addActionListenerToDeployPropertiesButton(ActionListener listener)
Add the given ActionListener to the "Deploy Properties" button.

Parameters:
listener -

addActionListenerToToolBarButtons

public void addActionListenerToToolBarButtons(ActionListener listener)
Add the given action listener to the buttons of the tool bar.

Parameters:
listener -

addActionListenerToPriorityButtons

public void addActionListenerToPriorityButtons(ActionListener listener)

init3DRenderer

public void init3DRenderer()
Initialise the 3D Cassandra based renderer.


showGroupsIn3D

public void showGroupsIn3D(GroupToVtkConverter grpToVtkConverter)
Show the groups as given by the GroupToVtkConverter.


reset3DView

public void reset3DView()
Reset the 3D view and remove all loaded actors.


outLineGroupIn3D

public void outLineGroupIn3D(int grpId)
Outline in the 3D view the actor corresponding to the group of the given Id.

Parameters:
grpId - - Id of the group to be outlined.

addActionListenerToCharacteristicEditor

public void addActionListenerToCharacteristicEditor(ActionListener listener)
Add the given ActionListener to the Characteristic Editor.

Parameters:
listener - - ActionListener to be added.

addActionListenerToPropertyEditor

public void addActionListenerToPropertyEditor(ActionListener listener)
Add the given ActionListener to the Property Editor.

Parameters:
listener - - ActionListener to be added.

getCharacteristicEditor

public CharacteristicEditor<?> getCharacteristicEditor()
Get the set Characteristic editor.

Returns:
- Get the Characteristic editor.

getPropertyEditor

public PropertyEditor getPropertyEditor()
Get the common Property Editor.

Returns:
- Property Editor.

getGroupEditor

public GroupEditor getGroupEditor()
Get the common Group Editor.

Returns:
- Shared Group Editor.

getDefaultEditor

public EmptyDefaultEditor getDefaultEditor()
Get the Default Editor.

Returns:
- An empty panel.

getTree

public ImprovedSelectionTree getTree()
Get the JTree

Returns:

setEditorView

public void setEditorView(JPanel nodeEditionPanel)
Update the editor panel according the type of the selected node in the selection tree.

Parameters:
nodeEditionPanel - - Panel of settings for the selected node-type

getMainPanel

public JPanel getMainPanel()
Get the main panel of the groups editor.

Returns:
- main panel of the group editor.

getRenderingPanel

public JPanel getRenderingPanel()
Get the 3D group rendering panel.

Returns:
- The 3D rendering panel of the group viewer.

getEditionPanel

public JPanel getEditionPanel()
Get the edition panel where are located the "user-firendly" group, properties and characteristics editors.

Returns:

getCassandraRenderingPanel

public JPanel getCassandraRenderingPanel()
Get the rendering panel of the linked 3D Cassandra viewer.

Returns:
- the 3D rendering panel of the Cassandra viewer.

getCassandraPipelineEditor

public JTabbedPane getCassandraPipelineEditor()
Get the pipeline editor corresponding to the 3D viewer.

Returns:
- the pipeline graphical editor.

setVtkAvailable

public void setVtkAvailable(boolean isVtkAvailable)
Set the VTK context or not, to allow tne 3D view of not.

Parameters:
isVtkAvailable -

isVtkAvailable

public boolean isVtkAvailable()
Get the VTK context.

Returns:
- true if VTK has been successfully loaded, false otherwise.


Copyright © 2012-2013 Artenum. All Rights Reserved.