Examples of Options


Examples of com.google.gwt.visualization.client.visualizations.corechart.ComboChart.Options

    loadApi(new Runnable() {
      public void run() {
        DataTable data = createDailyActivities();

        // Create a bar chart for each of the series.
        Options options = ComboChart.createComboOptions();
        options.setWidth(400);
        options.setHeight(240);
        options.setSeriesType(Type.BARS);
        RootPanel.get().add(new ComboChart(data, options));
        assertNoVisualizationErrors();
      }
    });
  }
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.Options

    loadApi(new Runnable() {
      public void run() {
        DataTable data = createDailyActivities();

        // Create a minimal area chart.
        Options options = Options.create();
        options.setWidth(400);
        options.setHeight(240);
        RootPanel.get().add(new AreaChart(data, options));
      }
    });
  }
View Full Code Here

Examples of com.google.i18n.phonenumbers.BuildMetadataCppFromXml.Options

    }
  }

  @Test
  public void parseGoodOptions() {
    Options opt = BuildMetadataCppFromXml.Options.parse("MyCommand",
        new String[] { IGNORED, INPUT_PATH_XML, OUTPUT_DIR, "test_alternate_format" });
    assertEquals(Type.ALTERNATE_FORMAT, opt.getType());
    assertEquals(Variant.TEST, opt.getVariant());
    assertEquals(INPUT_PATH_XML, opt.getInputFilePath());
    assertEquals(OUTPUT_DIR, opt.getOutputDir());
  }
View Full Code Here

Examples of com.googlecode.wickedcharts.highcharts.options.Options

            max = maxOf(max, summaryMax);
        }
        min = minOf(min, BigDecimal.ZERO);
        max = maxOf(max, BigDecimal.ZERO);
       
        Options options = new Options();
        options.setChartOptions(new ChartOptions().setType(SeriesType.COLUMN));
       
        options.setTitle(new Title("Summary"));
       
        options.setxAxis(new Axis().setCategories(titles));
        options.setyAxis(new Axis().setMin(min).setMax(max));
       
        options.setLegend(
                new Legend()
                    .setLayout(LegendLayout.VERTICAL)
                    .setBackgroundColor(new HexColor("#FFFFFF"))
                    .setAlign(HorizontalAlignment.LEFT)
                    .setVerticalAlign(VerticalAlignment.TOP).setX(100).setY(70).setFloating(Boolean.TRUE).setShadow(Boolean.TRUE));
       
        options.setTooltip(
                new Tooltip().setFormatter(new Function().setFunction(" return ''+ this.x +': '+ this.y;")));
       
        options.setPlotOptions(
                new PlotOptionsChoice()
                .setColumn(new PlotOptions().setPointPadding(0.2f).setBorderWidth(0)));

        for (Summary summary : summaries) {
            String propertyName = summary.getPropertyName();
            Series<Number> setData = new SimpleSeries().setName(propertyName).setData(summary.getValuesAsNumbers());
            options.addSeries(setData);
        }
       
        return new WickedChart(options);
    }
View Full Code Here

Examples of com.googlecode.wicket.jquery.core.Options

   
    final AppointmentDialog dialog = new AppointmentDialog("appointment", WebSession.getString(815)
        , this, new CompoundPropertyModel<Appointment>(getDefault()));
    add(dialog);
   
    Options options = new Options();
    options.set("header", "{left: 'prevYear,prev,next,nextYear today', center: 'title', right: 'month,agendaWeek,agendaDay'}");
    options.set("allDaySlot", false);
    options.set("axisFormat", "'HH(:mm)'");
    options.set("defaultEventMinutes", 60);
    options.set("timeFormat", "{agenda: 'HH:mm{ - HH:mm}', '': 'HH(:mm)'}");

    options.set("buttonText", "{month: '" + WebSession.getString(801) +
                "', week: '" + WebSession.getString(800) +
                "', day: '"  + WebSession.getString(799) +
                "', today: '"  + WebSession.getString(1555) +
                "'}");

    JSONArray monthes = new JSONArray();
    JSONArray shortMonthes = new JSONArray();
    JSONArray days = new JSONArray();
    JSONArray shortDays = new JSONArray();
    try {
      // first week day must be Sunday
      days.put(0, WebSession.getString(466));
      shortDays.put(0, WebSession.getString(459));
      for (int i=0; i < 12; i++){
        monthes.put(i, WebSession.getString(469 + i));
        shortMonthes.put(i, WebSession.getString(1556 + i));
        if (i+1 < 7){
          days.put(i+1, WebSession.getString(460 + i));
          shortDays.put(i+1, WebSession.getString(453 + i));         
        }
      }
    } catch (JSONException e) {
      log.error("Unexpected error while creating label lists", e);
    }
    options.set("monthNames", monthes.toString());
    options.set("monthNamesShort", shortMonthes.toString());
    options.set("dayNames", days.toString());
    options.set("dayNamesShort", shortDays.toString());
   
    calendar = new Calendar("calendar", new AppointmentModel(), options) {
      private static final long serialVersionUID = 8442068089963449950L;
     
      @Override
View Full Code Here

Examples of com.gwtmobile.phonegap.client.Accelerometer.Options

      }     
      @Override
      public void onError() {
        text.setHTML("Error");
      }
    }, new Options().frequency(100));
  }
View Full Code Here

Examples of com.gwtmobile.phonegap.client.Camera.Options

      }     
      @Override
      public void onError(String message) {
        text.setHTML("Error: " + message);
      }
    }, new Options()
      .quality(50)
      .sourceType(SourceType.CAMERA)
      .destinationType(DestinationType.FILE_URI)
      .allowEdit(false));
  }
View Full Code Here

Examples of com.gwtmobile.phonegap.client.Compass.Options

      }     
      @Override
      public void onError() {
        text.setHTML("Error");
      }
    }, new Options().frequency(100));
  }
View Full Code Here

Examples of com.gwtmobile.phonegap.client.Geolocation.Options

      }     
      @Override
      public void onError(PositionError error) {
        text.setHTML("Error<br/>code:" + error.getCode() + "<br/>message: " + error.getMessage());
      }
    }, new Options().frequency(100).enableHighAccuracy(true).timeout(1000).maximumAge(1000));
  }
View Full Code Here

Examples of com.hmsonline.storm.cassandra.trident.CassandraMapState.Options

        Config config = new Config();
        config.setMaxSpoutPending(25);
        config.put("cassandra.config", clientConfig);

        StateFactory cassandraStateFactory = null;
        Options options = null;
        switch(txType){
        case TRANSACTIONAL:
            options = new Options<TransactionalValue>();
            options.columnFamily = "transactional";
            cassandraStateFactory = CassandraMapState.transactional(options);           
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.