Examples of boundingBox()


Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

     * @throws Exception
     */
    public ReferencedEnvelope getBoundingBox() throws Exception {
        if (layerInfo != null) {
            ResourceInfo resource = layerInfo.getResource();
            ReferencedEnvelope bbox = resource.boundingBox();
            // if(bbox == null){
            // bbox = resource.getLatLonBoundingBox();
            // }
            return bbox;
        } else if (this.type == TYPE_REMOTE_VECTOR) {
View Full Code Here

Examples of org.geoserver.catalog.ResourceInfo.boundingBox()

        try {
            LinkedHashMap json = new LinkedHashMap();
            json.put("name", resource.getPrefixedName());
            try {
                json.put("bbox", toJSON(resource.boundingBox()));
            } catch(Exception e) {
                throw ((IOException) new IOException("Failed to get the resource bounding box of:" + resource.getPrefixedName()).initCause(e));
            }
            json.put("crs", "urn:ogc:def:crs:EPSG:" + CRS.lookupEpsgCode(resource.getCRS(), false));
            json.put("axisorder", "xy");
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.boundingBox()

           
            // Check with tschaub whether we actually have to provide this as OSGEO:40041
            // No.
            xml.simpleElement("SRS", gridSub.getSRS().toString(), true);
            double[] coords = gridSub.getCoverageBestFitBounds().getCoords();
            xml.boundingBox(null, coords[0], coords[1], coords[2], coords[3]);
            xml.indentElement("Origin")
                .attribute("x", Double.toString(coords[0]))
                .attribute("y", Double.toString(coords[1]))
                .endElement();
            // Can we have multiple formats? NO
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChart.boundingBox()

      ).
      type("category")
    );
    CartesianChart chart1 = Y.newChart(chartConfig).cast();

    chart1.boundingBox().getNode("parentNode").getNode("parentNode").
      append("<p>a default chart with custom axes</p>");
   
    //now a second chart of type columns and a custom legend style. use the same config object
    chartConfig.type(ChartBase.TYPE_COLUMN);
    chartConfig.render("#chart2");
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChart.boundingBox()

    //now a second chart of type columns and a custom legend style. use the same config object
    chartConfig.type(ChartBase.TYPE_COLUMN);
    chartConfig.render("#chart2");
    chartConfig.legend(ChartLegendConfig.create().position("left"));
    CartesianChart chart2 = Y.newChart(chartConfig).cast().cast();
    chart2.boundingBox().getNode("parentNode").getNode("parentNode").
      append("<p>A <b>column</b> chart with custom axes and legend style</p>");
   
    //now the same chart of type bar and custom bar colors
    chartConfig.type(ChartBase.TYPE_BAR);
    chartConfig.render("#chart3");
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChart.boundingBox()

    chartConfig.legend(ChartLegendConfig.create().position("bottom"));
    chartConfig.seriesCollection(new CartesianSeries[]{
//      CartesianSeries.C
    });
    CartesianChart chart3 = Y.newChart(chartConfig).cast().cast();
    chart3.boundingBox().getNode("parentNode").getNode("parentNode").
      append("<p>the same as before but type <b>bar</b> and bottom legend and and custom bar colors.</p>");
   
    chartConfig.type(ChartBase.TYPE_MARKERSERIES);
    chartConfig.render("#chart4");
    chartConfig.legend(ChartLegendConfig.create().position("bottom"));
View Full Code Here

Examples of org.sgx.yuigwt.yui.charts.CartesianChart.boundingBox()

   
    chartConfig.type(ChartBase.TYPE_MARKERSERIES);
    chartConfig.render("#chart4");
    chartConfig.legend(ChartLegendConfig.create().position("bottom"));
    CartesianChart chart4 = Y.newChart(chartConfig).cast().cast();
    chart4.boundingBox().getNode("parentNode").getNode("parentNode").
      append("<p>the same as before but type <b>markseries</b></p>");
   
  }
});
}
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.Widget.boundingBox()

      public void call(ButtonEvent e) {
        console.log("button pressed at x  ="+e.domEvent().getClientX()+".\n And this will be THE LAST TIME !!!");
        handle1.detach(); //unregister this event listener!
      }
    });
    console.log("button's region is : " + button1.boundingBox().region().print());
    button1.boundingBox().setStyles(Style.create().border("3px solid green"));
   
    //another way of register an event listener, this time passing it to the config object
    Button b2 = Y.newButton(ButtonConfig.create().label("another button").render(parent).
      on("click", new EventCallback<ButtonEvent>() {       
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.Widget.boundingBox()

        console.log("button pressed at x  ="+e.domEvent().getClientX()+".\n And this will be THE LAST TIME !!!");
        handle1.detach(); //unregister this event listener!
      }
    });
    console.log("button's region is : " + button1.boundingBox().region().print());
    button1.boundingBox().setStyles(Style.create().border("3px solid green"));
   
    //another way of register an event listener, this time passing it to the config object
    Button b2 = Y.newButton(ButtonConfig.create().label("another button").render(parent).
      on("click", new EventCallback<ButtonEvent>() {       
        @Override
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.