wt.clients.tools.transfer
Class ExportGraphView

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bywt.clients.tools.transfer.ExportGraphView
All Implemented Interfaces:
Accessible, EventListener, GraphModelListener, GraphSelectionModelListener, ImageObserver, MenuContainer, MouseListener, MouseMotionListener, Serializable

public class ExportGraphView
extends JPanel
implements GraphModelListener, GraphSelectionModelListener, MouseMotionListener, MouseListener, Serializable

See Also:
Serialized Form

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
 
Field Summary
private  ActionLoader actionLoader
           
private  String clickBackgroundAction
           
private  String clickLinkAction
           
private  String clickNodeAction
           
(package private)  String clname_global
           
(package private)  GridBagConstraints constraints
           
(package private)  boolean curved
           
private  String dblClickBackgroundAction
           
private  String dblClickLinkAction
           
private  String dblClickNodeAction
           
(package private)  boolean down
           
(package private)  MouseEvent eMouseSaved
           
 Point endPoint
           
(package private)  DefaultMutableTreeNode Etop
           
(package private)  DefaultTreeModel EtreeModel1
           
(package private)  JScrollPane EWTObjectPane
           
(package private)  JTree EWTObjectTree
           
 int EXPAND_LEVEL
           
(package private)  Font f1
           
(package private)  Font f2
           
(package private)  Vector FIFOVec
           
(package private)  Point firstNodePoint
           
private static ExportGraphView focusedComponent
           
private  ExportGraphViewCellRenderer graphViewCellRenderer
           
private  ExportGraphViewLinkRenderer graphViewLinkRenderer
           
(package private)  ExportCriteriaBuilderFrame IEBF
           
(package private)  boolean in_paint
           
(package private)  JDialog jd
           
(package private)  GridBagLayout jdgb
           
(package private)  JPanel jp
           
 Hashtable LinkselectionZone
           
 Hashtable linkToRender
           
static int MAX_DEPTH
           
 int mode
           
private  GraphModel model
           
(package private)  boolean mousedragging
           
static int MOVE_MODE
           
 int NODE_PADDING
           
(package private)  Vector nodeDragSpace
           
(package private)  Point nodenewPoint
           
 Hashtable NodeselectionZone
           
(package private)  JButton okMessageButton
           
(package private)  Hashtable pihash
           
(package private)  ExportObjectGraphTemplate previewGraph
           
(package private)  ObjectGraph previewReturnedGraph
           
(package private)  QueryTemplate qt
           
(package private)  Hashtable QThash
           
(package private)  int regionSelectMode
           
(package private)  Hashtable removedVec
           
 String rootclass
           
 ExportGraphNode rootNode
           
static int SELECT_MODE
           
private  GraphSelectionModel selectionModel
           
 Hashtable selectionZone
           
(package private)  boolean showAliases
           
 boolean showexcluded
           
 boolean showjavaclasses
           
(package private)  boolean showLinkText
           
 Point startPoint
           
 Polygon startPolygon
           
(package private)  int stretch_x
           
(package private)  int stretch_y
           
(package private)  Thread tt
           
(package private)  boolean tt_continue
           
(package private)  Dimension win_size
           
static int WS_SIZE
           
 int X_PADDING
           
 float zoomFactor
           
 
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 javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selectionZone

public Hashtable selectionZone

startPolygon

public Polygon startPolygon

mode

public int mode

linkToRender

public Hashtable linkToRender

actionLoader

private ActionLoader actionLoader

graphViewCellRenderer

private ExportGraphViewCellRenderer graphViewCellRenderer

graphViewLinkRenderer

private ExportGraphViewLinkRenderer graphViewLinkRenderer

SELECT_MODE

public static final int SELECT_MODE
See Also:
Constant Field Values

MOVE_MODE

public static final int MOVE_MODE
See Also:
Constant Field Values

focusedComponent

private static ExportGraphView focusedComponent

model

private GraphModel model

selectionModel

private GraphSelectionModel selectionModel

clickBackgroundAction

private String clickBackgroundAction

clickNodeAction

private String clickNodeAction

clickLinkAction

private String clickLinkAction

dblClickBackgroundAction

private String dblClickBackgroundAction

dblClickNodeAction

private String dblClickNodeAction

dblClickLinkAction

private String dblClickLinkAction

NodeselectionZone

public Hashtable NodeselectionZone

LinkselectionZone

public Hashtable LinkselectionZone

zoomFactor

public float zoomFactor

showexcluded

public boolean showexcluded

showjavaclasses

public boolean showjavaclasses

rootNode

public ExportGraphNode rootNode

WS_SIZE

public static final int WS_SIZE
See Also:
Constant Field Values

NODE_PADDING

public int NODE_PADDING

X_PADDING

public int X_PADDING

MAX_DEPTH

public static final int MAX_DEPTH
See Also:
Constant Field Values

EXPAND_LEVEL

public int EXPAND_LEVEL

rootclass

public String rootclass

win_size

Dimension win_size

qt

QueryTemplate qt

clname_global

String clname_global

IEBF

ExportCriteriaBuilderFrame IEBF

QThash

Hashtable QThash

Etop

DefaultMutableTreeNode Etop

EtreeModel1

DefaultTreeModel EtreeModel1

EWTObjectTree

JTree EWTObjectTree

EWTObjectPane

JScrollPane EWTObjectPane

f1

Font f1

pihash

Hashtable pihash

removedVec

Hashtable removedVec

jp

JPanel jp

mousedragging

boolean mousedragging

nodenewPoint

Point nodenewPoint

startPoint

public Point startPoint

endPoint

public Point endPoint

regionSelectMode

int regionSelectMode

eMouseSaved

MouseEvent eMouseSaved

down

boolean down

tt_continue

boolean tt_continue

stretch_x

int stretch_x

stretch_y

int stretch_y

tt

Thread tt

in_paint

boolean in_paint

showAliases

boolean showAliases

curved

boolean curved

showLinkText

boolean showLinkText

previewGraph

ExportObjectGraphTemplate previewGraph

previewReturnedGraph

ObjectGraph previewReturnedGraph

nodeDragSpace

Vector nodeDragSpace

firstNodePoint

Point firstNodePoint

jd

JDialog jd

jdgb

GridBagLayout jdgb

constraints

GridBagConstraints constraints

f2

Font f2

okMessageButton

JButton okMessageButton

FIFOVec

Vector FIFOVec
Constructor Detail

ExportGraphView

public ExportGraphView(GraphModel pGraphModel,
                       GraphSelectionModel pGraphSelectionModel)
Parameters:
pGraphModel -
pGraphSelectionModel -
Method Detail

getMouseDrag

public boolean getMouseDrag()

getShowAliases

public boolean getShowAliases()

setShowAliases

public void setShowAliases(boolean a_bool)

getShowLinkText

public boolean getShowLinkText()

setShowLinkText

public void setShowLinkText(boolean a_bool)

setPreviewGraph

public void setPreviewGraph(ExportObjectGraphTemplate og)
Set the ObjectGraphTemplate to use to compute Preview

Parameters:
og - the graphtemplate to use

getAllNeighbors

Vector getAllNeighbors(String name,
                       String parent)
get all neighbors of a node in the preview, when a node is selected

Parameters:
name - of the node selected
parent - of the node selected

getZoomFactor

public float getZoomFactor()
Gets the value of the attribute: zoomFactor.

Returns:
float

setZoomFactor

public void setZoomFactor(float a_ZoomFactor)
                   throws WTPropertyVetoException
Sets the value of the attribute: zoomFactor.

Parameters:
a_ZoomFactor -
Throws:
WTPropertyVetoException

addZoomFactor

public void addZoomFactor(float a_ZoomFactor)
Sets the value of the attribute: zoomFactor.

Parameters:
a_ZoomFactor -
Throws:
WTPropertyVetoException

getActionLoader

public ActionLoader getActionLoader()
Gets the value of the attribute: actionLoader.

Returns:
ActionLoader

setActionLoader

public void setActionLoader(ActionLoader a_ActionLoader)
Sets the value of the attribute: actionLoader.

Parameters:
a_ActionLoader -

getDblClickNodeAction

public String getDblClickNodeAction()

setDblClickNodeAction

public void setDblClickNodeAction(String a_DblClickNodeAction)
Sets the value of the attribute: dblClickNodeAction.

Parameters:
a_DblClickNodeAction -

getGraphViewCellRenderer

public ExportGraphViewCellRenderer getGraphViewCellRenderer()
Gets the object for the association that plays role: graphViewCellRenderer.

Returns:
GraphViewCellRenderer

setGraphViewCellRenderer

public void setGraphViewCellRenderer(ExportGraphViewCellRenderer a_GraphViewCellRenderer)
Sets the object for the association that plays role: graphViewCellRenderer.

Parameters:
a_GraphViewCellRenderer -

getGraphViewLinkRenderer

public ExportGraphViewLinkRenderer getGraphViewLinkRenderer()
Gets the object for the association that plays role: graphViewLinkRenderer.

Returns:
GraphViewLinkRenderer

setGraphViewLinkRenderer

public void setGraphViewLinkRenderer(ExportGraphViewLinkRenderer a_GraphViewLinkRenderer)
Sets the object for the association that plays role: graphViewLinkRenderer.

Parameters:
a_GraphViewLinkRenderer -

getFocusedComponent

public static ExportGraphView getFocusedComponent()
Gets the value of the attribute: FOCUSED_COMPONENT.

Returns:
AbstractGraphView

setFocusedComponent

public static void setFocusedComponent(ExportGraphView a_FocusedComponent)
Sets the value of the attribute: FOCUSED_COMPONENT.

Parameters:
a_FocusedComponent -

setModel

public void setModel(GraphModel a_Model)
              throws WTPropertyVetoException
Throws:
WTPropertyVetoException

getSelectionModel

public GraphSelectionModel getSelectionModel()
Gets the object for the association that plays role: SELECTION_MODEL.

Returns:
GraphSelectionModel

setSelectionModel

public void setSelectionModel(GraphSelectionModel a_SelectionModel)
                       throws WTPropertyVetoException
Sets the object for the association that plays role: SELECTION_MODEL.

Parameters:
a_SelectionModel -
Throws:
WTPropertyVetoException

getModel

public GraphModel getModel()
Gets the object for the association that plays role: MODEL.

Returns:
GraphModel

getMode

public int getMode()
Gets the value of the attribute: mode.

Returns:
int mode

setMode

public void setMode(int a_Mode)
             throws WTPropertyVetoException
Sets the value of the attribute: mode.

Parameters:
a_Mode -
Throws:
WTPropertyVetoException

update

public void update(Graphics g)
Parameters:
g -

paint

public void paint(Graphics g)
paint the window

Parameters:
g -

paintNode

protected void paintNode(Graphics2D g,
                         GraphNode pNode)
Parameters:
g -
pNode -

paintNode

protected void paintNode(Graphics2D g,
                         GraphNode pNode,
                         ExportGraphViewCellRenderer pNodeRenderer)
Parameters:
g -
pNode -
pNodeRenderer -

paintNode2

protected void paintNode2(Graphics2D g,
                          GraphNode pNode,
                          ExportGraphViewCellRenderer pNodeRenderer)

paintNode3

protected void paintNode3(Graphics2D g,
                          GraphNode pNode,
                          ExportGraphViewCellRenderer pNodeRenderer)

paintLink

protected void paintLink(Graphics2D g,
                         ExportGraphLink pLink)
Parameters:
g -
pLink -

paintLink

protected void paintLink(Graphics2D g,
                         GraphLink pLink,
                         ExportGraphViewLinkRenderer pLinkRenderer)
Parameters:
g -
pLink -
pLinkRenderer -

paintLink2

protected void paintLink2(Graphics2D g,
                          GraphLink pLink,
                          ExportGraphViewLinkRenderer pLinkRenderer)

getPreferredSize

public Dimension getPreferredSize()
Returns:
Dimension

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener
Parameters:
e -

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Parameters:
e -

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Parameters:
e -

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Parameters:
e -

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

isObjectExisting

public boolean isObjectExisting(Point pPosition)
Parameters:
pPosition -
Returns:
boolean

showExcluded

public boolean showExcluded()
returns flag to show excluded entities


showJavaClasses

public boolean showJavaClasses()

getsize

public Dimension getsize()
get the size of the graph to determine the size of the window


getSizeOfNode

public void getSizeOfNode(GraphNode pNode,
                          Rectangle thisrect,
                          Vector nameHash)
get the size of a node. Currently not used

Parameters:
pNode - node to use for size
thisrect - current size of window
nameHash - list of already sized nodes

setRootNode

public void setRootNode(ExportGraphNode pNode)
set the root node of the graph


resizegraph

public void resizegraph(ExportGraphNode rNode,
                        int ceiling)
Create a default layout given a new graph/subgraph and a ceiling in case of subgraph

Parameters:
rNode - node to use for origin
ceiling - to keep subgraphs separated, ceiling is the border

setShowModes

public void setShowModes(int graphNumber)
Create a default layout given a new graph/subgraph and a ceiling in case of subgraph


printall

public void printall(int[] a)

compact

public void compact(int graphNumber)
Straight -line layout function

Parameters:
graphNumber - node to use for origin

Curved_layout

public void Curved_layout(int graphNumber)
curved layout function

Parameters:
graphNumber - node to use for origin

isCurved

public boolean isCurved()

getZoneAt

protected Polygon getZoneAt(Point pPoint)
Parameters:
pPoint -
Returns:
Polygon

selectAllIn

private void selectAllIn(Rectangle rect1)
region in select

Parameters:
rect1 - rectangle bounding box of selection

EditCriteria

public void EditCriteria(String clname)
edit criteria action

Parameters:
clname - name of node to edit

Preview

public void Preview()
do preview


makeTree

public void makeTree()
get the preview tree


sizeofScreen

public Dimension sizeofScreen()
get the size of the graph


removeObject_ActionPerformed

void removeObject_ActionPerformed()

unremoveObject_ActionPerformed

void unremoveObject_ActionPerformed()

isExcludedFromPreview

public boolean isExcludedFromPreview(String name)
determine if a class is excluded in the graph


removed

public boolean removed(Object name)

resize_window

public void resize_window()
resize the window


resize_window2

public void resize_window2()
resize the window and scroll back to origin


resize_window3

public void resize_window3()
resize the window and scroll to the node being dragged


showErrorMessage

private void showErrorMessage(String errmes)
Show error message dialog

Parameters:
errmes - the error message

showWithSize

void showWithSize(int x,
                  int y)
Show dialog

Parameters:
x - width used if size comes up zero
y - height used if size comes up zero

buildConstraints

private void buildConstraints(GridBagConstraints gbc,
                              int x,
                              int y,
                              int w,
                              int h,
                              double wx,
                              double wy,
                              int anchor,
                              int fill)

okMessageButton_ActionPerformed

void okMessageButton_ActionPerformed()

setSelectedNames

public void setSelectedNames(String name,
                             boolean matchcase)
Select all nodes/links that startwith the text

Parameters:
name - to select nodes/links matching

graphNodeSelected

public void graphNodeSelected(GraphSelectionModelEvent e)
Specified by:
graphNodeSelected in interface GraphSelectionModelListener
Parameters:
e -

graphNodeUnselected

public void graphNodeUnselected(GraphSelectionModelEvent e)
Specified by:
graphNodeUnselected in interface GraphSelectionModelListener
Parameters:
e -

graphLinkSelected

public void graphLinkSelected(GraphSelectionModelEvent e)
Specified by:
graphLinkSelected in interface GraphSelectionModelListener
Parameters:
e -

graphLinkUnselected

public void graphLinkUnselected(GraphSelectionModelEvent e)
Specified by:
graphLinkUnselected in interface GraphSelectionModelListener
Parameters:
e -

graphSelectionCleared

public void graphSelectionCleared(GraphSelectionModelEvent e)
Specified by:
graphSelectionCleared in interface GraphSelectionModelListener
Parameters:
e -

graphNodeInserted

public void graphNodeInserted(GraphModelEvent e)
Specified by:
graphNodeInserted in interface GraphModelListener
Parameters:
e -

graphNodeChanged

public void graphNodeChanged(PropertyChangeEvent e)
Specified by:
graphNodeChanged in interface GraphModelListener
Parameters:
e -

graphNodeRemoved

public void graphNodeRemoved(GraphModelEvent e)
Specified by:
graphNodeRemoved in interface GraphModelListener
Parameters:
e -

graphLinkInserted

public void graphLinkInserted(GraphModelEvent e)
Specified by:
graphLinkInserted in interface GraphModelListener
Parameters:
e -

graphLinkChanged

public void graphLinkChanged(PropertyChangeEvent e)
Specified by:
graphLinkChanged in interface GraphModelListener
Parameters:
e -

graphLinkRemoved

public void graphLinkRemoved(GraphModelEvent e)
Specified by:
graphLinkRemoved in interface GraphModelListener
Parameters:
e -

graphStructureChanged

public void graphStructureChanged(GraphModelEvent e)
Specified by:
graphStructureChanged in interface GraphModelListener
Parameters:
e -