anl.aida.viz
Class NetworkDisplay
java.lang.Object
anl.aida.viz.NetworkDisplay
- All Implemented Interfaces:
- GraphSwapable, AIDA2DLayer
public class NetworkDisplay
- extends java.lang.Object
- implements AIDA2DLayer, GraphSwapable
Date: Feb 11, 2009 11:43:03 AM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBJ
private static final java.lang.String OBJ
- See Also:
- Constant Field Values
EDGES
public static final java.lang.String EDGES
- See Also:
- Constant Field Values
NODES
public static final java.lang.String NODES
- See Also:
- Constant Field Values
layout
private Layout2D<TermNode> layout
graph
private ConceptGraph<TermNode> graph
nodeLayer
private edu.umd.cs.piccolo.PLayer nodeLayer
edgeLayer
private edu.umd.cs.piccolo.PLayer edgeLayer
nodePaint
private java.awt.Paint nodePaint
hideEmptyNodes
private boolean hideEmptyNodes
selection
protected SelectionManager<DocumentContainer> selection
nodeSelectionHandler
protected ItemSelectionHandler nodeSelectionHandler
edgeSelectionHandler
protected ItemSelectionHandler edgeSelectionHandler
canvas
protected Canvas2D canvas
styler
private NodeStyler styler
edgeStyler
private EdgeStyler edgeStyler
hiddenNodes
private java.util.List<edu.umd.cs.piccolo.nodes.PPath> hiddenNodes
labelsVisible
private boolean labelsVisible
NetworkDisplay
public NetworkDisplay(ConceptGraph<TermNode> graph,
Layout2D<TermNode> layout)
getObject
public static java.lang.Object getObject(edu.umd.cs.piccolo.PNode node)
initialize
public void initialize()
create
private void create()
reset
public void reset()
swapGraph
public void swapGraph(ConceptGraph<TermNode> graph,
anl.aida.util.DateRange range)
- Description copied from interface:
GraphSwapable
- Swaps the current graph for the specified graph.
- Specified by:
swapGraph
in interface GraphSwapable
- Parameters:
graph
- the new graphrange
- the date range the graph represents
doLabelsVisible
private void doLabelsVisible(boolean visible)
setLabelsVisible
public void setLabelsVisible(boolean visible)
isLabelsVisible
public boolean isLabelsVisible()
lensOver
public void lensOver(edu.umd.cs.piccolo.util.PBounds bounds,
double radius,
Canvas2D canvas)
- Specified by:
lensOver
in interface AIDA2DLayer
selectionEnabled
public void selectionEnabled(boolean enabled)
- Called when selection mode is enabled or disabled.
- Specified by:
selectionEnabled
in interface AIDA2DLayer
- Parameters:
enabled
- state of selection mode.
nodeSelected
public void nodeSelected(edu.umd.cs.piccolo.PNode node,
boolean ctrlDown)
- Called when an individual node has been selected.
- Specified by:
nodeSelected
in interface AIDA2DLayer
- Parameters:
node
- the selected nodectrlDown
- whether or not the the ctrl key was down
when the node was selected
marqueeOver
public void marqueeOver(edu.umd.cs.piccolo.util.PBounds bounds,
boolean ctrlDown)
- Specified by:
marqueeOver
in interface AIDA2DLayer
addSelectionsToCanvas
private void addSelectionsToCanvas()
addToCanvas
public void addToCanvas(Canvas2D canvas)
- Specified by:
addToCanvas
in interface AIDA2DLayer
initToolBar
public void initToolBar(javax.swing.JToolBar bar,
javax.swing.ButtonGroup grp)
- Specified by:
initToolBar
in interface AIDA2DLayer
hideEmptyNodes
private void hideEmptyNodes(boolean hide)
resized
public void resized(java.awt.Dimension size)
- Specified by:
resized
in interface AIDA2DLayer