Examples of Grid


Examples of com.google.gwt.widgetideas.table.client.overrides.Grid

    panel.add(new HTML("<p/><p/><b> Use the traditional Grid API</b>"));
    Button gridAPI = new Button("Go", new ClickListener() {
      public void onClick(Widget sender) {
        clearTable();
        long milli = System.currentTimeMillis();
        Grid newTable = new Grid();
        usingGridAPI(newTable);
        finishTable(newTable, milli);
      }

    });
View Full Code Here

Examples of com.googlecode.g2re.html.Grid

        queryB.getParameters().add(new JdbcParameter(2, DataType.INTEGER, maxParam));
        report.getDataQueries().add(queryB);
       
       
        /* Add a "Layout" grid to the page */
        Grid grid = new Grid();
        grid.setCellPadding(5);
        report.getWebPage().addChildElement(grid);
        GridRow row1 = new GridRow();
        GridRow row2 = new GridRow();
        GridRow row3 = new GridRow();
        GridRow row4 = new GridRow();
        grid.addRows(row1,row2,row3,row4);
       
        row1.addCell(new GridCell(new RawHTML("<h2>Top 5 Pets</h2>")));
        row1.addCell(new GridCell(new RawHTML("<h2>Vote Summary</h2>")));
       
        row3.addCell(new GridCell(new RawHTML("<h2>Pet Locations</h2>")));
View Full Code Here

Examples of com.invient.vaadin.charts.InvientChartsConfig.AxisBase.Grid

        chartConfig.setXAxes(xAxes);

        NumberYAxis yAxis = new NumberYAxis();
        yAxis.setShowFirstLabel(false);
        yAxis.setMin(0.6);
        yAxis.setGrid(new Grid());
        yAxis.getGrid().setLineWidth(0);
        yAxis.setLabel(new YAxisDataLabel(false));
        yAxis.setTitle(new AxisTitle(""));

        LinkedHashSet<YAxis> yAxes = new LinkedHashSet<InvientChartsConfig.YAxis>();
View Full Code Here

Examples of com.jme3.scene.debug.Grid

        mat = new Material(am, Materials.UNSHADED);
        mat.setColor("Color", ColorRGBA.Red);
        xAxis.setMaterial(mat);

        // create xy-grid
        Grid xyPlane = new Grid(size, size, segSize);
        xyGrid = new Geometry("XY-Plane", xyPlane);
        xyGrid.setMaterial(mat);
        xyGrid.rotateUpTo(new Vector3f(0.0f, 0.0f, 1.0f));
        xyGrid.setLocalTranslation(new Vector3f(-offset, offset, 0.0f));

        // create y-axis
        Arrow arrowY = new Arrow(new Vector3f(0.0f, size, 0.0f));
        yAxis = new Geometry("Y-Axis", arrowY);
        mat = new Material(am, Materials.UNSHADED);
        mat.setColor("Color", ColorRGBA.Green);
        yAxis.setMaterial(mat);

        // create yz-grid
        Grid yzPlane = new Grid(size, size, segSize);
        yzGrid = new Geometry("YZ-Plane", yzPlane);
        yzGrid.setMaterial(mat);
        yzGrid.rotateUpTo(new Vector3f(1.0f, 0.0f, 0.0f));
        yzGrid.setLocalTranslation(new Vector3f(0.0f, offset, -offset));

        // create z-axis
        Arrow arrowZ = new Arrow(new Vector3f(0.0f, 0.0f, size));
        zAxis = new Geometry("Z-Axis", arrowZ);
        mat = new Material(am, Materials.UNSHADED);
        mat.setColor("Color", ColorRGBA.Blue);
        zAxis.setMaterial(mat);

        // create xz-grid
        Grid xzPlane = new Grid(size, size, segSize);
        xzGrid = new Geometry("XZ-Plane", xzPlane);
        xzGrid.setMaterial(mat);
        xzGrid.rotateUpTo(new Vector3f(0.0f, 1.0f, 0.0f));
        xzGrid.setLocalTranslation(new Vector3f(-offset, 0.0f, -offset));
View Full Code Here

Examples of com.lunivore.gameoflife.domain.Grid

    private static final String NL = System.getProperty("line.separator");

    @Test
    public void shouldRenderCellsAsCrosses() {
        StringRenderer renderer = new StringRenderer();
        Grid grid = mock(Grid.class);
        when(grid.getWidth()).thenReturn(5);
        when(grid.getHeight()).thenReturn(6);
        when(grid.hasLife(3, 4)).thenReturn(true);
        renderer.gridChanged(grid);
       
        assertThat(renderer.asString(), equalTo(
                "....." + NL +
                "....." + NL +
View Full Code Here

Examples of com.sshtools.ui.awt.grid.Grid

    public AWTPortMonitorWindow(Agent vpnClient) {
        super(Messages.getString("PortMonitor.title")); //$NON-NLS-1$
        setIconImage(UIUtil.loadImage(getClass(), "/images/frame-agent.gif")); //$NON-NLS-1$

        model = new PortModel();
        portGrid = new Grid(model);
        portGrid.setBackground(Color.white);
        portGrid.setForeground(Color.black);
        portGrid.setSelectionBackground(Color.blue.darker().darker());
        portGrid.setSelectionForeground(Color.white);
        portGrid.setColumnWidths(new int[] {  46, 220, 64, 64, 128, 64 } );
View Full Code Here

Examples of com.volantis.mcs.layouts.Grid

                CLASS_NAME,
                classname);

//        context.setStyleClassName(CLASS_NAME_2);

        Grid grid = new Grid(null);
        grid.setInstance(1);
        grid.setBorderWidth("10");

//        classname = protocol.getFormatStyleClass(grid);

        assertEquals("Grid classname does not match",
                CLASS_NAME_2,
View Full Code Here

Examples of com.wakaleo.gameoflife.domain.Grid

    public static final String EMPTY_GRID = "..." + NEW_LINE + "..." + NEW_LINE + "..." + NEW_LINE;

    @Test
    public void aNewGridShouldBeEmpty() {
        Grid grid = new Grid();
        assertThat(grid.toString(), is(EMPTY_GRID));
    }
View Full Code Here

Examples of com.wiieditor.other.Grid

      grabber.grabPixels();
      pixelMap = (int[])grabber.getPixels();
      findBounds(w,h);

      // now downsample
      Grid data = gridPanel.getData();
     
      ratioX = (double)(downSampleRight-
                        downSampleLeft)/(double)data.getWidth();
      ratioY = (double)(downSampleBottom-
                        downSampleTop)/(double)data.getHeight();
     
      for ( int y=0;y<data.getHeight();y++ ) {
        for ( int x=0;x<data.getWidth();x++ ) {
          if ( downSampleQuadrant(x,y) )
            data.enableBlock(x,y);
          else
            data.disableBlock(x,y);
        }
      }

      gridPanel.repaint();
      repaint();
View Full Code Here

Examples of cz.cube.mtheory.helper.Grid

    @Override
    protected void simpleInitGame() {
        display.getRenderer().setBackgroundColor(ColorRGBA.black);

        rootNode.attachChild(new Grid(new Vector3f(), new Vector3f(), 10, 10, 1000, true));

        Spatial ship = ModelLoader.loadTriMesh("/model/max3ds/final05.3ds");
        ship.setRenderState(Tool.createUsualTS("/model/max3ds/final05.jpg"));
        rootNode.attachChild(ship);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.