net.clackrouter.gui
Class HierarchComponent

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by net.clackrouter.gui.HierarchComponent
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

Deprecated. - Hierarchical components are not supported for now.

public class HierarchComponent
extends javax.swing.JPanel

This component is basically a throw-away experiment. Do not base anything on it.

Eventually, it may be salvaged and used as a framework for many hierarchical components, but right now its a mess of old GPDocument and TCP GUI code.

There must be a better way, but I don't have time to sort it out right now.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  Rule columnRule
          Deprecated. The column rule for the graph
protected  java.util.Hashtable componentCells
          Deprecated.  
protected  TCB currentTCB
          Deprecated.  
protected  TCB dummyTCB
          Deprecated.  
protected  boolean enableTooltips
          Deprecated.  
protected  java.io.File file
          Deprecated. Filename for the current document.
protected  java.lang.String findPattern
          Deprecated. contains the find pattern for this document
protected  javax.swing.Action fitAction
          Deprecated. Action used for fitting the size
protected  RouterGraph graph
          Deprecated. The joint graph for this document
protected  ClackFramework graphpad
          Deprecated. A reference to the top level component
protected  javax.swing.JTextField ip_text
          Deprecated.  
protected static boolean isMetric
          Deprecated. true if the current graph is Metric.
protected  java.lang.Object lastFound
          Deprecated. contains the last found object
protected static boolean libraryExpanded
          Deprecated. true if the library expand is expanded default is true
protected  boolean modified
          Deprecated. True if this documents graph model was modified since last save.
protected  TCP mTCP
          Deprecated.  
protected  javax.swing.JDialog overviewDialog
          Deprecated. The overview Dialog for this document.
protected  javax.swing.JTextField port_text
          Deprecated.  
protected  Router router
          Deprecated.  
protected  Rule rowRule
          Deprecated. The row rule for the graph
protected  javax.swing.JScrollPane scrollPane
          Deprecated. Container for the graph so that you can scroll over the graph
protected static boolean showRuler
          Deprecated. true if the ruler show is activated
protected  GPSplitPane splitPane
          Deprecated. Splitpane between the libraries and the graph
protected  GPStatusBar statusbar
          Deprecated.  
protected  ClackTab tab
          Deprecated. a reference to the internal Frame
protected  Touch touch
          Deprecated. On the fly layout
 
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.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
HierarchComponent(ClackFramework graphpad, RouterGraph gpGraph, GraphModel model, TCP t)
          Deprecated. Constructor for GPDocument.
 
Method Summary
protected  javax.swing.JScrollPane createScrollPane()
          Deprecated.  
 Rule getColumnRule()
          Deprecated. Returns the columnRule.
protected  java.lang.String getDocumentScale()
          Deprecated.  
protected  java.lang.String getDocumentTitle()
          Deprecated.  
 java.io.File getFilename()
          Deprecated. Returns the filename.
 JGraph getGraph()
          Deprecated.  
 ClackFramework getGraphpad()
          Deprecated. Returns the graphpad.
 Router getRouter()
          Deprecated.  
 Rule getRowRule()
          Deprecated. Returns the rowRule.
 javax.swing.JScrollPane getScrollPane()
          Deprecated. Returns the scrollPane.
 GPSplitPane getSplitPane()
          Deprecated. Returns the splitPane.
 GPStatusBar getStatusBar()
          Deprecated.  
 Touch getTouch()
          Deprecated. Returns the touch.
 void graphChanged(GraphModelEvent e)
          Deprecated.  
 boolean isEnableTooltips()
          Deprecated. Returns the enableTooltips.
 void setColumnRule(Rule columnRule)
          Deprecated. Sets the columnRule.
 void setCurrentTCB(TCB newTCB)
          Deprecated.  
 void setEnableTooltips(boolean enableTooltips)
          Deprecated. Sets the enableTooltips.
 void setFilename(java.io.File filename)
          Deprecated. Sets the filename.
 void setGraphpad(ClackFramework graphpad)
          Deprecated. Sets the graphpad.
 void setModified(boolean modified)
          Deprecated.  
 void setRowRule(Rule rowRule)
          Deprecated. Sets the rowRule.
 void setScrollPane(javax.swing.JScrollPane scrollPane)
          Deprecated. Sets the scrollPane.
 void setSplitPane(GPSplitPane splitPane)
          Deprecated. Sets the splitPane.
 void setTouch(Touch touch)
          Deprecated. Sets the touch.
protected  void update()
          Deprecated.  
protected  void updateTabTitle()
          Deprecated. Returns the internalFrame.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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

enableTooltips

protected boolean enableTooltips
Deprecated. 

file

protected java.io.File file
Deprecated. 
Filename for the current document. Null if never saved or opened.


graphpad

protected ClackFramework graphpad
Deprecated. 
A reference to the top level component


splitPane

protected GPSplitPane splitPane
Deprecated. 
Splitpane between the libraries and the graph


scrollPane

protected javax.swing.JScrollPane scrollPane
Deprecated. 
Container for the graph so that you can scroll over the graph


graph

protected RouterGraph graph
Deprecated. 
The joint graph for this document


overviewDialog

protected javax.swing.JDialog overviewDialog
Deprecated. 
The overview Dialog for this document. Can be null.


columnRule

protected Rule columnRule
Deprecated. 
The column rule for the graph


rowRule

protected Rule rowRule
Deprecated. 
The row rule for the graph


touch

protected Touch touch
Deprecated. 
On the fly layout


modified

protected boolean modified
Deprecated. 
True if this documents graph model was modified since last save.


isMetric

protected static boolean isMetric
Deprecated. 
true if the current graph is Metric. default is true.


libraryExpanded

protected static boolean libraryExpanded
Deprecated. 
true if the library expand is expanded default is true


showRuler

protected static boolean showRuler
Deprecated. 
true if the ruler show is activated


fitAction

protected javax.swing.Action fitAction
Deprecated. 
Action used for fitting the size


findPattern

protected java.lang.String findPattern
Deprecated. 
contains the find pattern for this document


lastFound

protected java.lang.Object lastFound
Deprecated. 
contains the last found object


tab

protected ClackTab tab
Deprecated. 
a reference to the internal Frame


router

protected Router router
Deprecated. 

currentTCB

protected TCB currentTCB
Deprecated. 

dummyTCB

protected TCB dummyTCB
Deprecated. 

mTCP

protected TCP mTCP
Deprecated. 

componentCells

protected java.util.Hashtable componentCells
Deprecated. 

ip_text

protected javax.swing.JTextField ip_text
Deprecated. 

port_text

protected javax.swing.JTextField port_text
Deprecated. 

statusbar

protected GPStatusBar statusbar
Deprecated. 
Constructor Detail

HierarchComponent

public HierarchComponent(ClackFramework graphpad,
                         RouterGraph gpGraph,
                         GraphModel model,
                         TCP t)
Deprecated. 
Constructor for GPDocument.

Method Detail

setCurrentTCB

public void setCurrentTCB(TCB newTCB)
Deprecated. 

getFilename

public java.io.File getFilename()
Deprecated. 
Returns the filename.

Returns:
String

getRouter

public Router getRouter()
Deprecated. 

getGraph

public JGraph getGraph()
Deprecated. 

getStatusBar

public GPStatusBar getStatusBar()
Deprecated. 

setFilename

public void setFilename(java.io.File filename)
Deprecated. 
Sets the filename.

Parameters:
filename - The filename to set

createScrollPane

protected javax.swing.JScrollPane createScrollPane()
Deprecated. 

setModified

public void setModified(boolean modified)
Deprecated. 

getDocumentTitle

protected java.lang.String getDocumentTitle()
Deprecated. 

getDocumentScale

protected java.lang.String getDocumentScale()
Deprecated. 

graphChanged

public void graphChanged(GraphModelEvent e)
Deprecated. 

update

protected void update()
Deprecated. 

getGraphpad

public ClackFramework getGraphpad()
Deprecated. 
Returns the graphpad.

Returns:
GPGraphpad

setGraphpad

public void setGraphpad(ClackFramework graphpad)
Deprecated. 
Sets the graphpad.

Parameters:
graphpad - The graphpad to set

getTouch

public Touch getTouch()
Deprecated. 
Returns the touch.

Returns:
Touch

setTouch

public void setTouch(Touch touch)
Deprecated. 
Sets the touch.

Parameters:
touch - The touch to set

getSplitPane

public GPSplitPane getSplitPane()
Deprecated. 
Returns the splitPane.

Returns:
JSplitPane

setSplitPane

public void setSplitPane(GPSplitPane splitPane)
Deprecated. 
Sets the splitPane.

Parameters:
splitPane - The splitPane to set

getScrollPane

public javax.swing.JScrollPane getScrollPane()
Deprecated. 
Returns the scrollPane.

Returns:
JScrollPane

setScrollPane

public void setScrollPane(javax.swing.JScrollPane scrollPane)
Deprecated. 
Sets the scrollPane.

Parameters:
scrollPane - The scrollPane to set

getColumnRule

public Rule getColumnRule()
Deprecated. 
Returns the columnRule.

Returns:
Rule

getRowRule

public Rule getRowRule()
Deprecated. 
Returns the rowRule.

Returns:
Rule

setColumnRule

public void setColumnRule(Rule columnRule)
Deprecated. 
Sets the columnRule.

Parameters:
columnRule - The columnRule to set

setRowRule

public void setRowRule(Rule rowRule)
Deprecated. 
Sets the rowRule.

Parameters:
rowRule - The rowRule to set

isEnableTooltips

public boolean isEnableTooltips()
Deprecated. 
Returns the enableTooltips.

Returns:
boolean

setEnableTooltips

public void setEnableTooltips(boolean enableTooltips)
Deprecated. 
Sets the enableTooltips.

Parameters:
enableTooltips - The enableTooltips to set

updateTabTitle

protected void updateTabTitle()
Deprecated. 
Returns the internalFrame.