logicell
Class CLogicellView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--jpUtil.JPView
                    |
                    +--logicell.CLogicellView

public class CLogicellView
extends jpUtil.JPView

Manages CA display

See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  int HorizStep
          Size of a cell
(package private)  double HorizStepD
          Size of a cell (double)
private  CLogicellUniverse MyUniverse
          pointer to the Universe
private  int NbHorizPlace
          Number of cells place on the view
private  int NbVerticPlace
          Number of cells place on the view
(package private)  int VerticStep
          Size of a cell
(package private)  double VerticStepD
          Size of a cell (double)
private  double ZoomFactX
          Zooming factors
private  double ZoomFactY
          Zooming factors
 
Fields inherited from class jpUtil.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
CLogicellView(CLogicellUniverse univ, java.awt.Color c)
          Construct a LogicellView with background color
 
Method Summary
(package private)  void DispBkgText()
          Display background text
(package private)  void DispEquation(CLogiTemplate lt)
          Display Equations
 boolean mouseDown(java.awt.Event e, int x, int y)
          Mouse Down : Display pos (unused)
(package private)  void PaintBackground()
          Paint View Background
 void ResizeGrBuff()
          Resize Graphic Buffer and Steps
(package private)  void SetBestGridSize()
          Set Best fit Grid size (Nb cells)
(package private)  void SetGridSize(float z)
          Modify Grid size (Nb cells) by a factor z
(package private)  void SetGridSize(int h, int w)
          Set Grid size (Nb cells)
private  void SetSteps()
          Set the grid steps
 
Methods inherited from class jpUtil.JPView
ClearBkg, destroy, paint, repaint, SetDim, SetLogicalSize, WriteCenterX
 
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

HorizStep

int HorizStep
Size of a cell

VerticStep

int VerticStep
Size of a cell

HorizStepD

double HorizStepD
Size of a cell (double)

VerticStepD

double VerticStepD
Size of a cell (double)

MyUniverse

private CLogicellUniverse MyUniverse
pointer to the Universe

NbHorizPlace

private int NbHorizPlace
Number of cells place on the view

NbVerticPlace

private int NbVerticPlace
Number of cells place on the view

ZoomFactX

private double ZoomFactX
Zooming factors

ZoomFactY

private double ZoomFactY
Zooming factors
Constructor Detail

CLogicellView

public CLogicellView(CLogicellUniverse univ,
                     java.awt.Color c)
Construct a LogicellView with background color
Method Detail

PaintBackground

void PaintBackground()
Paint View Background

ResizeGrBuff

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

DispEquation

void DispEquation(CLogiTemplate lt)
Display Equations

DispBkgText

void DispBkgText()
Display background text

SetGridSize

void SetGridSize(float z)
Modify Grid size (Nb cells) by a factor z

SetGridSize

void SetGridSize(int h,
                 int w)
Set Grid size (Nb cells)

SetBestGridSize

void SetBestGridSize()
Set Best fit Grid size (Nb cells)

mouseDown

public boolean mouseDown(java.awt.Event e,
                         int x,
                         int y)
Mouse Down : Display pos (unused)
Overrides:
mouseDown in class java.awt.Component

SetSteps

private void SetSteps()
Set the grid steps