Examples of toX()


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

    protected void setLinkOrigin(){
      GraphicNode node=(GraphicNode)selected;
    CoordinatesConverter coord=getCoord();
    double xStart=coord.toX((selectedIntervalNumber==0)?node.getStart():selectedInterval.getStart());
    double xEnd=selectedIntervalNumber==0?CoordinatesConverter.adaptSmallBarEndX(coord.toX(node.getStart()),coord.toX(node.getEnd()),node,config):coord.toX(selectedInterval.getEnd());
    x0link=(xStart+xEnd)/2;
    y0link=((GanttUI)ui).getBarY(node.getRow())+node.getGanttShapeOffset()+node.getGanttShapeHeight()/2;

    }
View Full Code Here

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

    protected void setLinkOrigin(){
      GraphicNode node=(GraphicNode)selected;
    CoordinatesConverter coord=getCoord();
    double xStart=coord.toX((selectedIntervalNumber==0)?node.getStart():selectedInterval.getStart());
    double xEnd=selectedIntervalNumber==0?CoordinatesConverter.adaptSmallBarEndX(coord.toX(node.getStart()),coord.toX(node.getEnd()),node,config):coord.toX(selectedInterval.getEnd());
    x0link=(xStart+xEnd)/2;
    y0link=((GanttUI)ui).getBarY(node.getRow())+node.getGanttShapeOffset()+node.getGanttShapeHeight()/2;

    }
View Full Code Here

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

    protected void setLinkOrigin(){
      GraphicNode node=(GraphicNode)selected;
    CoordinatesConverter coord=getCoord();
    double xStart=coord.toX((selectedIntervalNumber==0)?node.getStart():selectedInterval.getStart());
    double xEnd=selectedIntervalNumber==0?CoordinatesConverter.adaptSmallBarEndX(coord.toX(node.getStart()),coord.toX(node.getEnd()),node,config):coord.toX(selectedInterval.getEnd());
    x0link=(xStart+xEnd)/2;
    y0link=((GanttUI)ui).getBarY(node.getRow())+node.getGanttShapeOffset()+node.getGanttShapeHeight()/2;

    }
View Full Code Here

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

      if (interval.getEnd()>100000000000000L){
        // this hasn't happened in years. whatever caused it is fixed, but keeping just in case
        System.out.println("ERROR!!! leads to OutOfMemoryError, consumeInterval interval="+interval.getStart()+", "+CalendarUtil.toString(interval.getStart())+", "+interval.getEnd()+", "+CalendarUtil.toString(interval.getEnd())+"...");
        return;
      }
      double x=coord.toX(interval.getStart());
      double width=CoordinatesConverter.adaptSmallBarEndX(x,coord.toX(interval.getEnd()),node,config)-x;
//      double width=coord.toW(interval.getEnd()-interval.getStart());
      double height;
      double y=yrow+config.getGanttBarYOffset();
      int row=format.getRow();
View Full Code Here

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

        // this hasn't happened in years. whatever caused it is fixed, but keeping just in case
        System.out.println("ERROR!!! leads to OutOfMemoryError, consumeInterval interval="+interval.getStart()+", "+CalendarUtil.toString(interval.getStart())+", "+interval.getEnd()+", "+CalendarUtil.toString(interval.getEnd())+"...");
        return;
      }
      double x=coord.toX(interval.getStart());
      double width=CoordinatesConverter.adaptSmallBarEndX(x,coord.toX(interval.getEnd()),node,config)-x;
//      double width=coord.toW(interval.getEnd()-interval.getStart());
      double height;
      double y=yrow+config.getGanttBarYOffset();
      int row=format.getRow();
        if (row==1){
View Full Code Here

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

      //TODO style and format of completion should be treated with bar prefererences instead of a special case
      if (format.isMain()&&!node.isSummary()&&node.isStarted()){
        long completedT=node.getCompleted();
        if (completedT>=interval.getStart()){
          double completedW=coord.toX(completedT)-x;
          if (completedW>width && !GanttOption.getInstance().isCompletionIsContiguous())
            completedW=width;
          completedW=CoordinatesConverter.adaptSmallBarEndX(x, x+completedW, node,config)-x;
          Rectangle2D progressBar=new Rectangle2D.Double(x,y-config.getGanttProgressBarHeight()/2,completedW,config.getGanttProgressBarHeight());
          g2.setColor(Color.BLACK);
View Full Code Here

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

        if (i>0) s=s.substring(0, i);
      }
      else s=FieldConverter.toString(value,value.getClass(),null);
      component.setText(s); //field.getClazz()?
      int y=yrow+config.getGanttBarYOffset();//+config.getGanttBarAnnotationYOffset();
      double x0=coord.toX(node.getStart());
      double x1=coord.toX(node.getEnd());
      x1=CoordinatesConverter.adaptSmallBarEndX(x0,x1,node,config);

      int x=(int)Math.ceil(x1)+config.getGanttBarAnnotationXOffset();
      int w=fontMetrics.stringWidth(s);//config.getGanttBarAnnotationMaxWidth();
View Full Code Here

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

      }
      else s=FieldConverter.toString(value,value.getClass(),null);
      component.setText(s); //field.getClazz()?
      int y=yrow+config.getGanttBarYOffset();//+config.getGanttBarAnnotationYOffset();
      double x0=coord.toX(node.getStart());
      double x1=coord.toX(node.getEnd());
      x1=CoordinatesConverter.adaptSmallBarEndX(x0,x1,node,config);

      int x=(int)Math.ceil(x1)+config.getGanttBarAnnotationXOffset();
      int w=fontMetrics.stringWidth(s);//config.getGanttBarAnnotationMaxWidth();
      int h=config.getGanttBarHeight();
View Full Code Here

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

          GraphicNode from=dependency.getPredecessor();
          GraphicNode to=dependency.getSuccessor();
          int type=dependency.getType();
        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);
View Full Code Here

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

          GraphicNode to=dependency.getSuccessor();
          int type=dependency.getType();
        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;
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.