BiomFrame
Class CBiomView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--BiomFrame.JPView
                    |
                    +--BiomFrame.CBiomView

class CBiomView
extends JPView

Bioms Views : JPView extension to manage Biomorph

See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  int DispGeneHStep
           
(package private)  int DispGeneVStep
           
(package private)  int HorizStep
           
(package private)  CBiomorphUniverse MyUniverse
          Pointer to the Universe
(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
           
 
Fields inherited from class BiomFrame.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
CBiomView(CBiomorphUniverse univ, java.awt.Color c, int type)
          Construct a BiomView with background color and type
 
Method Summary
(package private)  int GetGridAt(int x, int y)
          Returns the # of the grid at point x,y
(package private)  int GetGridDirAt(int x, int y)
          Returns the # of the gene at point x,y, if click on Gene disp Square
 int GetType()
          Type getter
 boolean mouseDown(java.awt.Event e, int x, int y)
          Mouse Down : Process Selected grid and Gene/dir
 boolean mouseDrag(java.awt.Event e, int x, int y)
          Mouse Drag : modify Genome
 boolean mouseUp(java.awt.Event e, int x, int y)
          MouseUp : Select a new Father according to gene modification
(package private)  void PaintBackground()
          Paint View Background
(package private)  void PaintGenomeBack()
          Paint the Genome Square Background
 void ResizeGrBuff()
          Resize Graphic Buffer and Steps
(package private)  void SwitchView()
          Switch between views
 
Methods inherited from class BiomFrame.JPView
ClearBkg, destroy, paint, 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, mouseEnter, mouseExit, mouseMove, 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, 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

TYPEMAIN

static final int TYPEMAIN

TYPEZOOM

static final int TYPEZOOM

MyUniverse

CBiomorphUniverse MyUniverse
Pointer to the Universe

HorizStep

int HorizStep

VerticStep

int VerticStep

DispGeneHStep

int DispGeneHStep

DispGeneVStep

int DispGeneVStep

Type

int Type

SelectedGrid

int SelectedGrid

SelectedGene

int SelectedGene
Constructor Detail

CBiomView

public CBiomView(CBiomorphUniverse univ,
                 java.awt.Color c,
                 int type)
Construct a BiomView with background color and type
Method Detail

PaintBackground

void PaintBackground()
Paint View Background

PaintGenomeBack

void PaintGenomeBack()
Paint the Genome Square Background

GetGridAt

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

GetGridDirAt

int GetGridDirAt(int x,
                 int y)
Returns the # of the gene at point x,y, if click on Gene disp Square

GetType

public int GetType()
Type getter

ResizeGrBuff

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

SwitchView

void SwitchView()
Switch between views

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

mouseDrag

public boolean mouseDrag(java.awt.Event e,
                         int x,
                         int y)
Mouse Drag : modify Genome
Overrides:
mouseDrag in class java.awt.Component

mouseUp

public boolean mouseUp(java.awt.Event e,
                       int x,
                       int y)
MouseUp : Select a new Father according to gene modification
Overrides:
mouseUp in class java.awt.Component