Examples of toX()


Examples of com.projity.pm.graphic.timescale.CoordinatesConverter.toX()

        int fromSign=(type==DependencyType.SF||type==DependencyType.SS)?-1:1;
        int toSign=(type==DependencyType.FS||type==DependencyType.SS)?-1:1;
        double fx0=coord.toX(from.getStart());
        double fx1=coord.toX(from.getEnd());
        fx1=CoordinatesConverter.adaptSmallBarEndX(fx0,fx1,from,config);
        double tx0=coord.toX(to.getStart());
        double tx1=coord.toX(to.getEnd());
        tx1=CoordinatesConverter.adaptSmallBarEndX(tx0,tx1,to,config);
        double x0=fromSign<0?fx0:fx1;
        double x1=toSign<0?tx0:tx1;
        int rowHeight=((GanttParams)graphInfo).getRowHeight();
View Full Code Here

Examples of com.projity.pm.graphic.timescale.CoordinatesConverter.toX()

        int toSign=(type==DependencyType.FS||type==DependencyType.SS)?-1:1;
        double fx0=coord.toX(from.getStart());
        double fx1=coord.toX(from.getEnd());
        fx1=CoordinatesConverter.adaptSmallBarEndX(fx0,fx1,from,config);
        double tx0=coord.toX(to.getStart());
        double tx1=coord.toX(to.getEnd());
        tx1=CoordinatesConverter.adaptSmallBarEndX(tx0,tx1,to,config);
        double x0=fromSign<0?fx0:fx1;
        double x1=toSign<0?tx0:tx1;
        int rowHeight=((GanttParams)graphInfo).getRowHeight();
        int yOffset=config.getGanttBarYOffset()+config.getGanttBarHeight()/2;
View Full Code Here

Examples of com.projity.pm.graphic.timescale.CoordinatesConverter.toX()

      //scale2 separation lines
      TimeIterator i=coord.getTimeIterator(bounds.getX(), bounds.getMaxX(),true);
      g2.setPaint(new PredefinedPaint(PredefinedPaint.DOT_LINE2,Color.GRAY,g2.getBackground()));
      while (i.hasNext()){
        TimeInterval interval=i.next();
        int startX=(int)Math.round(coord.toX(interval.getStart()));
        g2.drawLine(startX,bounds.y,startX,bounds.y+bounds.height);
      }

      //project start
      int projectStartX=(int)Math.round(coord.toX(project.getStart()));
View Full Code Here

Examples of com.projity.pm.graphic.timescale.CoordinatesConverter.toX()

        int startX=(int)Math.round(coord.toX(interval.getStart()));
        g2.drawLine(startX,bounds.y,startX,bounds.y+bounds.height);
      }

      //project start
      int projectStartX=(int)Math.round(coord.toX(project.getStart()));
      if (projectStartX>=bounds.getX()&&projectStartX<=bounds.getMaxX()){
        g2.setPaint(new PredefinedPaint(PredefinedPaint.DASH_LINE,Color.GRAY,g2.getBackground()));
        g2.drawLine(projectStartX,bounds.y,projectStartX,bounds.y+bounds.height);
      }
View Full Code Here

Examples of com.projity.pm.graphic.timescale.CoordinatesConverter.toX()

      }

      //project start
      long statusDate = project.getStatusDate();
      if (statusDate != 0) {
        int statusDateX=(int)Math.round(coord.toX(statusDate));
        if (statusDateX>=bounds.getX()&&statusDateX<=bounds.getMaxX()){
          g2.setPaint(new PredefinedPaint(PredefinedPaint.DOT_LINE2,Color.GREEN,g2.getBackground()));
          g2.drawLine(statusDateX,bounds.y,statusDateX,bounds.y+bounds.height);
        }
      }
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.