Examples of HueEntry


Examples of net.sourceforge.dsnk.model.HueEntry

  public void paint(Graphics g) {
    super.paint(g);
   
    if (group != null) {
      for (int i = 0; i < group.getEntries().length; i++) {
        HueEntry entry = group.getEntries()[i];
        for (int k = 0; k < entry.getColorTable().length; k++) {
          g.setColor(entry.getColorTable()[k]);
          g.fillRect((k * 20) + 10, (i * 20) + 30, 20, 20);
        }
      }
    }
  }
View Full Code Here

Examples of net.sourceforge.dsnk.model.HueEntry

    super(text, icon, desc, mnemonic, dataProvider);
  }

  @Override
  public void actionPerformed(ActionEvent e) {
    HueEntry hueEntry = ColorPickerDialog.showDialog(parentWindow,
        dataProvider.getHueEntries());

    Object obj = paperdollList.getSelectedValue();
    if (obj != null) {
      AbstractGump gump = (AbstractGump) obj;
View Full Code Here

Examples of net.sourceforge.dsnk.model.HueEntry

    short tableEnd = getShortValue(hueEntryData, 66);
   
    // Read Name
    String name = getString(hueEntryData, 68, 20);
   
    HueEntry hueEntry = new HueEntry();
    hueEntry.setColorTable(colorTable);
    hueEntry.setTableStart(tableStart);
    hueEntry.setTableEnd(tableEnd);
    hueEntry.setName(name);
   
    return hueEntry;
  }
View Full Code Here

Examples of net.sourceforge.dsnk.model.HueEntry

    // build rectangle matrix
    rects = new HueRectangle[5][20][10];
    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
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.