Package org.jamesii.gui.visualization.grid

Examples of org.jamesii.gui.visualization.grid.AbstractGridCellRenderer


    grid = new Grid2D(gridModel);
    grid.setPreferredSize(new Dimension(399, 49));
    grid.setZoom(50);
    grid.setLinesVisible(true);
    grid.setForeground(Color.gray);
    grid.setCellRenderer(new AbstractGridCellRenderer() {
      private final String[] text = new String[] { "XXX", "XXO", "XOX", "XOO",
          "OXX", "OXO", "OOX", "OOO" };

      private final Color[] colors = new Color[] { Color.black,
          Color.lightGray.brighter() };
View Full Code Here


    JFrame frame = new JFrame("Wolfram's rules");

    Grid2D grid = new Grid2D(obs);

    grid.setCellRenderer(new AbstractGridCellRenderer() {
      @Override
      public void draw(Grid2D sender, Graphics g, int x, int y, int width,
          int height, Shape shape, int cellX, int cellY, Object value,
          boolean isSelected, boolean hasFocus) {
        Color c;
View Full Code Here

TOP

Related Classes of org.jamesii.gui.visualization.grid.AbstractGridCellRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.