Gav
Class CGavView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--Gav.JPView
                    |
                    +--Gav.CGavView

class CGavView
extends JPView

Gav Views : JPView extension to manage GAV

See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  int CurrentGrid
           
(package private)  int HorizStep
           
(package private)  double HorizStepD
           
(package private) static int MAXGRID
           
(package private)  CGavUniverse MyUniverse
          Pointer to the Universe
(package private)  int NbHorizPlace
           
(package private)  int NbVerticPlace
           
(package private)  int SelectedGene
           
(package private)  int SelectedGrid
           
(package private)  int Type
           
(package private) static int TYPEMAIN
           
(package private) static int TYPEZOOM
           
(package private)  int VerticStep
           
(package private)  double VerticStepD
           
(package private)  int VisiblePop
           
 
Fields inherited from class Gav.JPView
GrBuff, Height, ImgBuff, lHeight, lWidth, Width
 
Fields inherited from class java.awt.Canvas
base, graphicsConfig, nameCounter, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
CGavView(CGavUniverse univ, java.awt.Color c, int type)
          Construct a GavView with background color and type
 
Method Summary
 int GetGrid()
          Returns current grid
(package private)  int GetGridAt(int x, int y)
          Returns the # of the grid at point x,y
 int GetType()
          Type getter
 int GetVisiblePop()
          Returns current visible pop
 boolean mouseDown(java.awt.Event e, int x, int y)
          Mouse Down : Process Selected grid and Gene/dir
(package private)  void PaintBackground()
          Paint View Background
 void ResizeGrBuff()
          Resize Graphic Buffer and Steps
 void SetGrid(int n)
          Set # of places
(package private)  void SetSteps()
          Set the grid steps
 
Methods inherited from class Gav.JPView
ClearBkg, destroy, paint, repaint, SetDim, SetLogicalSize
 
Methods inherited from class java.awt.Canvas
, addNotify, constructComponentName, postsOldMouseEvents
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, 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, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, readObject, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, 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

MAXGRID

static final int MAXGRID

TYPEMAIN

static final int TYPEMAIN

TYPEZOOM

static final int TYPEZOOM

MyUniverse

CGavUniverse MyUniverse
Pointer to the Universe

NbHorizPlace

int NbHorizPlace

NbVerticPlace

int NbVerticPlace

HorizStep

int HorizStep

VerticStep

int VerticStep

HorizStepD

double HorizStepD

VerticStepD

double VerticStepD

CurrentGrid

int CurrentGrid

VisiblePop

int VisiblePop

Type

int Type

SelectedGrid

int SelectedGrid

SelectedGene

int SelectedGene
Constructor Detail

CGavView

public CGavView(CGavUniverse univ,
                java.awt.Color c,
                int type)
Construct a GavView with background color and type
Method Detail

PaintBackground

void PaintBackground()
Paint View Background

ResizeGrBuff

public void ResizeGrBuff()
Resize Graphic Buffer and Steps
Overrides:
ResizeGrBuff in class JPView

SetSteps

void SetSteps()
Set the grid steps

GetType

public int GetType()
Type getter

GetGridAt

int GetGridAt(int x,
              int y)
Returns the # of the grid at point x,y

mouseDown

public boolean mouseDown(java.awt.Event e,
                         int x,
                         int y)
Mouse Down : Process Selected grid and Gene/dir
Overrides:
mouseDown in class java.awt.Component

SetGrid

public void SetGrid(int n)
Set # of places

GetGrid

public int GetGrid()
Returns current grid

GetVisiblePop

public int GetVisiblePop()
Returns current visible pop