Examples of drawLine()


Examples of DrawingTools.DrawingTool.DrawLine()

          if(!running || n.line_number>linesProcessed+look_ahead) {
            g2d.setColor(n.c);
          }
          break;
        default:
          tool.DrawLine(g2d, n.x1, n.y1, n.x2, n.y2);
          break;
        }
      }
    }
    g2d.dispose();
View Full Code Here

Examples of android.graphics.Canvas.drawLine()

                    case MotionEvent.ACTION_MOVE:
                        sx = ex;
                        sy = ey;
                        ex = lX;
                        ey = lY + lTitleBarHeight;
                        lCanvas.drawLine(sx, sy, ex, ey, p);
                        break;
                    case MotionEvent.ACTION_UP:
                    case MotionEvent.ACTION_CANCEL:
                        break;
                }
View Full Code Here

Examples of com.agifans.picedit.picture.Picture.drawLine()

                            picture.addPictureCode(x, y);
                            picture.putPixel(x, y);
                            break;
                        default:
                            picture.addPictureCode(x, y);
                            picture.drawLine(previousX, previousY, x, y);
                            break;
                    }
                } else if (editStatus.isPenActive()) {
                    int disp = 0;
                    int dX = 0;
View Full Code Here

Examples of com.sun.star.awt.XGraphics.drawLine()

                          aRect.X, aRect.Y, aRect.Width, aRect.Height );
          }

          // System.out.println( "Step3" );
          // xGraphics.drawRect( aRect.X - 1, aRect.Y - 1, aRect.Width + 2, aRect.Height + 2 );
          xGraphics.drawLine( aRect.X - 1, aRect.Y - 1,
                    aRect.X + aRect.Width + 1, aRect.Y - 1 );
          xGraphics.drawLine( aRect.X + aRect.Width + 1, aRect.Y - 1,
                    aRect.X + aRect.Width + 1, aRect.Y + aRect.Height + 1 );
          xGraphics.drawLine( aRect.X + aRect.Width + 1, aRect.Y + aRect.Height + 1,
                    aRect.X - 1, aRect.Y + aRect.Height + 1 );
View Full Code Here

Examples of com.tinyline.tiny2d.Tiny2D.drawLine()

        int wH = daWidth(tile) >> 1;
        int hH = daHeight(tile) >> 1;
        int wQ = wH >> 1;
        int hQ = hH >> 1;
        t2d.drawLine(daAnchorX + wQ, daAnchorY + hQ, daAnchorX + wH + wQ, daAnchorY + hH + hQ);
        t2d.drawLine(daAnchorX + wQ, daAnchorY + hH + hQ, daAnchorX + wH + wQ, daAnchorY + hQ);
    }

    void drawSquare(final Tile tile, boolean black) {
        Tiny2D t2d = getT2D(tile);
View Full Code Here

Examples of com.trolltech.qt.gui.QPainter.drawLine()

    QPen missingTileLinePen = new QPen(QColor.lightGray, 2, PenStyle.DashLine);
    painter.setPen(missingTileLinePen);
    i = 0;
    for(int col : colsToSkip){
      int realCol = col - i;
      painter.drawLine(tileSize*realCol-1, 0, tileSize*realCol-1, rows*tileSize-3);
      i++;
    }
    i=0;
    for(int row : rowsToSkip){
      int realRow = row - i;
View Full Code Here

Examples of gov.nasa.arc.mct.fastplot.bridge.PlotConstants.PlotLineDrawingFlags.drawLine()

  @Override
  public boolean isDirty() {
    PlotLineDrawingFlags selected = getSelectedDrawingFlags();
    if (cachedFlags == null || selected == null) return false;
    return cachedFlags.drawLine()    != selected.drawLine()    ||
           cachedFlags.drawMarkers() != selected.drawMarkers() ||
           cachedConnectionType      != getSelectedConnectionType();
  }

  @Override
View Full Code Here

Examples of gov.nasa.arc.mct.plot.settings.PlotConstants.PlotLineDrawingFlags.drawLine()


  @Override
  public boolean isDirty() {
    PlotLineDrawingFlags selected = getSelectedDrawingFlags();
    return cachedFlags.drawLine()    != selected.drawLine()    ||
           cachedFlags.drawMarkers() != selected.drawMarkers() ||
           cachedConnectionType      != getSelectedConnectionType();
  }

  @Override
View Full Code Here

Examples of java.awt.Graphics.drawLine()

    if (outputs == 2) { // draw select wire
      if (painter.getShowState()) {
        g.setColor(painter.getPort(outputs).getColor());
      }
      Location pt = painter.getInstance().getPortLocation(outputs);
      g.drawLine(pt.getX(), pt.getY(), pt.getX() + 2 * dx, pt.getY() + 2 * dy);
    }
    if (enable) {
      Location en = painter.getInstance().getPortLocation(outputs + 1);
      int len = outputs == 2 ? 6 : 4;
      if (painter.getShowState()) {
View Full Code Here

Examples of java.awt.Graphics.drawLine()

      Location en = painter.getInstance().getPortLocation(outputs + 1);
      int len = outputs == 2 ? 6 : 4;
      if (painter.getShowState()) {
        g.setColor(painter.getPort(outputs + 1).getColor());
      }
      g.drawLine(en.getX(), en.getY(), en.getX() + len * dx, en.getY() + len * dy);
    }
    GraphicsUtil.switchToWidth(g, 1);
   
    // draw a circle indicating where the select input is located
    Multiplexer.drawSelectCircle(g, bds, painter.getInstance().getPortLocation(outputs));
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.