Package com.projity.graphic.configuration

Examples of com.projity.graphic.configuration.BarStyles.apply()


  }

  public void paintLink(Graphics2D g2, GraphicDependency dependency){
    BarStyles barStyles = graphInfo.getBarStyles();
    linkRenderer.initialize(g2,dependency);
    barStyles.apply(dependency,linkRenderer,true,false,false, false);
  }

 
 
  protected GeneralPath getShape(GraphicNode node){
View Full Code Here


    public void updateShape(GraphicNode node){
      if (((GanttParams)graphInfo).getCoord()==null) return; //not initialized
    BarStyles barStyles = graphInfo.getBarStyles();
    nodeRenderer.initialize(null,node);
    barStyles.apply(node.getNode().getImpl(),nodeRenderer);

    }

  public void paintNode(Graphics2D g2,GraphicNode node, boolean background){
    BarStyles barStyles = graphInfo.getBarStyles();
View Full Code Here

    nodeRenderer.initialize(g2,node);

    if (background)
      nodeRenderer.setLayers(BarFormat.MIN_BACKGROUND_LAYER,BarFormat.MAX_BACKGROUND_LAYER);
    else nodeRenderer.setLayers(BarFormat.MIN_FOREGROUND_LAYER,BarFormat.MAX_FOREGROUND_LAYER);
    barStyles.apply(node.getNode().getImpl(),nodeRenderer);

  }

  public void paintAnnotation(Graphics2D g2,GraphicNode node){
    BarStyles barStyles = graphInfo.getBarStyles();
View Full Code Here

  }

  public void paintAnnotation(Graphics2D g2,GraphicNode node){
    BarStyles barStyles = graphInfo.getBarStyles();
    annotationRenderer.initialize(g2,node);
    barStyles.apply(node.getNode().getImpl(),annotationRenderer,false,true,false, false);
  }

  public void paintHorizontalLine(Graphics2D g2,GraphicNode node){
    BarStyles barStyles = graphInfo.getBarStyles();
    horizontalLineRenderer.initialize(g2,node);
View Full Code Here

  }

  public void paintHorizontalLine(Graphics2D g2,GraphicNode node){
    BarStyles barStyles = graphInfo.getBarStyles();
    horizontalLineRenderer.initialize(g2,node);
    barStyles.apply(node.getNode().getImpl(),horizontalLineRenderer,false,false,false, true);
  }

  public void paintLink(Graphics2D g2, GraphicDependency dependency){
    BarStyles barStyles = graphInfo.getBarStyles();
    linkRenderer.initialize(g2,dependency);
View Full Code Here

  }

  public void paintLink(Graphics2D g2, GraphicDependency dependency){
    BarStyles barStyles = graphInfo.getBarStyles();
    linkRenderer.initialize(g2,dependency);
    barStyles.apply(dependency,linkRenderer,true,false,false, false);
  }


  protected BarFormat calendarFormat;
  protected Closure calendarClosure=new Closure(){
View Full Code Here

  };
  protected BarFormat getCalendarFormat(){
    calendarFormat=null;
    if (calendarFormat==null){
      BarStyles barStyles = graphInfo.getBarStyles();
      barStyles.apply(null,calendarClosure,false,false,true, false);
    }
    return calendarFormat;
  }

  public void paintNonWorkingDays(Graphics2D g2,Rectangle bounds){
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.