Class CellArray

All Implemented Interfaces:
ActionListener, MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class CellArray extends JPanel implements MouseMotionListener, MouseListener, ActionListener
See Also:
  • Field Details

  • Constructor Details

    • CellArray

      public CellArray(Container cont, int nx, int ny, int width, int height)
  • Method Details

    • makePopupMenu

      public void makePopupMenu(JPopupMenu m, ActionListener l)
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Specified by:
      mouseDragged in interface MouseMotionListener
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Specified by:
      mouseMoved in interface MouseMotionListener
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
    • getLastClickedX

      public int getLastClickedX()
    • getLastClickedY

      public int getLastClickedY()
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • drawGrid

      public void drawGrid(Graphics2D g, Color gc)
    • update

      public void update()
    • clear

      public void clear()
    • setColor

      public void setColor(Color[][] col)
    • setAlpha

      public void setAlpha(float[][] al)
    • setAlpha

      public void setAlpha(float al)
    • setOnColor

      public void setOnColor(Color col)
    • setOffColor

      public void setOffColor(Color col)
    • getOnColor

      public Color getOnColor()
    • getOffColor

      public Color getOffColor()
    • setBackgroundColor

      public void setBackgroundColor(Color col)
    • getBackgroundColor

      public Color getBackgroundColor()
    • setGridColor

      public void setGridColor(Color col)
    • getGridColor

      public Color getGridColor()
    • setColor

      public void setColor(String cmd)
    • setCellOn

      public void setCellOn(int x, int y)
    • setCellOff

      public void setCellOff(int x, int y)
    • paintNonBuffered

      public void paintNonBuffered(Graphics2D g, Paper pa, int ixa, int iya, int nxAnodes, int nyAnodes, boolean printMono)
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • getState

      public void getState(int[][] state)
    • setOnOffAlphaMode

      public void setOnOffAlphaMode(boolean flag)
    • showStatus

      public void showStatus(String s)
    • getSelectedCells

      public Vector<Point> getSelectedCells()
    • setRotation

      public void setRotation(int quadrant)