Examples of drawLine()


Examples of java.awt.Graphics2D.drawLine()

                //Rectangle oldBounds = getBounds();

                g2d.setColor(gridColor);
                // vertical lines
                for (int x = 1; x < visibleDays + 1; x++) {
                    g2d.drawLine(x * dayWidth, 0, x * dayWidth, getHoursPerDay() * hourWidth);
                }

                // horizontal lines
                int xEnd = visibleDays * dayWidth;
                for (int y = 1; y < getHoursPerDay() + 1; y++) {
View Full Code Here

Examples of java.awt.Graphics2D.drawLine()

                }

                // horizontal lines
                int xEnd = visibleDays * dayWidth;
                for (int y = 1; y < getHoursPerDay() + 1; y++) {
                    g2d.drawLine(0, y * hourWidth, xEnd, y * hourWidth);
                }

                RoundBox selectedBox = null;
                DateTime startDate = settings.getStartDate();
                // paint events
View Full Code Here

Examples of java.awt.Graphics2D.drawLine()

        }
        if (getModel().isRollover()) {
          g2.setColor(Color.MAGENTA);
        }
        int delta = 6;
        g2.drawLine(delta, delta, getWidth() - delta - 1, getHeight() - delta - 1);
        g2.drawLine(getWidth() - delta - 1, delta, delta, getHeight() - delta - 1);
        g2.dispose();
      }
    }
  }
View Full Code Here

Examples of java.awt.Graphics2D.drawLine()

        if (getModel().isRollover()) {
          g2.setColor(Color.MAGENTA);
        }
        int delta = 6;
        g2.drawLine(delta, delta, getWidth() - delta - 1, getHeight() - delta - 1);
        g2.drawLine(getWidth() - delta - 1, delta, delta, getHeight() - delta - 1);
        g2.dispose();
      }
    }
  }
View Full Code Here

Examples of java.awt.Graphics2D.drawLine()

  {
    if (gfx instanceof Graphics2D)
    {
      Graphics2D graphics2D = (Graphics2D) gfx;
      graphics2D.setStroke(value);
      graphics2D.drawLine(box.x, box.height / 2 + box.y, box.x + box.width, box.height / 2 + box.y);
    }
  }

  /* (non-Javadoc)
   * @see java.beans.PropertyEditor#getJavaInitializationString()
View Full Code Here

Examples of java.awt.Graphics2D.drawLine()

        Color origColor = g2d.getColor();
        Shape origClip = g2d.getClip();

        g2d.setStroke(sampleValue);

        g2d.drawLine(getInsets().left + 1, (getHeight() / 2) + 1, getWidth() - (getInsets().right + 1), (getHeight() / 2) + 1);

        g2d.setClip(origClip);
        g2d.setStroke(origStroke);
        g2d.setColor(origColor);
      }
View Full Code Here

Examples of java.awt.Graphics2D.drawLine()

      g2d.translate(x, y);

      g2d.setColor(Color.BLACK);
      g2d.setStroke(basicStroke);

      g2d.drawLine(0, getIconHeight() / 2, getIconWidth(), getIconHeight() / 2);
      g2d.setColor(origColor);

      g2d.translate(-x, -y);
      g2d.setStroke(origStroke);
      g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, hint);
View Full Code Here

Examples of javax.microedition.lcdui.Graphics.drawLine()

                {
                    status = ResourceManager.getResource( "rowSetListView.noData" );
                }
                y = height - fontHeight - 2;
                g.setColor( color );
                g.drawLine( 1, y, getWidth() - 2, y );
                g.drawString(
                        status != null ? status : "",
                        1,
                        height - fontHeight + font.getBaselinePosition(),
                        Graphics.LEFT | Graphics.BASELINE
View Full Code Here

Examples of javax.swing.plaf.synth.SynthGraphicsUtils.drawLine()

            g.setColor(table.getGridColor());
            row = Math.abs(top / rh);
            int y = top + row * rh + rh - 1;

            while (y < height) {
                synthG.drawLine(context, "Table.grid", g, 0, y, width, y);
                y += rh;
            }
        }

        // Paint the vertical grid lines
View Full Code Here

Examples of main.ch.morrolan.gibb.snake.Painter.drawLine()

        Painter painter;

        g = gMock();
        painter = painter1(g);

        painter.drawLine(0, 0, 1, 1);
        verify(g).drawLine(0, 0, 10, 10);

        painter.drawLine(3, 5, 2, 3);
        verify(g).drawLine(30, 50, 20, 30);
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.