| javax.swing.JPanel com.xoetrope.carousel.visualizer.ModelVisualiserPanel
ModelVisualiserPanel | public class ModelVisualiserPanel extends JPanel implements TreeSelectionListener,MouseListener(Code) | | The main panel of the data model visualization.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.18 $
|
Inner Class :class NewNodeDialog extends JDialog | |
ModelVisualiserPanel | public ModelVisualiserPanel(int preferredWidth)(Code) | | |
addAttribute | public void addAttribute(String path, String attribName)(Code) | | Add an attribute to the model
Parameters: path - the selected path Parameters: attribName - the new attribute name |
addMessageNode | public void addMessageNode(String message)(Code) | | Set a message in an empty tree
Parameters: message - the new message text |
addNode | public void addNode(String path, String name)(Code) | | Add a new node to the model
Parameters: path - the path of the parent node Parameters: name - the name/ID of the new node |
addTable | public void addTable(String path, String name, int nrows, int ncols)(Code) | | Add a new table model to the model
Parameters: path - the path of the parent node Parameters: name - the name/ID of the new node |
centerScreen | public void centerScreen(Rectangle parentRect)(Code) | | Centre the panel on screen.
|
copyAttrPathToClipboard | public void copyAttrPathToClipboard()(Code) | | Copies selected attribute path to the clipboard
|
copyNodePathToClipboard | public void copyNodePathToClipboard()(Code) | | Copies selected node path to the clipboard
|
debugView | public boolean debugView()(Code) | | |
deleteAttribute | public void deleteAttribute(String path, String attribName)(Code) | | Delete the selected attribute from the model
|
deleteNode | public void deleteNode(String path)(Code) | | Deletes selected node from the model
Parameters: path - the path of the model node |
getRootModel | public XModel getRootModel()(Code) | | |
getSplitPane | protected JSplitPane getSplitPane()(Code) | | Get the splitpane
the split pane |
getTreePath | protected String getTreePath()(Code) | | Get the path of the selected treenode by looping the selected path array
and placing a '/' between each item
the path to the selected XModel |
isDbTableNodeSelected | protected boolean isDbTableNodeSelected()(Code) | | Determines whether selected node is a database table node
|
mouseClicked | public void mouseClicked(MouseEvent me)(Code) | | The mouse was clicked on this component
Parameters: me - the mouse event |
mouseEntered | public void mouseEntered(MouseEvent me)(Code) | | The mouse entered this component's area
Parameters: me - the mouse event |
mouseExited | public void mouseExited(MouseEvent me)(Code) | | The mouse exited this component's area
Parameters: me - the mouse event |
mousePressed | public void mousePressed(MouseEvent me)(Code) | | The mouse button was pressed while over this component
Parameters: me - the mouse event |
mouseReleased | public void mouseReleased(MouseEvent me)(Code) | | Responds to a mouse button release by poping up a context menu for the component
Parameters: me - |
propertyChange | public void propertyChange(PropertyChangeEvent evt)(Code) | | This method gets called when a bound property is changed
|
refresh | public synchronized void refresh(String selectedPath)(Code) | | Refresh the model representation
Parameters: selectedPath - the selected path in the tree or null for no sleection |
renameNode | public void renameNode(String path, String name)(Code) | | Reset the node's ID
Parameters: path - the path of the parent node Parameters: name - the name/ID of the new node |
setModelTreeListener | public void setModelTreeListener(ModelTreeListener mtl)(Code) | | Set listener for the tree
Parameters: the - listener |
setNodeValue | public void setNodeValue(String path, String attribName, String value)(Code) | | Reset the node's value
Parameters: path - the path of the parent node Parameters: name - the name/ID of the new node |
setProjectPath | public void setProjectPath(String ppath)(Code) | | |
setRootModel | public void setRootModel(XModel root)(Code) | | Set the root mode node displayed by this visualizer
Parameters: root - the root of the node hierarchy |
setSelectedPath | public void setSelectedPath(String path)(Code) | | Set the selected path in the tree
Parameters: the - selection path |
|
|