edu.ucla.stat.SOCR.distributome.data
Class ViewerPanelInfo

java.lang.Object
  extended by edu.ucla.stat.SOCR.distributome.data.ViewerPanelInfo
All Implemented Interfaces:
java.lang.Runnable

public class ViewerPanelInfo
extends java.lang.Object
implements java.lang.Runnable


Field Summary
 DefaultGraphCell[] cells
           
 int clickedType
           
 Edge[] edges
           
 Type edgeType
           
 java.awt.Color[] edgeTypeColor
           
 int ex_pickedEdgeIndex
           
 int ex_pickedNodeIndex
           
 Formula[] formulas
           
static int HideNeighbor
           
static int HighlightAsBoth
           
static int HighlightAsChild
           
static int HighlightAsParent
           
static int Highlighted
           
 int highlightedType
           
 int nCells
           
 int nEdges
           
 int neighbor_level
           
 int nFormulas
           
 int nNodes
           
 SOCRNode[] nodes
           
 int[] nodesShowFlag
           
 Type nodeType
           
 java.awt.Color[] nodeTypeColor
           
static int Normal
           
static int NoShow
           
 int nRefs
           
 int pickedEdgeIndex
           
 int pickedNodeIndex
           
 Reference[] refs
           
static int ShowBoth
           
static int ShowChildren
           
static int ShowParent
           
 
Constructor Summary
ViewerPanelInfo(ViewerApplet graph)
          CONSTRUCTOR
 
Method Summary
 void addEdge(Edge edge)
           
 void addEdge(int from, int to, int edge_id, java.lang.String edge_name, int typeCount, int[] types, int edge_formula_id, int ref_id_count, int[] ref_ids)
          INTERACTION HANDLING METHODS
 void addFormula(Formula formula)
           
 void addFormula(int f_id, java.lang.String f_density, java.lang.String f_formula)
           
 int addNode(int id)
          add node
 void addNode(int id, java.lang.String nodeName, int typeCount, int[] types, int nodeFormulaId, java.lang.String nodeUrl, int kw_count, java.lang.String[] kws, int refId_count, int[] refIds)
          mini func name that gets displayed next to a member node if so desire - defunct in AC's version
 void addNode(SOCRNode node)
           
 void addRef(int id, int author_count, java.lang.String[] authors, java.lang.String year, java.lang.String title, java.lang.String journal, java.lang.String volumeInfo, java.lang.String url)
           
 void addRef(Reference ref)
           
 void clearExPicked()
           
 int countNumberOfEdgeforNodeId(int id)
           
 int findMemberById(int id)
           
 int findMemberByName(java.lang.String label)
          MEMBER HANDLING METHODS*************************************
 int findRefById(int id)
           
 Reference findRefByIndex(int index)
           
 Edge[] getEdges()
          get edges
 int getNodeCount()
           
 SOCRNode[] getNodes()
          get nodes
 boolean isDebug()
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void pickEdge(java.lang.Object o)
           
 void pickNode(java.lang.String name)
           
 void relax()
           
 void resetCycle()
           
 void run()
           
 void setEdges(Edge[] newEdges)
           
 void setFreezedStatus(boolean in)
           
 void setNodes(SOCRNode[] newNodes)
          Member and Edge setting/getting - for external class access from TableApplet
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NoShow

public static final int NoShow
See Also:
Constant Field Values

Normal

public static final int Normal
See Also:
Constant Field Values

Highlighted

public static final int Highlighted
See Also:
Constant Field Values

HighlightAsParent

public static final int HighlightAsParent
See Also:
Constant Field Values

HighlightAsChild

public static final int HighlightAsChild
See Also:
Constant Field Values

HighlightAsBoth

public static final int HighlightAsBoth
See Also:
Constant Field Values

HideNeighbor

public static final int HideNeighbor
See Also:
Constant Field Values

ShowParent

public static final int ShowParent
See Also:
Constant Field Values

ShowChildren

public static final int ShowChildren
See Also:
Constant Field Values

ShowBoth

public static final int ShowBoth
See Also:
Constant Field Values

edges

public Edge[] edges

nodes

public SOCRNode[] nodes

refs

public Reference[] refs

formulas

public Formula[] formulas

cells

public DefaultGraphCell[] cells

nEdges

public int nEdges

nNodes

public int nNodes

nRefs

public int nRefs

nFormulas

public int nFormulas

nCells

public int nCells

neighbor_level

public int neighbor_level

nodesShowFlag

public int[] nodesShowFlag

highlightedType

public int highlightedType

clickedType

public int clickedType

pickedNodeIndex

public int pickedNodeIndex

ex_pickedNodeIndex

public int ex_pickedNodeIndex

pickedEdgeIndex

public int pickedEdgeIndex

ex_pickedEdgeIndex

public int ex_pickedEdgeIndex

nodeType

public Type nodeType

nodeTypeColor

public java.awt.Color[] nodeTypeColor

edgeTypeColor

public java.awt.Color[] edgeTypeColor

edgeType

public Type edgeType
Constructor Detail

ViewerPanelInfo

public ViewerPanelInfo(ViewerApplet graph)
CONSTRUCTOR

Parameters:
graph -
Method Detail

getNodeCount

public int getNodeCount()
Returns:

addNode

public void addNode(int id,
                    java.lang.String nodeName,
                    int typeCount,
                    int[] types,
                    int nodeFormulaId,
                    java.lang.String nodeUrl,
                    int kw_count,
                    java.lang.String[] kws,
                    int refId_count,
                    int[] refIds)
mini func name that gets displayed next to a member node if so desire - defunct in AC's version

Parameters:
nodeName -
bvRecord -

addNode

public void addNode(SOCRNode node)

addEdge

public void addEdge(int from,
                    int to,
                    int edge_id,
                    java.lang.String edge_name,
                    int typeCount,
                    int[] types,
                    int edge_formula_id,
                    int ref_id_count,
                    int[] ref_ids)
INTERACTION HANDLING METHODS

Parameters:
from -
to -
length -
strength -

addEdge

public void addEdge(Edge edge)

addFormula

public void addFormula(int f_id,
                       java.lang.String f_density,
                       java.lang.String f_formula)

addFormula

public void addFormula(Formula formula)

addRef

public void addRef(int id,
                   int author_count,
                   java.lang.String[] authors,
                   java.lang.String year,
                   java.lang.String title,
                   java.lang.String journal,
                   java.lang.String volumeInfo,
                   java.lang.String url)

addRef

public void addRef(Reference ref)

addNode

public int addNode(int id)
add node

Parameters:
label -
Returns:

countNumberOfEdgeforNodeId

public int countNumberOfEdgeforNodeId(int id)

findMemberByName

public int findMemberByName(java.lang.String label)
MEMBER HANDLING METHODS*************************************

Parameters:
label -
Returns:

findRefById

public int findRefById(int id)

findRefByIndex

public Reference findRefByIndex(int index)

findMemberById

public int findMemberById(int id)

getEdges

public Edge[] getEdges()
get edges

Returns:

getNodes

public SOCRNode[] getNodes()
get nodes

Returns:

clearExPicked

public void clearExPicked()

pickEdge

public void pickEdge(java.lang.Object o)

pickNode

public void pickNode(java.lang.String name)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)

run

public void run()
Specified by:
run in interface java.lang.Runnable

setEdges

public void setEdges(Edge[] newEdges)
Parameters:
newEdges -

setNodes

public void setNodes(SOCRNode[] newNodes)
Member and Edge setting/getting - for external class access from TableApplet

Parameters:
newNodes -

isDebug

public boolean isDebug()

start

public void start()

stop

public void stop()

setFreezedStatus

public void setFreezedStatus(boolean in)

resetCycle

public void resetCycle()

relax

public void relax()