Examples of Draw()


Examples of org.gbcpainter.game.model.Player.draw()

    for (Monster mob : level.getMonsters()) {
      mob.draw( g2d );
    }

    player.draw( g2d ) ;
  }

  private void drawScore( @NotNull Graphics2D g2d ) throws Exception {
    final Rectangle clipBounds = getComponentRect( COMPONENTS.SCORE_VIEW );
    assert clipBounds != null;
View Full Code Here

Examples of org.gbcpainter.game.model.grid.Face.draw()


    for (Map.Entry<Face, Integer> faceEntry : this.faces.entrySet()) {
      final Face face = faceEntry.getKey();
      face.setColored( level.isFaceColored( faceEntry.getValue() ) );
      face.draw( g2d );
    }

    for (Pipe pipe : level.getMap().edgeSet()) {
      pipe.draw( g2d );
    }
View Full Code Here

Examples of org.geomajas.gwt.client.widget.FeatureAttributeWindow.draw()

                Feature feature = new Feature(orgFeatures.get(0), vectorLayer);
                vectorLayer.getFeatureStore().addFeature(feature);
                FeatureAttributeWindow window = new FeatureAttributeWindow(feature, false);
                window.setPageTop(mapWidget.getAbsoluteTop() + 10);
                window.setPageLeft(mapWidget.getAbsoluteLeft() + 10);
                window.draw();
              }
            }
          }
        }
      }
View Full Code Here

Examples of org.geomajas.gwt.client.widget.LoadingScreen.draw()

    mainLayout.draw();

    // Install a loading screen
    // This only works if the application initially shows a map with at least 1 vector layer:
    LoadingScreen loadScreen = new LoadingScreen(map, "Geomajas, geocoder GWT widget example");
    loadScreen.draw();
  }
}
View Full Code Here

Examples of org.geomajas.test.client.exporter.MapWidget.draw()

    GWT.create(MarkerMap.class);
    final MapWidget map = new MapWidget("mainMap", "app");
    map.setHtmlElement(DOM.getElementById("map"));
    map.setWidth(DOM.getElementById("map").getStyle().getWidth());
    map.setHeight(DOM.getElementById("map").getStyle().getHeight());
    map.draw();
    onLoadImpl();
  }

  private native void onLoadImpl() /*-{
    if ($wnd.geomajasOnLoad && typeof $wnd.geomajasOnLoad == 'function') $wnd.geomajasOnLoad();
View Full Code Here

Examples of org.jfree.chart.JFreeChart.draw()


        BufferedImage img = new BufferedImage
            (width, height, BufferedImage.TYPE_INT_RGB);
        Graphics2D g2 = img.createGraphics();
        chart.draw(g2, new Rectangle2D.Double(0, 0, width, height));
        g2.dispose();

        int quality = (parameters.containsKey("EXPORT") ? 85 : 100);
        JpegEncoder jpegEncoder = new JpegEncoder(img, quality, outStream);
        jpegEncoder.Compress();
View Full Code Here

Examples of org.jfree.chart.annotations.CategoryAnnotation.draw()

        if (getAnnotations() != null) {
            Iterator iterator = getAnnotations().iterator();
            while (iterator.hasNext()) {
                CategoryAnnotation annotation
                        = (CategoryAnnotation) iterator.next();
                annotation.draw(g2, this, dataArea, getDomainAxis(),
                        getRangeAxis());
            }
        }

    }
View Full Code Here

Examples of org.jfree.chart.annotations.XYAnnotation.draw()

      }
      while (iterator.hasNext())
      {
         XYAnnotation annotation = (XYAnnotation) iterator.next();
         int index = this.plot.getIndexOf(this);
         annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis,
                 index, info);
      }

   }
View Full Code Here

Examples of org.jfree.chart.axis.Axis.draw()

                dataArea.getHeight());
        Iterator iterator = axisCollection.getAxesAtTop().iterator();
        while (iterator.hasNext()) {
            Axis axis = (Axis) iterator.next();
            if (axis != null) {
                AxisState axisState = axis.draw(g2, cursor, plotArea, dataArea,
                        RectangleEdge.TOP, plotState);
                cursor = axisState.getCursor();
                axisStateMap.put(axis, axisState);
            }
        }
View Full Code Here

Examples of org.jfree.chart.axis.CategoryAxis.draw()

        // draw the shared axis
        CategoryAxis axis = getDomainAxis();
        RectangleEdge domainEdge = getDomainAxisEdge();
        double cursor = RectangleEdge.coordinate(dataArea, domainEdge);
        AxisState axisState = axis.draw(g2, cursor, area, dataArea,
                domainEdge, info);
        if (parentState == null) {
            parentState = new PlotState();
        }
        parentState.getSharedAxisStates().put(axis, axisState);
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.