edu.ucla.stat.SOCR.TG_distributome.data
Class TGViewerPanelInfo

java.lang.Object
  extended by edu.ucla.stat.SOCR.TG_distributome.data.TGViewerPanelInfo

public class TGViewerPanelInfo
extends java.lang.Object


Field Summary
protected  SOCREdge[] edges
           
 Type edgeType
           
 java.awt.Color[] edgeTypeColor
           
protected  SOCRFormula[] formulas
           
static int HideNeighbor
           
static int HighlightAsBoth
           
static int HighlightAsChild
           
static int HighlightAsParent
           
static int Highlighted
           
protected  int nEdges
           
 int neighbor_level
           
protected  int nFormulas
           
protected  int nNodes
           
protected  SOCRNode[] nodes
           
 Type nodeType
           
 java.awt.Color[] nodeTypeColor
           
static int Normal
           
static int NoShow
           
protected  int nRefs
           
 int pickedEdgeIndex
           
 int pickedNodeIndex
           
protected  SOCRReference[] refs
           
static int ShowBoth
           
static int ShowChildren
           
static int ShowParent
           
 
Constructor Summary
TGViewerPanelInfo(TGViewerApplet graph)
          CONSTRUCTOR
 
Method Summary
 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 addEdge(SOCREdge edge)
           
 void addFormula(int f_id, java.lang.String f_density, java.lang.String f_formula)
           
 void addFormula(SOCRFormula formula)
           
 int addNode(int id)
           
 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)
           
 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(SOCRReference ref)
           
 int countNumberOfEdgeforNodeId(int id)
           
 int findNodeById(int id)
           
 int findNodeByName(java.lang.String label)
          MEMBER HANDLING METHODS*************************************
 int findRefById(int id)
           
 SOCRReference findRefByIndex(int index)
           
 SOCREdge getEdge(int index)
           
 int getEdgeCount()
           
 SOCREdge[] getEdges()
          get edges
 SOCRFormula getFormula(int index)
           
 int getFormulaCount()
           
 SOCRNode getNode(int index)
           
 int getNodeCount()
           
 SOCRNode[] getNodes()
          get nodes
 SOCRReference getRef(int index)
           
 int getRefCount()
           
 boolean isDebug()
           
 void pickEdge(int id)
           
 void pickEdge(java.lang.Object o)
           
 void pickNode(java.lang.String name)
           
 void setEdges(SOCREdge[] newEdges)
           
 void setNodes(SOCRNode[] newNodes)
          Member and Edge setting/getting - for external class access from TableApplet
 
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

protected SOCREdge[] edges

nodes

protected SOCRNode[] nodes

refs

protected SOCRReference[] refs

formulas

protected SOCRFormula[] formulas

nEdges

protected int nEdges

nNodes

protected int nNodes

nRefs

protected int nRefs

nFormulas

protected int nFormulas

neighbor_level

public int neighbor_level

pickedNodeIndex

public int pickedNodeIndex

pickedEdgeIndex

public int pickedEdgeIndex

nodeType

public Type nodeType

nodeTypeColor

public java.awt.Color[] nodeTypeColor

edgeTypeColor

public java.awt.Color[] edgeTypeColor

edgeType

public Type edgeType
Constructor Detail

TGViewerPanelInfo

public TGViewerPanelInfo(TGViewerApplet graph)
CONSTRUCTOR

Parameters:
graph -
Method Detail

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)

addNode

public int addNode(int id)

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(SOCREdge edge)

addFormula

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

addFormula

public void addFormula(SOCRFormula 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(SOCRReference ref)

countNumberOfEdgeforNodeId

public int countNumberOfEdgeforNodeId(int id)

findNodeByName

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

Parameters:
label -
Returns:

findNodeById

public int findNodeById(int id)

findRefById

public int findRefById(int id)

findRefByIndex

public SOCRReference findRefByIndex(int index)

getEdgeCount

public int getEdgeCount()

getNodeCount

public int getNodeCount()

getRefCount

public int getRefCount()

getFormulaCount

public int getFormulaCount()

getEdges

public SOCREdge[] getEdges()
get edges

Returns:

getEdge

public SOCREdge getEdge(int index)

getNodes

public SOCRNode[] getNodes()
get nodes

Returns:

getNode

public SOCRNode getNode(int index)

getRef

public SOCRReference getRef(int index)

getFormula

public SOCRFormula getFormula(int index)

pickEdge

public void pickEdge(int id)

pickEdge

public void pickEdge(java.lang.Object o)

pickNode

public void pickNode(java.lang.String name)

setEdges

public void setEdges(SOCREdge[] 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()