Examples of applyPaint()


Examples of com.projity.graphic.configuration.shape.PredefinedPaint.applyPaint()

    if (texture)
      g2.setPaint(paint); // the paint already has the color set
    else {
      if (paint instanceof PredefinedPaint) {
        PredefinedPaint p = (PredefinedPaint) paint;
        p.applyPaint(g2, texture);
      } else
        g2.setColor(getColor());
    }

  }
View Full Code Here

Examples of com.projity.graphic.configuration.shape.PredefinedPaint.applyPaint()

        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()){
            if (startNonworking!=-1L){
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.