Examples of BarFormat


Examples of com.google.gwt.visualization.client.formatters.BarFormat

        dataTable.setFormattedValue(3, 1, "3.333");
        assertEquals("3.333", dataTable.getFormattedValue(3, 1));

        Options options = Options.create();
        options.setBase(6);
        BarFormat formatter = BarFormat.create(options);
        formatter.format(dataTable, 1);
      }
    });
  }
View Full Code Here

Examples of com.projity.graphic.configuration.BarFormat

  }
 
 
  FormComponent getForm(int zoom,boolean editor){
    if (selectedFormats.size()==0) return null;//should not happen
    BarFormat format=(BarFormat)selectedFormats.get(0);
    return getForm(format,zoom, editor);
  }
View Full Code Here

Examples of com.projity.graphic.configuration.BarFormat

  private class FormatSelectionFunctor implements Closure {
    void initialize() {
      selectedFormats.clear();
    }
    public void execute(Object arg0) {     
      BarFormat format = (BarFormat)arg0;
      if (!format.isMain()) return;
      selectedFormats.add(format);
    }
View Full Code Here

Examples of com.projity.graphic.configuration.BarFormat

    fieldComponents=new HashMap();
    this.selectedFormats=selectedFormats;
    this.editor=editor;
    this.zoom=zoom;
    this.texture=texture;
    BarFormat format;
    if (selectedFormats==null||selectedFormats.size()==0) format=null;
    else format=(BarFormat)selectedFormats.get(0);
    init(format);
    setOpaque(false);
    setForeground(Color.BLACK);
View Full Code Here

Examples of com.projity.graphic.configuration.BarFormat

 
 

  void paintSelectedBars(Graphics2D g2, double width, double height){
    for (Iterator i=selectedFormats.iterator();i.hasNext();){
      BarFormat format = (BarFormat)i.next();
      if (format.getMiddle()!=null) format.getMiddle().draw(g2,
          width,
          height,
          0,
          +height/2,
          texture);
      if (format.getStart()!=null) format.getStart().draw(g2,
          width,
          height,
          0,
          +height/2,
          texture);
      if (format.getEnd()!=null) format.getEnd().draw(g2,
          width,
          height,
          0,
          +height/2,
          texture);
View Full Code Here

Examples of com.projity.graphic.configuration.BarFormat

    }
    return calendarFormat;
  }

  public void paintNonWorkingDays(Graphics2D g2,Rectangle bounds){
    BarFormat calFormat=getCalendarFormat();
    if (calFormat==null) return;
    //non working days
      Color oldColor=g2.getColor();
      Paint oldPaint=g2.getPaint();
      CoordinatesConverter coord=((GanttParams)graphInfo).getCoord();
      Project project=coord.getProject();
      WorkingCalendar wc=(WorkingCalendar)project.getWorkCalendar();

      if (coord.getTimescaleManager().isShowWholeDays()){
        boolean useScale2=coord.getTimescaleManager().getCurrentScaleIndex()==0; //valid only for current time scales
        TimeIterator i=coord.getTimeIterator(bounds.getX(), bounds.getMaxX(),useScale2);
        long startNonworking=-1L,endNonWorking=-1L;
        Calendar cal=DateTime.calendarInstance();

        PredefinedPaint paint=(PredefinedPaint)calFormat.getMiddle().getPaint();//new PredefinedPaint(PredefinedPaint.DOT_LINE,Colors.VERY_LIGHT_GRAY,Color.WHITE);
        paint.applyPaint(g2, useTextures());
        while (i.hasNext()){
          TimeInterval interval=i.next();
          long s=interval.getStart();
          if (CalendarService.getInstance().getDay(wc, s).isWorking()){
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.