|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
wt.clients.tools.transfer.ExportGraphView
Nested Class Summary | |
(package private) class |
ExportGraphView.MyRenderer
|
(package private) class |
ExportGraphView.myTreeListener
|
(package private) class |
ExportGraphView.SymAction
|
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface wt.clients.beans.graph.GraphModelListener |
LINK_INSERTED, LINK_REMOVED, NODE_INSERTED, NODE_REMOVED, STRUCTURE_CHANGED |
Fields inherited from interface wt.clients.beans.graph.GraphSelectionModelListener |
LINK_SELECTED, LINK_UNSELECTED, NODE_SELECTED, NODE_UNSELECTED, SELECTION_CLEARED |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ExportGraphView(GraphModel pGraphModel,
GraphSelectionModel pGraphSelectionModel)
|
Method Summary | |
void |
addZoomFactor(float a_ZoomFactor)
Sets the value of the attribute: zoomFactor. |
private void |
buildConstraints(GridBagConstraints gbc,
int x,
int y,
int w,
int h,
double wx,
double wy,
int anchor,
int fill)
|
void |
compact(int graphNumber)
Straight -line layout function |
void |
Curved_layout(int graphNumber)
curved layout function |
void |
EditCriteria(String clname)
edit criteria action |
ActionLoader |
getActionLoader()
Gets the value of the attribute: actionLoader. |
(package private) Vector |
getAllNeighbors(String name,
String parent)
get all neighbors of a node in the preview, when a node is selected |
String |
getDblClickNodeAction()
|
static ExportGraphView |
getFocusedComponent()
Gets the value of the attribute: FOCUSED_COMPONENT. |
ExportGraphViewCellRenderer |
getGraphViewCellRenderer()
Gets the object for the association that plays role: graphViewCellRenderer. |
ExportGraphViewLinkRenderer |
getGraphViewLinkRenderer()
Gets the object for the association that plays role: graphViewLinkRenderer. |
int |
getMode()
Gets the value of the attribute: mode. |
GraphModel |
getModel()
Gets the object for the association that plays role: MODEL. |
boolean |
getMouseDrag()
|
Dimension |
getPreferredSize()
|
GraphSelectionModel |
getSelectionModel()
Gets the object for the association that plays role: SELECTION_MODEL. |
boolean |
getShowAliases()
|
boolean |
getShowLinkText()
|
Dimension |
getsize()
get the size of the graph to determine the size of the window |
void |
getSizeOfNode(GraphNode pNode,
Rectangle thisrect,
Vector nameHash)
get the size of a node. |
protected Polygon |
getZoneAt(Point pPoint)
|
float |
getZoomFactor()
Gets the value of the attribute: zoomFactor. |
void |
graphLinkChanged(PropertyChangeEvent e)
|
void |
graphLinkInserted(GraphModelEvent e)
|
void |
graphLinkRemoved(GraphModelEvent e)
|
void |
graphLinkSelected(GraphSelectionModelEvent e)
|
void |
graphLinkUnselected(GraphSelectionModelEvent e)
|
void |
graphNodeChanged(PropertyChangeEvent e)
|
void |
graphNodeInserted(GraphModelEvent e)
|
void |
graphNodeRemoved(GraphModelEvent e)
|
void |
graphNodeSelected(GraphSelectionModelEvent e)
|
void |
graphNodeUnselected(GraphSelectionModelEvent e)
|
void |
graphSelectionCleared(GraphSelectionModelEvent e)
|
void |
graphStructureChanged(GraphModelEvent e)
|
boolean |
isCurved()
|
boolean |
isExcludedFromPreview(String name)
determine if a class is excluded in the graph |
boolean |
isObjectExisting(Point pPosition)
|
void |
makeTree()
get the preview tree |
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
(package private) void |
okMessageButton_ActionPerformed()
|
void |
paint(Graphics g)
paint the window |
protected void |
paintLink(Graphics2D g,
ExportGraphLink pLink)
|
protected void |
paintLink(Graphics2D g,
GraphLink pLink,
ExportGraphViewLinkRenderer pLinkRenderer)
|
protected void |
paintLink2(Graphics2D g,
GraphLink pLink,
ExportGraphViewLinkRenderer pLinkRenderer)
|
protected void |
paintNode(Graphics2D g,
GraphNode pNode)
|
protected void |
paintNode(Graphics2D g,
GraphNode pNode,
ExportGraphViewCellRenderer pNodeRenderer)
|
protected void |
paintNode2(Graphics2D g,
GraphNode pNode,
ExportGraphViewCellRenderer pNodeRenderer)
|
protected void |
paintNode3(Graphics2D g,
GraphNode pNode,
ExportGraphViewCellRenderer pNodeRenderer)
|
void |
Preview()
do preview |
void |
printall(int[] a)
|
boolean |
removed(Object name)
|
(package private) void |
removeObject_ActionPerformed()
|
void |
resize_window()
resize the window |
void |
resize_window2()
resize the window and scroll back to origin |
void |
resize_window3()
resize the window and scroll to the node being dragged |
void |
resizegraph(ExportGraphNode rNode,
int ceiling)
Create a default layout given a new graph/subgraph and a ceiling in case of subgraph |
private void |
selectAllIn(Rectangle rect1)
region in select |
void |
setActionLoader(ActionLoader a_ActionLoader)
Sets the value of the attribute: actionLoader. |
void |
setDblClickNodeAction(String a_DblClickNodeAction)
Sets the value of the attribute: dblClickNodeAction. |
static void |
setFocusedComponent(ExportGraphView a_FocusedComponent)
Sets the value of the attribute: FOCUSED_COMPONENT. |
void |
setGraphViewCellRenderer(ExportGraphViewCellRenderer a_GraphViewCellRenderer)
Sets the object for the association that plays role: graphViewCellRenderer. |
void |
setGraphViewLinkRenderer(ExportGraphViewLinkRenderer a_GraphViewLinkRenderer)
Sets the object for the association that plays role: graphViewLinkRenderer. |
void |
setMode(int a_Mode)
Sets the value of the attribute: mode. |
void |
setModel(GraphModel a_Model)
|
void |
setPreviewGraph(ExportObjectGraphTemplate og)
Set the ObjectGraphTemplate to use to compute Preview |
void |
setRootNode(ExportGraphNode pNode)
set the root node of the graph |
void |
setSelectedNames(String name,
boolean matchcase)
Select all nodes/links that startwith the text |
void |
setSelectionModel(GraphSelectionModel a_SelectionModel)
Sets the object for the association that plays role: SELECTION_MODEL. |
void |
setShowAliases(boolean a_bool)
|
void |
setShowLinkText(boolean a_bool)
|
void |
setShowModes(int graphNumber)
Create a default layout given a new graph/subgraph and a ceiling in case of subgraph |
void |
setZoomFactor(float a_ZoomFactor)
Sets the value of the attribute: zoomFactor. |
private void |
showErrorMessage(String errmes)
Show error message dialog |
boolean |
showExcluded()
returns flag to show excluded entities |
boolean |
showJavaClasses()
|
(package private) void |
showWithSize(int x,
int y)
Show dialog |
Dimension |
sizeofScreen()
get the size of the graph |
(package private) void |
unremoveObject_ActionPerformed()
|
void |
update(Graphics g)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public Hashtable selectionZone
public Polygon startPolygon
public int mode
public Hashtable linkToRender
private ActionLoader actionLoader
private ExportGraphViewCellRenderer graphViewCellRenderer
private ExportGraphViewLinkRenderer graphViewLinkRenderer
public static final int SELECT_MODE
public static final int MOVE_MODE
private static ExportGraphView focusedComponent
private GraphModel model
private GraphSelectionModel selectionModel
private String clickBackgroundAction
private String clickNodeAction
private String clickLinkAction
private String dblClickBackgroundAction
private String dblClickNodeAction
private String dblClickLinkAction
public Hashtable NodeselectionZone
public Hashtable LinkselectionZone
public float zoomFactor
public boolean showexcluded
public boolean showjavaclasses
public ExportGraphNode rootNode
public static final int WS_SIZE
public int NODE_PADDING
public int X_PADDING
public static final int MAX_DEPTH
public int EXPAND_LEVEL
public String rootclass
Dimension win_size
QueryTemplate qt
String clname_global
ExportCriteriaBuilderFrame IEBF
Hashtable QThash
DefaultMutableTreeNode Etop
DefaultTreeModel EtreeModel1
JTree EWTObjectTree
JScrollPane EWTObjectPane
Font f1
Hashtable pihash
Hashtable removedVec
JPanel jp
boolean mousedragging
Point nodenewPoint
public Point startPoint
public Point endPoint
int regionSelectMode
MouseEvent eMouseSaved
boolean down
boolean tt_continue
int stretch_x
int stretch_y
Thread tt
boolean in_paint
boolean showAliases
boolean curved
boolean showLinkText
ExportObjectGraphTemplate previewGraph
ObjectGraph previewReturnedGraph
Vector nodeDragSpace
Point firstNodePoint
JDialog jd
GridBagLayout jdgb
GridBagConstraints constraints
Font f2
JButton okMessageButton
Vector FIFOVec
Constructor Detail |
public ExportGraphView(GraphModel pGraphModel, GraphSelectionModel pGraphSelectionModel)
pGraphModel
- pGraphSelectionModel
- Method Detail |
public boolean getMouseDrag()
public boolean getShowAliases()
public void setShowAliases(boolean a_bool)
public boolean getShowLinkText()
public void setShowLinkText(boolean a_bool)
public void setPreviewGraph(ExportObjectGraphTemplate og)
og
- the graphtemplate to useVector getAllNeighbors(String name, String parent)
name
- of the node selectedparent
- of the node selectedpublic float getZoomFactor()
public void setZoomFactor(float a_ZoomFactor) throws WTPropertyVetoException
a_ZoomFactor
-
WTPropertyVetoException
public void addZoomFactor(float a_ZoomFactor)
a_ZoomFactor
-
WTPropertyVetoException
public ActionLoader getActionLoader()
public void setActionLoader(ActionLoader a_ActionLoader)
a_ActionLoader
- public String getDblClickNodeAction()
public void setDblClickNodeAction(String a_DblClickNodeAction)
a_DblClickNodeAction
- public ExportGraphViewCellRenderer getGraphViewCellRenderer()
public void setGraphViewCellRenderer(ExportGraphViewCellRenderer a_GraphViewCellRenderer)
a_GraphViewCellRenderer
- public ExportGraphViewLinkRenderer getGraphViewLinkRenderer()
public void setGraphViewLinkRenderer(ExportGraphViewLinkRenderer a_GraphViewLinkRenderer)
a_GraphViewLinkRenderer
- public static ExportGraphView getFocusedComponent()
public static void setFocusedComponent(ExportGraphView a_FocusedComponent)
a_FocusedComponent
- public void setModel(GraphModel a_Model) throws WTPropertyVetoException
WTPropertyVetoException
public GraphSelectionModel getSelectionModel()
public void setSelectionModel(GraphSelectionModel a_SelectionModel) throws WTPropertyVetoException
a_SelectionModel
-
WTPropertyVetoException
public GraphModel getModel()
public int getMode()
public void setMode(int a_Mode) throws WTPropertyVetoException
a_Mode
-
WTPropertyVetoException
public void update(Graphics g)
g
- public void paint(Graphics g)
g
- protected void paintNode(Graphics2D g, GraphNode pNode)
g
- pNode
- protected void paintNode(Graphics2D g, GraphNode pNode, ExportGraphViewCellRenderer pNodeRenderer)
g
- pNode
- pNodeRenderer
- protected void paintNode2(Graphics2D g, GraphNode pNode, ExportGraphViewCellRenderer pNodeRenderer)
protected void paintNode3(Graphics2D g, GraphNode pNode, ExportGraphViewCellRenderer pNodeRenderer)
protected void paintLink(Graphics2D g, ExportGraphLink pLink)
g
- pLink
- protected void paintLink(Graphics2D g, GraphLink pLink, ExportGraphViewLinkRenderer pLinkRenderer)
g
- pLink
- pLinkRenderer
- protected void paintLink2(Graphics2D g, GraphLink pLink, ExportGraphViewLinkRenderer pLinkRenderer)
public Dimension getPreferredSize()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public boolean isObjectExisting(Point pPosition)
pPosition
-
public boolean showExcluded()
public boolean showJavaClasses()
public Dimension getsize()
public void getSizeOfNode(GraphNode pNode, Rectangle thisrect, Vector nameHash)
pNode
- node to use for sizethisrect
- current size of windownameHash
- list of already sized nodespublic void setRootNode(ExportGraphNode pNode)
public void resizegraph(ExportGraphNode rNode, int ceiling)
rNode
- node to use for originceiling
- to keep subgraphs separated, ceiling is the borderpublic void setShowModes(int graphNumber)
public void printall(int[] a)
public void compact(int graphNumber)
graphNumber
- node to use for originpublic void Curved_layout(int graphNumber)
graphNumber
- node to use for originpublic boolean isCurved()
protected Polygon getZoneAt(Point pPoint)
pPoint
-
private void selectAllIn(Rectangle rect1)
rect1
- rectangle bounding box of selectionpublic void EditCriteria(String clname)
clname
- name of node to editpublic void Preview()
public void makeTree()
public Dimension sizeofScreen()
void removeObject_ActionPerformed()
void unremoveObject_ActionPerformed()
public boolean isExcludedFromPreview(String name)
public boolean removed(Object name)
public void resize_window()
public void resize_window2()
public void resize_window3()
private void showErrorMessage(String errmes)
errmes
- the error messagevoid showWithSize(int x, int y)
x
- width used if size comes up zeroy
- height used if size comes up zeroprivate void buildConstraints(GridBagConstraints gbc, int x, int y, int w, int h, double wx, double wy, int anchor, int fill)
void okMessageButton_ActionPerformed()
public void setSelectedNames(String name, boolean matchcase)
name
- to select nodes/links matchingpublic void graphNodeSelected(GraphSelectionModelEvent e)
graphNodeSelected
in interface GraphSelectionModelListener
e
- public void graphNodeUnselected(GraphSelectionModelEvent e)
graphNodeUnselected
in interface GraphSelectionModelListener
e
- public void graphLinkSelected(GraphSelectionModelEvent e)
graphLinkSelected
in interface GraphSelectionModelListener
e
- public void graphLinkUnselected(GraphSelectionModelEvent e)
graphLinkUnselected
in interface GraphSelectionModelListener
e
- public void graphSelectionCleared(GraphSelectionModelEvent e)
graphSelectionCleared
in interface GraphSelectionModelListener
e
- public void graphNodeInserted(GraphModelEvent e)
graphNodeInserted
in interface GraphModelListener
e
- public void graphNodeChanged(PropertyChangeEvent e)
graphNodeChanged
in interface GraphModelListener
e
- public void graphNodeRemoved(GraphModelEvent e)
graphNodeRemoved
in interface GraphModelListener
e
- public void graphLinkInserted(GraphModelEvent e)
graphLinkInserted
in interface GraphModelListener
e
- public void graphLinkChanged(PropertyChangeEvent e)
graphLinkChanged
in interface GraphModelListener
e
- public void graphLinkRemoved(GraphModelEvent e)
graphLinkRemoved
in interface GraphModelListener
e
- public void graphStructureChanged(GraphModelEvent e)
graphStructureChanged
in interface GraphModelListener
e
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |