Package com.google.code.appengine.awt

Examples of com.google.code.appengine.awt.Graphics2D.draw()


              //---if we are filling the points, see if we should outline the Shape
              //---applicable only to POINt charts
              if( this.pointOutlinePaints.get( labelIndex ) != null )
              {
                g2d.setPaint( (Paint) this.pointOutlinePaints.get( labelIndex ) );
                g2d.draw( (Shape) this.shapes.get( labelIndex ) );
              }
            }
          }
          else
          {
View Full Code Here


          else
          {
            // for Point Charts, only draw shape
            if( chartType == ChartType.POINT)
            {
              g2d.draw( (Shape) this.shapes.get( labelIndex ) );
            } else
            // chartType == ChartType.LINE
            // for Line Charts, fill the shape
            {
              //---get the bounds of the shape
View Full Code Here

              double YOffset = shapeBounds.getHeight() / 2;

              g2d.setStroke(this.lineChartProperties.getLineStrokes()[ labelIndex]);

              Line2D.Double line = new Line2D.Double(0, YOffset, this.legendProperties.getIconLineStrokeLength(), YOffset);
              g2d.draw( line );
              // move posX to account for the lineStroke before the shape. for example, ---o
              posX += this.legendProperties.getIconLineStrokeLength();
              //---translate the Shape to adjust for the IconLineStrokeLength
              g2d.translate( this.legendProperties.getIconLineStrokeLength() - XOffset , 0 );
View Full Code Here

              //---translate the Shape to adjust for the IconLineStrokeLength
              g2d.translate( this.legendProperties.getIconLineStrokeLength() - XOffset , 0 );


              line.x1 = XOffset;
              g2d.draw( line );


              g2d.fill( (Shape) this.shapes.get( labelIndex ) );

              //---border around icon
View Full Code Here

              if( this.legendProperties.getIconBorderStroke() != null && this.pointOutlinePaints.size() != 0 )
              {
                if( this.pointOutlinePaints != null ) {
                  g2d.setStroke( this.legendProperties.getIconBorderStroke() );
                  g2d.setPaint( (Paint) this.pointOutlinePaints.get( labelIndex ) );
                  g2d.draw( (Shape) this.shapes.get( labelIndex ) );
                }
              }


              // move posX to account for the lineStroke after the shape. for example, o---
View Full Code Here

          //---border around icon
          if( this.legendProperties.getIconBorderStroke() != null )
          {
            g2d.setStroke( this.legendProperties.getIconBorderStroke() );
            g2d.setPaint( this.legendProperties.getIconBorderPaint() );
            g2d.draw( rectangle );
          }
        }


        //---draw the label
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.