Exemplo n.º 1
0
  /** Do the initial setup for the Chart */
  private void init() {
    // #style lineChart
    chart = new LineChart("");
    chart.setUseDefaultColor(false);

    chart.setFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_SMALL);
    chart.setDrawAxis(true);
    chart.setPreferredSize(240, 200);
    chart.setMargins(5, 3, 30, 35);
    chart.makeShadowVisible(true);
    chart.setShadowColor(20, 20, 20);
    chart.setColor(0, 0, 0);
    chart.resetData();

    // chart.setMaxYScaleFactor(100);
    // chart.setMaxXScaleFactor(18);
    wec.init();
  }
Exemplo n.º 2
0
 /*
  * (non-Javadoc)
  * @see org.javarosa.formmanager.view.chatterbox.widget.ExpandedWidget#getEntryWidget(org.javarosa.core.model.QuestionDef)
  */
 public Item getInteractiveWidget() {
   return wec.wrapInteractiveWidget(super.getInteractiveWidget());
 }
Exemplo n.º 3
0
 /*
  * (non-Javadoc)
  * @see org.javarosa.formmanager.view.chatterbox.widget.ExpandedWidget#getNextMode()
  */
 public int getNextMode() {
   return wec.wrapNextMode(ChatterboxWidget.NEXT_ON_SELECT);
 }
Exemplo n.º 4
0
 /*
  * (non-Javadoc)
  * @see org.javarosa.formmanager.view.chatterbox.widget.ExpandedWidget#getEntryWidget(org.javarosa.core.model.QuestionDef)
  */
 protected Item getEntryWidget(FormEntryPrompt prompt) {
   return wec.wrapEntryWidget(chart);
 }