Package java.awt

Examples of java.awt.BasicStroke$FillAdapter


        if (dashPhaseColumn != -1) {
            dashPhase = ((Double) record.get(lineWidthColumn)).floatValue();
        }

        da.setStroke(new BasicStroke(lineWidth, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, dashPattern, dashPhase));
        da.setTo(graphic);
    }
View Full Code Here


        OMGraphicList omList = new OMGraphicList();

        // Add an OMLine
        OMLine line = new OMLine(40f, -75f, 42f, -70f, OMGraphic.LINETYPE_GREATCIRCLE);
        line.setStroke(new BasicStroke(2));
        line.putAttribute(OMGraphicConstants.LABEL,
                new OMTextLabeler("Line Label"));
        line.setLinePaint(Color.red);
        line.setSelectPaint(Color.blue);
        line.putAttribute(OMGraphicConstants.TOOLTIP, "This is an OMLine.");
View Full Code Here

        OMGraphicList omList = new OMGraphicList();

        // Add an OMLine
        OMLine line = new OMLine(40f, -75f, 42f, -70f, OMGraphic.LINETYPE_GREATCIRCLE);
        // line.addArrowHead(true);
        line.setStroke(new BasicStroke(2));
        line.putAttribute(OMGraphicConstants.LABEL,
                new OMTextLabeler("Line Label"));

        omList.add(line);
View Full Code Here

        // omList.add(spline3);

        OMLine line = new OMLine(40f, -75f, 42f, -70f, OMGraphic.LINETYPE_GREATCIRCLE);
        // line.addArrowHead(true);
        line.addArrowHead(OMArrowHead.ARROWHEAD_DIRECTION_BOTH);
        line.setStroke(new BasicStroke(2));
        line.putAttribute(OMGraphicConstants.LABEL,
                new OMTextLabeler("Line Label"));

        omList.add(line);
View Full Code Here

        if (filterGA == null) {
            filterGA = new GraphicAttributes();
            filterGA.setLinePaint(Color.red);
            filterGA.setRenderType(OMGraphic.RENDERTYPE_LATLON);
            filterGA.setLineType(OMGraphic.LINETYPE_GREATCIRCLE);
            BasicStroke filterStroke = new BasicStroke(1f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, 10f, new float[] {
                    3, 3 }, 0f);
            filterGA.setStroke(filterStroke);
        }
        return (GraphicAttributes) filterGA.clone();
    }
View Full Code Here

        {
          spiderWebPlot.setAxisLinePaint(plot.getAxisLineColor());
        }
        if(plot.getAxisLineWidth() != null)
        {
          spiderWebPlot.setAxisLineStroke(new BasicStroke(plot.getAxisLineWidth()));
        }
        if(plot.getBackcolor() != null)
        {
          spiderWebPlot.setBackgroundPaint(plot.getBackcolor());
        }
View Full Code Here

        }

        // Draw tracked gates and components
        //----------------------
        Stroke oldStroke = g2.getStroke();
        g2.setStroke(new BasicStroke(0));

       
        // draw tracked component gates
        for(int i=0;i<_currentTrackedComponent.size(); i++){
            GatedComponent gc = ((GatedComponent) _currentTrackedComponent.get(i));
View Full Code Here

   *         the stroke created, if parameters are corrupted
   * return a not dashed stroke
   */
  public static Stroke createStroke(float f1, float f2,float width) {
    if (f1 < 0 || f2 < 0) {
      return (new BasicStroke(width));
    }
    float[] fd = { f1, f2 };
    return new BasicStroke(width, BasicStroke.CAP_SQUARE,
        BasicStroke.JOIN_MITER, 1.f, fd, 0.f);
  }
View Full Code Here

        }
        else{
            g2.setColor(Color.black);
            g2.setBackground(DiagramParameters.DEFAULT_COLOR);
        }
        g2.setStroke(new BasicStroke(0));

        // loop on objects to be displayed
        //--------------------------------
        for(int i=0;i<ShapesContainer.this.size();i++){
            AbstractShape r=(AbstractShape)elementAt(i);
View Full Code Here

            } else {
                posY= (int)Math.round(((oy - referencePoint.y) * sy));
            }

            // draw current point
            g2.setStroke(new BasicStroke());
            g2.setColor(new Color(0,100,0));    //dark green
            g2.fillOval(posX - 6, posY - 6, 12, 12);

            g2.setColor(Color.WHITE);
            g2.fillOval(posX - 5, posY - 5, 10, 10);
View Full Code Here

TOP

Related Classes of java.awt.BasicStroke$FillAdapter

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.