Examples of HueRectangle


Examples of net.sourceforge.dsnk.model.HueRectangle

    for (int d = 0; d < 5; d++) {
      for (int c = 0; c < 20; c++) {
        for (int r = 0; r < 10; r++) {
          HueEntry entry = hueEntries.elementAt((r * 100) + (c * 5)
              + d);
          HueRectangle rect = new HueRectangle(c * 15, r * 15, 15,
              15, entry);
          rects[d][c][r] = rect;
        }
      }
    }
View Full Code Here

Examples of net.sourceforge.dsnk.model.HueRectangle

  protected void paintComponent(Graphics g) {
    super.paintComponent(g);
   
    for (int c = 0; c < 20; c++) {
      for (int r = 0; r < 10; r++) {
        HueRectangle rect = rects[c][r];
        Color color = rect.getHueEntry().getColorTable()[31];
        g.setColor(color);
        g.fillRect(rect.x, rect.y, rect.width, rect.height);
      }
    }
   
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.