net.clackrouter.router.graph
Class RouterView

java.lang.Object
  extended by net.clackrouter.router.graph.RouterView
All Implemented Interfaces:
ClackView

public class RouterView
extends java.lang.Object
implements ClackView

The view class for a Router, which is a split screen of a RouterGraph and the hideable property view window.


Field Summary
static java.lang.String ACTION_CLOSE
           
static java.lang.String ACTION_UNDOCK
           
protected  javax.swing.JTabbedPane mPropertyViewsTabs
           
protected  javax.swing.JSplitPane mSplit
           
static double SPLIT_RATIO
           
 
Constructor Summary
RouterView(JGraph graph, ClackDocument parent)
           
 
Method Summary
 void addToPropertyViewTab(java.lang.String tab_name, javax.swing.JPanel panel)
           
 java.awt.Component getComponent()
          The component associated with this view
 JGraph getGraph()
          The JGraph associated with this view
 boolean isVisibleView()
          indicates if this view is currently visible to the user
 void setIsVisibleView(boolean b)
          set flag indicating if this view is current visible to the user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_CLOSE

public static java.lang.String ACTION_CLOSE

ACTION_UNDOCK

public static java.lang.String ACTION_UNDOCK

SPLIT_RATIO

public static double SPLIT_RATIO

mPropertyViewsTabs

protected javax.swing.JTabbedPane mPropertyViewsTabs

mSplit

protected javax.swing.JSplitPane mSplit
Constructor Detail

RouterView

public RouterView(JGraph graph,
                  ClackDocument parent)
Method Detail

addToPropertyViewTab

public void addToPropertyViewTab(java.lang.String tab_name,
                                 javax.swing.JPanel panel)

getGraph

public JGraph getGraph()
Description copied from interface: ClackView
The JGraph associated with this view

Specified by:
getGraph in interface ClackView

getComponent

public java.awt.Component getComponent()
Description copied from interface: ClackView
The component associated with this view

Specified by:
getComponent in interface ClackView

isVisibleView

public boolean isVisibleView()
Description copied from interface: ClackView
indicates if this view is currently visible to the user

Specified by:
isVisibleView in interface ClackView

setIsVisibleView

public void setIsVisibleView(boolean b)
Description copied from interface: ClackView
set flag indicating if this view is current visible to the user

Specified by:
setIsVisibleView in interface ClackView