|
Cytoscape 2.8.3 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
ding.view.DingCanvas
ding.view.InnerCanvas
public class InnerCanvas
The GUI component for drawing networks.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
Vector |
edgeContextMenuListeners
Listeners for edge right-click menu. |
Vector |
listeners
|
Vector |
nodeContextMenuListeners
Listeners for node right-click menu |
| Fields inherited from class ding.view.DingCanvas |
|---|
m_backgroundColor, m_img, m_isOpaque, m_isVisible |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
|---|---|
void |
addEdgeContextMenuListener(EdgeContextMenuListener l)
DOCUMENT ME! |
void |
addNodeContextMenuListener(NodeContextMenuListener l)
adds a listener to the store of NodeContextMenuListeners |
void |
addPhoebeCanvasDropListener(PhoebeCanvasDropListener l)
adds a listener to the store of PhoebeCanvasDropTargetListeners |
void |
addTransferComponent(JComponent comp)
DOCUMENT ME! |
void |
disableNodeMovement()
|
void |
dragEnter(DropTargetDragEvent dte)
default dragEnter handler. |
void |
dragExit(DropTargetEvent dte)
default dragExit handler. |
void |
dragOver(DropTargetDragEvent dte)
default dragOver handler. |
void |
drop(DropTargetDropEvent dte)
default drop handler. |
void |
dropActionChanged(DropTargetDragEvent dte)
default dropActionChanged handler. |
void |
enableNodeMovement()
|
AffineTransform |
getAffineTransform()
Called to get the tranform matrix used by the inner canvas to move the nodes. |
int |
getLastRenderDetail()
DOCUMENT ME! |
double |
getScaleFactor()
|
boolean |
isNodeMovementDisabled()
|
boolean |
isPrinting()
Return true if this view is curerntly being printed (as opposed to painted on the screen) |
boolean |
isSelecting()
DOCUMENT ME! |
void |
keyPressed(KeyEvent k)
Handles key press events. |
void |
keyReleased(KeyEvent k)
Currently not used. |
void |
keyTyped(KeyEvent k)
Currently not used. |
void |
mouseClicked(MouseEvent e)
DOCUMENT ME! |
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
DOCUMENT ME! |
void |
mouseExited(MouseEvent e)
DOCUMENT ME! |
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
mouseWheelMoved(MouseWheelEvent e)
|
void |
paint(Graphics g)
Paint this component using Java2D. |
void |
print(Graphics g)
DOCUMENT ME! |
void |
printNoImposter(Graphics g)
Print routine which corrects bug 1471/1495 |
protected void |
processEdgeContextMenuEvent(MouseEvent event)
|
void |
processMouseEvent(MouseEvent e)
This method exposes the JComponent processMouseEvent so that canvases on top of us can pass events they don't want down. |
protected void |
processNodeContextMenuEvent(MouseEvent event)
handles a NodeContextMenuEvent. |
protected void |
processPhoebeCanvasDropEvent(PhoebeCanvasDropEvent event)
handles a PhoebeCanvasDropEvent. |
void |
removeEdgeContextMenuListener(EdgeContextMenuListener l)
DOCUMENT ME! |
void |
removeNodeContextMenuListener(NodeContextMenuListener l)
removes a listener from the store of NodeContextMenuListeners |
void |
removePhoebeCanvasDropListener(PhoebeCanvasDropListener l)
removes a listener from the store of PhoebeCanvasDropTargetListeners |
void |
removeTransferComponent(JComponent comp)
DOCUMENT ME! |
void |
setBounds(int x,
int y,
int width,
int height)
DOCUMENT ME! |
void |
setScaleFactor(double val)
|
void |
setSelecting(boolean s)
DOCUMENT ME! |
void |
update(Graphics g)
DOCUMENT ME! |
| Methods inherited from class ding.view.DingCanvas |
|---|
getBackground, getImage, setBackground, setOpaque, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Vector listeners
public Vector nodeContextMenuListeners
public Vector edgeContextMenuListeners
| Method Detail |
|---|
public double getScaleFactor()
public void setScaleFactor(double val)
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class Componentx - DOCUMENT ME!y - DOCUMENT ME!width - DOCUMENT ME!height - DOCUMENT ME!public void update(Graphics g)
update in class JComponentg - DOCUMENT ME!public void paint(Graphics g)
paint in class JComponentg - DOCUMENT ME!public void print(Graphics g)
print in class JComponentg - Usually Graphics2D object for drawing network view as image.public void printNoImposter(Graphics g)
printNoImposter in class DingCanvasg - DOCUMENT ME!public boolean isPrinting()
public void processMouseEvent(MouseEvent e)
processMouseEvent in class JComponente - the MouseEvent to processpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - DOCUMENT ME!public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenere - DOCUMENT ME!public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenere - DOCUMENT ME!public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void keyPressed(KeyEvent k)
keyPressed in interface KeyListenerk - The key event that we're listening for.public void keyReleased(KeyEvent k)
keyReleased in interface KeyListenerk - The key event that we're listening for.public void keyTyped(KeyEvent k)
keyTyped in interface KeyListenerk - The key event that we're listening for.public void dragEnter(DropTargetDragEvent dte)
dragEnter in interface DropTargetListenerdte - the DropTargetDragEventpublic void dragExit(DropTargetEvent dte)
dragExit in interface DropTargetListenerdte - the DropTargetDragEventpublic void dropActionChanged(DropTargetDragEvent dte)
dropActionChanged in interface DropTargetListenerdte - the DropTargetDragEventpublic void dragOver(DropTargetDragEvent dte)
dragOver in interface DropTargetListenerdte - the DropTargetDragEventpublic void drop(DropTargetDropEvent dte)
drop in interface DropTargetListenerdte - the DropTargetDragEventpublic void addPhoebeCanvasDropListener(PhoebeCanvasDropListener l)
addPhoebeCanvasDropListener in interface PhoebeCanvasDroppablel - the PhoebeCanvasDropTargetListenerpublic void removePhoebeCanvasDropListener(PhoebeCanvasDropListener l)
removePhoebeCanvasDropListener in interface PhoebeCanvasDroppablel - the PhoebeCanvasDropTargetListenerprotected void processPhoebeCanvasDropEvent(PhoebeCanvasDropEvent event)
event - the PhoebeCanvasDropEventpublic void addTransferComponent(JComponent comp)
comp - DOCUMENT ME!public void removeTransferComponent(JComponent comp)
comp - DOCUMENT ME!public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerpublic void addNodeContextMenuListener(NodeContextMenuListener l)
l - the NodeContextMenuListenerpublic void removeNodeContextMenuListener(NodeContextMenuListener l)
l - the NodeContextMenuListenerpublic void addEdgeContextMenuListener(EdgeContextMenuListener l)
l - DOCUMENT ME!public void removeEdgeContextMenuListener(EdgeContextMenuListener l)
l - DOCUMENT ME!protected void processNodeContextMenuEvent(MouseEvent event)
event - the NodeContextMenuEventprotected void processEdgeContextMenuEvent(MouseEvent event)
public int getLastRenderDetail()
public void setSelecting(boolean s)
s - DOCUMENT ME!public boolean isSelecting()
public AffineTransform getAffineTransform()
public void enableNodeMovement()
public void disableNodeMovement()
public boolean isNodeMovementDisabled()
|
Cytoscape 2.8.3 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||