Package com.projity.pm.graphic.graph

Examples of com.projity.pm.graphic.graph.GraphZone


    GeneralPath shape;
    for (ListIterator i=graph.getModel().getNodeIterator();i.hasNext();){
      node=(GraphicNode)i.next();
      shape=((NetworkRenderer)graphRenderer).getShape(node);
      if (shape!=null&&shape.contains(x,y)){
        return node==null?null:new GraphZone(node);
      }
    }
    return null;
    }
View Full Code Here


    CoordinatesConverter coord=getCoord();
    double t=coord.toTime(x);
    double deltat=coord.toDuration(delta);
    if  (node.contains(t,deltat,deltat,coord)==null) return null;
    double progessH=config.getGanttProgressBarHeight();
    GraphZone zone=new GraphZone();
    zone.setObject(node);
    if (y>=y0+h/2-progessH/2&&y<y0+h/2+progessH/2) zone.setZoneId(PROGRESS_BAR_ZONE_ID);
    return zone;


    }
View Full Code Here

TOP

Related Classes of com.projity.pm.graphic.graph.GraphZone

Copyright © 2018 www.massapicom. 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.