Package java.awt

Examples of java.awt.Graphics.drawLine()


                                if (j == numFeatures - 1)
                                {
                                    graphics.drawLine(x1 + blipWidth/2, y + blipHeight,
                                                      x2 + blipWidth/2, (height - y) - blipHeight);
                                    if (thick)
                                        graphics.drawLine((x1 + blipWidth/2)+1, y + blipHeight,
                                                          (x2 + blipWidth/2)+1, (height - y) - blipHeight);
                                }
                            }
                        }
                    }
View Full Code Here


                    index += ndim;

          graphics.setColor(Color.black);
          y = (blipHeight * j) + blipHeight;
          graphics.drawLine(0, y, width, y);
          graphics.drawLine(0, height - y, width, height - y);
        }
      }
    }

View Full Code Here

                    index += ndim;

          graphics.setColor(Color.black);
          y = (blipHeight * j) + blipHeight;
          graphics.drawLine(0, y, width, y);
          graphics.drawLine(0, height - y, width, height - y);
        }
      }
    }

    if (dragRect != null)
View Full Code Here

            if (cVI.selected)
            {
              // draw connection
              if (multi)
              {
                graphics.drawLine(x1 + blipWidth / 2, y
                    + blipHeight, x2 + blipWidth / 2,
                    (height - y) - blipHeight);
                if (thick)
                  graphics.drawLine((x1 + blipWidth / 2) + 1,
                      y + blipHeight,
View Full Code Here

              {
                graphics.drawLine(x1 + blipWidth / 2, y
                    + blipHeight, x2 + blipWidth / 2,
                    (height - y) - blipHeight);
                if (thick)
                  graphics.drawLine((x1 + blipWidth / 2) + 1,
                      y + blipHeight,
                      (x2 + blipWidth / 2) + 1,
                      (height - y) - blipHeight);
              }
              else
View Full Code Here

              }
              else
              {
                if (j == numFeatures - 1)
                {
                  graphics.drawLine(x1 + blipWidth / 2, y
                      + blipHeight, x2 + blipWidth / 2,
                      (height - y) - blipHeight);
                  if (thick)
                    graphics.drawLine(
                        (x1 + blipWidth / 2) + 1, y
View Full Code Here

                {
                  graphics.drawLine(x1 + blipWidth / 2, y
                      + blipHeight, x2 + blipWidth / 2,
                      (height - y) - blipHeight);
                  if (thick)
                    graphics.drawLine(
                        (x1 + blipWidth / 2) + 1, y
                            + blipHeight,
                        (x2 + blipWidth / 2) + 1,
                        (height - y) - blipHeight);
                }
View Full Code Here

          index += ndim;

          graphics.setColor(Color.black);
          y = (blipHeight * j) + blipHeight;
          graphics.drawLine(0, y, width, y);
          graphics.drawLine(0, height - y, width, height - y);
        }
      }
    }

View Full Code Here

          index += ndim;

          graphics.setColor(Color.black);
          y = (blipHeight * j) + blipHeight;
          graphics.drawLine(0, y, width, y);
          graphics.drawLine(0, height - y, width, height - y);
        }
      }
    }

    if (dragRect != null)
View Full Code Here

    // fill it manually
    for (short i = 0; i < s; i++) {
      nextLine: for (short j = 0; j <= s2; j++) {
        if (img.getRValue(j, i) == 255) {
          g.drawLine(j, i, s - j - 1, i);
          continue nextLine;
        }
      }
    }
    int cnt = 0;
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.