Examples of drawLine()


Examples of org.eclipse.swt.graphics.GC.drawLine()

        gcImage.drawLine(newWidth - 1, 0, newWidth - 1, newHeight - 1);
      }

      if (borderSplit > 0) {
        gcImage.setForeground(Colors.white);
        gcImage.drawLine(x0, completionHeight + borderHorizontalSize,
                         x1, completionHeight + borderHorizontalSize);
      }
    } else {
      gcImage = new GC(image);
    }
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawLine()

            bImageChanged = true;
            if (imageBuffer[i] >= INDEX_COLOR_FADEDSTARTS)
              gcImage.setForeground(Colors.faded[index - INDEX_COLOR_FADEDSTARTS]);
            else
              gcImage.setForeground(Colors.blues[index]);
            gcImage.drawLine(i + x0, y0, i + x0, y1);
          }
        }
      }
      if (!bImageBufferValid) {
        if(established) {
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawLine()

      }
     
      if ( drawLine ){
    int x1 = x0 + (int) ( r * deltaYXs[iAngle] );
    int y1 = y0 + (int) ( r * deltaYYs[iAngle] );       
    gcBuffer.drawLine(x0,y0,x1,y1);
      }   
     
     
     
      if(percent_received >= 0) {
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawLine()

        gc.setForeground(curColor);
       
        if(globalPiecesPerAvailability[i] == 0)
        {
          gc.setLineWidth(2);
          gc.drawLine(stepWidthX * i, offsetY - 1, stepWidthX * (i + 1) - barGap, offsetY - 1);
        } else
        {
          gc.setLineWidth(1);
          if (downloading[i])
            gc.setLineStyle(SWT.LINE_DASH);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawLine()

      //gcImage.setBackground(null);
      scale.setNbPixels(bounds.height - 16);
      int[] levels = scale.getScaleValues();
      for(int i = 0 ; i < levels.length ; i++) {
        int height = bounds.height - scale.getScaledValue(levels[i]) - 2;
        gcBuffer.drawLine(1,height,bounds.width - 70 ,height);
        gcBuffer.drawText(formater.format(levels[i]),bounds.width - 65,height - 12,true);
      }
      if (this.update_divider_width > 0) {
        for (int i=bounds.width - 70; i > 0; i-=this.update_divider_width) {
          gcBuffer.setForeground(Colors.grey);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawLine()

        gcBuffer.drawText(formater.format(levels[i]),bounds.width - 65,height - 12,true);
      }
      if (this.update_divider_width > 0) {
        for (int i=bounds.width - 70; i > 0; i-=this.update_divider_width) {
          gcBuffer.setForeground(Colors.grey);
          gcBuffer.drawLine(i, 0, i, bounds.height);
        }
      }
      } catch (Exception e) {
        Debug.out(e);
      } finally {
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawLine()

         
          if ( x > 1 ){           
              int h1 = bounds.height - scale.getScaledValue(targetValue) - 2;
              int h2 = bounds.height - scale.getScaledValue(oldTargetValue) - 2;
              gcImage.setForeground( z <= 2 ? colors[z+1] : colors[3]);
              gcImage.drawLine(xDraw,h1,xDraw+1, h2);           
          }
         
          oldTargetValues[z] = all_values[z][position];
        }
       
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawLine()

        if(x > 6) {
          int h1 = bounds.height - scale.getScaledValue(average) - 2;
          int h2 = bounds.height - scale.getScaledValue(oldAverage) - 2;
          gcImage.setForeground(colors[COLOR_AVERAGE]);
          gcImage.setLineWidth(2);
          gcImage.drawLine(xDraw,h1,xDraw+1, h2);
        }
        oldAverage = average;
     
     
      if(nbValues > 0) {
View Full Code Here

Examples of org.freehep.graphics2d.VectorGraphics.drawLine()

    Font fn = new Font("Arial", Font.ITALIC, 16);
    g.setFont(fn);
    g.drawString("Single left click and drag to zoom, single right click to choose scatter options", 50, 20);
    // Bordi neri del grafico
    g.setColor(Color.BLACK);
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, UpperRightGraph.x, UpperRightGraph.y - 1); //UP
    g.drawLine(UpperLeftGraph.x - 1, UpperLeftGraph.y - 1, LowerLeftGraph.x - 1, LowerLeftGraph.y); //LEFT
    g.drawLine(LowerLeftGraph.x, LowerLeftGraph.y, LowerRightGraph.x, LowerRightGraph.y); //BOTTOM
    g.drawLine(LowerRightGraph.x, LowerRightGraph.y, UpperRightGraph.x, UpperRightGraph.y); //RIGHT

    // Testo variabile in x
View Full Code Here

Examples of org.geomajas.gwt.client.gfx.GraphicsContext.drawLine()

      } else if (geometry instanceof MultiLineString) {
        MultiLineString m = (MultiLineString) geometry;
        String gfxId = gfxGeometry.getId();
        GraphicsContext gc = context.getVectorContext();
        for (int i = 0; i < m.getNumGeometries(); i++) {
          gc.drawLine(group, gfxId + "." + i, (LineString) m.getGeometryN(i), shapeStyle);
        }
      } else if (geometry instanceof Polygon) {
        context.getVectorContext().drawPolygon(group, gfxGeometry.getId(), (Polygon) geometry, shapeStyle);
      } else if (geometry instanceof MultiPolygon) {
        MultiPolygon m = (MultiPolygon) geometry;
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.