public class ViewerApplet
extends javax.swing.JApplet
implements java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.KeyListener
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JCheckBox |
chb_freeze |
protected static java.awt.Color |
ControlBgColor |
protected javax.swing.JPanel |
controlPanel |
protected static java.awt.Color |
EdgeNormalColor |
protected static java.awt.Color |
EdgeTextColor |
protected static java.awt.Color |
EdgeTypeHighlightColor |
protected javax.swing.JComboBox |
freezeChoice |
org.jgraph.JGraph |
graph |
protected static java.awt.Color |
GraphBgColor |
javax.swing.JScrollPane |
graphPanel |
protected static java.lang.String |
HideNeighbor |
protected javax.swing.JComboBox |
highlightEdgeColorChoice |
protected javax.swing.JComboBox |
highlightNodeColorChoice |
protected java.awt.TextArea |
infoAreaMiddle |
protected javax.swing.JPanel |
infoAreaReference |
protected LoadAndShowFormula |
infoAreaUpper |
protected javax.swing.JScrollPane |
infoAreaUpperContainer |
protected static java.awt.Color |
InfoBgColor |
protected static java.awt.Color |
InfoBgColor2 |
protected javax.swing.JPanel |
infoPanel |
protected boolean |
isWhiteSpacePicked |
protected static int |
MAXSEARCHLENGTH |
protected static int |
MAXVIEWABLENODES |
protected javax.swing.JComboBox |
neighbor_level |
protected javax.swing.JComboBox |
neighbours_level |
protected static java.awt.Color |
NodeBothColor |
protected static java.awt.Color |
NodeChildrenColor |
protected static java.awt.Color |
NodeHighlightColor |
protected static java.awt.Color |
NodeNormalColor |
protected static java.awt.Color |
NodeParentColor |
protected static java.awt.Color |
NodeTextColor |
protected static java.awt.Color |
NodeTypeHighlightColor |
protected ViewerPanelInfo |
panelInfo |
protected javax.swing.JScrollPane |
refContainer |
protected javax.swing.JButton |
refresh |
protected java.lang.String |
searchTerm |
static ViewerApplet |
selfRef |
protected static java.lang.String |
ShowBoth |
protected static java.lang.String |
ShowChildren |
protected javax.swing.JComboBox |
showHighlightedOnlyChoice |
protected static java.lang.String |
ShowParent |
protected boolean |
substringCheck |
protected java.awt.TextField |
textEntry |
protected java.lang.String |
urlPattern |
protected boolean |
wildCard |
protected static int |
XSIZE |
protected static int |
YSIZE |
protected javax.swing.JComboBox |
zoom_level |
protected static java.lang.String |
ZoomIn |
protected static java.lang.String |
ZoomOut |
protected static java.lang.String |
ZoomReset |
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
ViewerApplet()
CONSTRUCTOR
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
ActionListener implementation method
|
void |
addEdgeCell(Edge _edge,
int sourceCellId,
int targetCellId) |
void |
addNodeCell(SOCRNode node,
java.awt.Color bg) |
void |
clearInfoAreas() |
void |
clearScreen()
clear screen method
|
org.jgraph.graph.DefaultGraphCell |
createVertex(SOCRNode ob,
double x,
double y,
double w,
double h,
java.awt.Color bg,
boolean raised) |
protected void |
displayInitInfo() |
int |
findNodeCellId(int id) |
int |
findNodeIndex(int id) |
void |
getXMLInputFile() |
void |
hideNeighbor() |
void |
highlightEdgeType(int typeId) |
void |
highlightNodeAndNeighbors() |
void |
highlightNodeType(int typeId) |
void |
highlightSearchResult() |
void |
highlightSingleEdge() |
void |
init() |
protected void |
initControlPanel() |
void |
initGraph() |
static boolean |
isDebug() |
void |
keyPressed(java.awt.event.KeyEvent e)
KeyListener implementation - for search field
|
void |
keyReleased(java.awt.event.KeyEvent e)
keyListener implement
|
void |
keyTyped(java.awt.event.KeyEvent e)
keyListener
|
void |
mouseClicked(java.awt.event.MouseEvent e)
handle right button mouse events separates for getting more detail on the protein node
|
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
protected void |
resetControlPanel() |
void |
resetEdgeColor() |
void |
resetNodeColor() |
void |
setFreezedStatus(boolean in)
destroy panel
|
void |
showBoth(int pickedNodeIndex) |
void |
showChildren(int pickedNodeIndex) |
void |
showNeighbor() |
void |
showNodeUpdate() |
void |
showParents(int pickedNodeIndex) |
protected void |
showURL(java.lang.String urlString,
java.lang.String window) |
void |
start()
applet
|
void |
stop()
applet
|
void |
updateInfoAreaUpper(java.net.URL url,
java.lang.String formula) |
protected void |
zoominAt(org.jgraph.graph.CellView cell,
double zoomFactor) |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final java.lang.String HideNeighbor
protected static final java.lang.String ShowParent
protected static final java.lang.String ShowChildren
protected static final java.lang.String ShowBoth
protected static final java.lang.String ZoomReset
protected static final java.lang.String ZoomIn
protected static final java.lang.String ZoomOut
protected static final int MAXVIEWABLENODES
protected static final int MAXSEARCHLENGTH
protected boolean isWhiteSpacePicked
protected static final int XSIZE
protected static final int YSIZE
protected static final java.awt.Color ControlBgColor
protected static final java.awt.Color InfoBgColor
protected static final java.awt.Color InfoBgColor2
protected static final java.awt.Color GraphBgColor
protected static final java.awt.Color NodeTextColor
protected static final java.awt.Color EdgeTextColor
protected static final java.awt.Color NodeHighlightColor
protected static final java.awt.Color NodeParentColor
protected static final java.awt.Color NodeChildrenColor
protected static final java.awt.Color NodeBothColor
protected static final java.awt.Color NodeTypeHighlightColor
protected static final java.awt.Color NodeNormalColor
protected static final java.awt.Color EdgeTypeHighlightColor
protected static final java.awt.Color EdgeNormalColor
public static ViewerApplet selfRef
public javax.swing.JScrollPane graphPanel
protected javax.swing.JPanel controlPanel
protected javax.swing.JPanel infoPanel
protected java.awt.TextArea infoAreaMiddle
protected LoadAndShowFormula infoAreaUpper
protected javax.swing.JScrollPane infoAreaUpperContainer
protected javax.swing.JPanel infoAreaReference
protected javax.swing.JScrollPane refContainer
protected ViewerPanelInfo panelInfo
protected javax.swing.JComboBox neighbours_level
protected javax.swing.JComboBox zoom_level
protected javax.swing.JComboBox highlightNodeColorChoice
protected javax.swing.JComboBox highlightEdgeColorChoice
protected javax.swing.JComboBox neighbor_level
protected javax.swing.JComboBox freezeChoice
protected javax.swing.JButton refresh
protected javax.swing.JComboBox showHighlightedOnlyChoice
protected java.lang.String searchTerm
protected java.awt.TextField textEntry
protected boolean substringCheck
protected boolean wildCard
protected javax.swing.JCheckBox chb_freeze
protected final java.lang.String urlPattern
public org.jgraph.JGraph graph
public void start()
start
in class java.applet.Applet
public void stop()
stop
in class java.applet.Applet
public void init()
init
in class java.applet.Applet
public void addNodeCell(SOCRNode node, java.awt.Color bg)
public void addEdgeCell(Edge _edge, int sourceCellId, int targetCellId)
public org.jgraph.graph.DefaultGraphCell createVertex(SOCRNode ob, double x, double y, double w, double h, java.awt.Color bg, boolean raised)
protected void initControlPanel()
protected void resetControlPanel()
public void getXMLInputFile()
protected void displayInitInfo()
public void initGraph()
public int findNodeIndex(int id)
public int findNodeCellId(int id)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void clearInfoAreas()
public void updateInfoAreaUpper(java.net.URL url, java.lang.String formula)
public void resetNodeColor()
public void resetEdgeColor()
public void clearScreen()
public void setFreezedStatus(boolean in)
public void showNodeUpdate()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
protected void zoominAt(org.jgraph.graph.CellView cell, double zoomFactor)
public void showNeighbor()
public void showBoth(int pickedNodeIndex)
public void showParents(int pickedNodeIndex)
public void showChildren(int pickedNodeIndex)
public void hideNeighbor()
public void highlightNodeAndNeighbors()
public void highlightSearchResult()
public void highlightNodeType(int typeId)
public void highlightSingleEdge()
public void highlightEdgeType(int typeId)
protected void showURL(java.lang.String urlString, java.lang.String window)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public static boolean isDebug()