Class MyCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--MyCanvas
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

class MyCanvas
extends java.awt.Canvas

See Also:
Serialized Form

Inner classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
private  int drawingfrom
           
 int he
           
 int hidlev
           
 int inplev
           
private  int[][] lastxpos
           
private  int[][] lastypos
           
private  int[][] lastzpos
           
 int midx
           
 int outlev
           
private  BP owner
           
private  java.awt.Point showexc
           
 int wi
           
 int xgap
           
 int xrad
           
 int ygap
           
 int yrad
           
 int zgap
           
 int zrad
           
 
Fields inherited from class java.awt.Canvas
base, nameCounter, serialVersionUID
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dbg, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MyCanvas(BP owner)
           
 
Method Summary
private  void drawconn(java.awt.Graphics g, int[][] X, int[][] Y, int xd, int yd, double[][] w, double thresh)
           
private  int[][] drawlayer(java.awt.Graphics g, int x, int y, int R, int gap, double[] v, int size)
           
private  boolean inunit(int X, int Y, int x, int yt, int yb)
           
 void paint(java.awt.Graphics g)
           
 void showAll()
           
private  boolean showOK(int from, int to)
           
 void showThis(java.awt.Point p)
           
 java.awt.Point which(int x, int y)
           
 
Methods inherited from class java.awt.Canvas
, addNotify, constructComponentName, getAccessibleContext, postsOldMouseEvents
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkGD, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createChildHierarchyEvents, createHierarchyEvents, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, initIDs, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPaint, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, numListening, paintAll, paintHeavyweightComponents, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, printHeavyweightComponents, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, readObject, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

wi

public int wi

he

public int he

midx

public int midx

xgap

public int xgap

ygap

public int ygap

zgap

public int zgap

xrad

public int xrad

yrad

public int yrad

zrad

public int zrad

inplev

public int inplev

hidlev

public int hidlev

outlev

public int outlev

owner

private BP owner

drawingfrom

private int drawingfrom

showexc

private java.awt.Point showexc

lastxpos

private int[][] lastxpos

lastypos

private int[][] lastypos

lastzpos

private int[][] lastzpos
Constructor Detail

MyCanvas

public MyCanvas(BP owner)
Method Detail

drawlayer

private int[][] drawlayer(java.awt.Graphics g,
                          int x,
                          int y,
                          int R,
                          int gap,
                          double[] v,
                          int size)

showOK

private boolean showOK(int from,
                       int to)

drawconn

private void drawconn(java.awt.Graphics g,
                      int[][] X,
                      int[][] Y,
                      int xd,
                      int yd,
                      double[][] w,
                      double thresh)

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas

which

public java.awt.Point which(int x,
                            int y)

inunit

private boolean inunit(int X,
                       int Y,
                       int x,
                       int yt,
                       int yb)

showThis

public void showThis(java.awt.Point p)

showAll

public void showAll()