Package kakuro.server

Examples of kakuro.server.ISkeletonTable


   * @param diff nehézségi szint, értékei: {@link ITable#DIFFICULTY_EASY},{@link ITable#DIFFICULTY_MEDIUM},
   * {@link ITable#DIFFICULTY_HARD}
   * @return Üres skeleton, bal és felső sor fekete
   * */
  protected ISkeletonTable getNewSkeleton(final int i, final int j, final int diff) {
        return new ISkeletonTable() {
            public int getColumnCount() { return i; }
            public int getRowCount() { return j; }
            public int getDifficulty() { return diff; }
            public int getType(kakuro.table.Position p) {
          return ((p.x==0 || p.y==0)?ISkeletonTable.CELL_BLACK:ISkeletonTable.CELL_WHITE);
View Full Code Here


   *
   * @param table kapott kitöltött tábla
   * */
  void showValues(ITable table) throws TableException {
    _lastTable = table;
    ISkeletonTable skeleton = getSkeleton();
    if (table.getColumnCount()!=skeleton.getColumnCount() || table.getRowCount()!=skeleton.getRowCount())
      throw new IndexOutOfBoundsException("Table size mismatch");
    showValues = true;
    for (int j=0; j<_y; j++) {
      for (int i=0; i<_x; i++) {
        Position p = new Position(i, j);
View Full Code Here

    });
    JPanel content = new JPanel();
    content.setLayout(new BoxLayout(content, BoxLayout.LINE_AXIS));
    String[] data = new String[_list.size()];
    for (int i=0; i<_list.size(); i++) {
        ISkeletonTable s = _list.get(i);
        String[] difficulties = {"K&ouml;nny&#369;", "K&ouml;zepes", "Neh&eacute;z"};
        data[i] = "<html>"+(i+1)+". "+difficulties[s.getDifficulty()]+"</html>";
    }
    dataList = new JList(data);
    dataList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    dataList.addListSelectionListener(new ListSelectionListener() {
      int _previous = -1;
View Full Code Here

TOP

Related Classes of kakuro.server.ISkeletonTable

Copyright © 2018 www.massapicom. 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.