Package java.awt

Examples of java.awt.Stroke


      PaintProvider domainGridlinePaint = plotSettings.getDomainGridlinePaint();
      if(domainGridlinePaint != null)
      {
        p.setDomainGridlinePaint(domainGridlinePaint.getPaint());
      }
      Stroke domainGridlineStroke = plotSettings.getDomainGridlineStroke();
      if(domainGridlineStroke != null)
      {
        p.setDomainGridlineStroke(domainGridlineStroke);
      }
     
    }
    Boolean rangeGridlineVisible = plotSettings.getRangeGridlineVisible();
    if(rangeGridlineVisible == null || rangeGridlineVisible.booleanValue())
    {
      PaintProvider rangeGridlinePaint = plotSettings.getRangeGridlinePaint();
      if(rangeGridlinePaint != null)
      {
        p.setRangeGridlinePaint(rangeGridlinePaint.getPaint());
      }
      Stroke rangeGridlineStroke = plotSettings.getRangeGridlineStroke();
      if(rangeGridlineStroke != null)
      {
        p.setRangeGridlineStroke(rangeGridlineStroke);
      }
    }
View Full Code Here


      PaintProvider domainGridlinePaint = plotSettings.getDomainGridlinePaint();
      if(domainGridlinePaint != null)
      {
        p.setDomainGridlinePaint(domainGridlinePaint.getPaint());
      }
      Stroke domainGridlineStroke = plotSettings.getDomainGridlineStroke();
      if(domainGridlineStroke != null)
      {
        p.setDomainGridlineStroke(domainGridlineStroke);
      }
     
    }
    Boolean rangeGridlineVisible = plotSettings.getRangeGridlineVisible();
    if(rangeGridlineVisible == null || rangeGridlineVisible.booleanValue())
    {
      PaintProvider rangeGridlinePaint = plotSettings.getRangeGridlinePaint();
      if(rangeGridlinePaint != null)
      {
        p.setRangeGridlinePaint(rangeGridlinePaint.getPaint());
      }
      Stroke rangeGridlineStroke = plotSettings.getRangeGridlineStroke();
      if(rangeGridlineStroke != null)
      {
        p.setRangeGridlineStroke(rangeGridlineStroke);
      }
    }
View Full Code Here

      }
      if (linePaint != null)
      {
        axis.setAxisLinePaint(linePaint);
      }
      Stroke axisLineStroke = axisSettings.getLineStroke();
      if(axisLineStroke != null)
        axis.setAxisLineStroke(axisLineStroke);
    }
    else
    {
View Full Code Here

     
      if (tickMarkPaint != null)
      {
        axis.setTickMarkPaint(tickMarkPaint);
      }
      Stroke tickMarkStroke = axisSettings.getTickMarksStroke();
      if(tickMarkStroke != null)
        axis.setTickMarkStroke(tickMarkStroke);
    }
  }
View Full Code Here

     
      Color selectionColor = getSelectionColor();
      Color furnitureOutlineColor = getFurnitureOutlineColor();
      Paint selectionOutlinePaint = new Color(selectionColor.getRed(), selectionColor.getGreen(),
          selectionColor.getBlue(), 128);
      Stroke selectionOutlineStroke = new BasicStroke(6 / planScale,
          BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
      Stroke dimensionLinesSelectionOutlineStroke = new BasicStroke(4 / planScale,
          BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
      Stroke locationFeedbackStroke = new BasicStroke(
          1 / planScale, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL, 0,
          new float [] {20 / planScale, 5 / planScale, 5 / planScale, 5 / planScale}, 4 / planScale);
     
      paintCamera(g2D, selectedItems, selectionOutlinePaint, selectionOutlineStroke, selectionColor,
          planScale, backgroundColor, foregroundColor);
View Full Code Here

    }   
   
    Color selectionColor = getSelectionColor();
    Paint selectionOutlinePaint = new Color(selectionColor.getRed(), selectionColor.getGreen(),
        selectionColor.getBlue(), 128);
    Stroke selectionOutlineStroke = new BasicStroke(6 / planScale,
        BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
    Stroke dimensionLinesSelectionOutlineStroke = new BasicStroke(4 / planScale,
        BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
    Stroke locationFeedbackStroke = new BasicStroke(
        1 / planScale, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL, 0,
        new float [] {20 / planScale, 5 / planScale, 5 / planScale, 5 / planScale}, 4 / planScale);

    paintCompass(g2D, selectedItems, planScale, foregroundColor, paintMode);
View Full Code Here

            : UIManager.getColor("textHighlight");
    
        g2D.setPaint(scaleDistanceLineColor);
       
        AffineTransform oldTransform = g2D.getTransform();
        Stroke oldStroke = g2D.getStroke();
        // Use same origin and scale as image drawing in super class
        g2D.translate(translation.x, translation.y);
        g2D.scale(scale, scale);      
        // Draw a scale distance line       
        g2D.setStroke(new BasicStroke(5 / scale,
View Full Code Here

            ? UIManager.getColor("List.selectionBackground")
            : UIManager.getColor("textHighlight");;
        g2D.setPaint(scaleDistanceLineColor);
       
        AffineTransform oldTransform = g2D.getTransform();
        Stroke oldStroke = g2D.getStroke();
        g2D.translate(translation.x, translation.y);
        // Rescale according to scale distance
        float [][] scaleDistancePoints = this.controller.getScaleDistancePoints();
        float scale = getImageScale() / BackgroundImage.getScale(this.controller.getScaleDistance(),
            scaleDistancePoints [0][0], scaleDistancePoints [0][1],
View Full Code Here

    startX += frameBladeStrike * xLength;
    endX = startX + xLength;

    g2d.setColor(arrowColor.get(nature));
    Stroke oldStroke = g2d.getStroke();
    g2d.setStroke(ARROW_STROKE);
    g2d.drawLine(startX, startY, endX, endY);
    g2d.setStroke(oldStroke);
  }
View Full Code Here

        8.0, 8.0);

    Area circle = new Area(outer);
    circle.subtract(new Area(inner));

    Stroke stroke = g2.getStroke();
    g2.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER,
        5, new float[] { 5, 5 }, 0));
    g2.setColor(new Color(1.0f, 0.0f, 0.0f, 0.4f));
    g2.drawLine(0, (int) origin_y, (int) origin_x, (int) origin_y);
    g2.drawLine((int) origin_x, (int) origin_y, (int) origin_x, getHeight());
View Full Code Here

TOP

Related Classes of java.awt.Stroke

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.