pga
Class PGAPresentationCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--pga.PGAPresentationCanvas

public class PGAPresentationCanvas
extends java.awt.Canvas

Komponenta umoznujici zobrazeni migrace v PGA.

See Also:
Serialized Form

Field Summary
protected  int nPops
          Pocet populaci
protected  java.awt.Point[] pops
          pro uchovavani souradnic kmenu
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
PGAPresentationCanvas(int n)
          Vytvori novou instanci dle danych bodu.
 
Method Summary
 java.awt.Dimension getMinSize()
          Vrati minimalni velikost komponenty
 java.awt.Dimension getPreferredSize()
          Vrati pozadovanou velikost komponenty
 void paint(java.awt.Graphics g)
          Prekresli plochu komponenty.
 void resize(int newNPops)
          Zmen pocet znazornenych populaci
 void startMigration(int fromPop, int toPop)
          Zpusobi vykresleni migrace
 void stopMigration()
          Znazorneni migrace se smaze
 void update(java.awt.Graphics g)
          Pretizeni metudy update().
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, checkImage, checkImage, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, 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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pops

protected java.awt.Point[] pops
pro uchovavani souradnic kmenu

nPops

protected int nPops
Pocet populaci
Constructor Detail

PGAPresentationCanvas

public PGAPresentationCanvas(int n)
Vytvori novou instanci dle danych bodu.
Method Detail

resize

public void resize(int newNPops)
Zmen pocet znazornenych populaci

startMigration

public void startMigration(int fromPop,
                           int toPop)
Zpusobi vykresleni migrace

stopMigration

public void stopMigration()
Znazorneni migrace se smaze

update

public void update(java.awt.Graphics g)
Pretizeni metudy update(). Mazani canvasu zajistuje primo metoda paint().
Overrides:
update in class java.awt.Component

paint

public void paint(java.awt.Graphics g)
Prekresli plochu komponenty.

Nakresli ram, mesta, prip. cisla mest a trasu.

Overrides:
paint in class java.awt.Canvas

getPreferredSize

public java.awt.Dimension getPreferredSize()
Vrati pozadovanou velikost komponenty
Overrides:
getPreferredSize in class java.awt.Component

getMinSize

public java.awt.Dimension getMinSize()
Vrati minimalni velikost komponenty