apwfreetypelib

Check-in [c443e0dd64]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fixes and new code.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c443e0dd6465c7596c9014e05c216eb70f0998bf
User & Date: arnulf 2015-01-25 18:58:22
Context
2015-01-25
21:10
fixes, new code and refactoring. check-in: 064b26a0cc user: arnulf tags: trunk
18:58
fixes and new code. check-in: c443e0dd64 user: arnulf tags: trunk
18:02
fixes new code and refactoring. check-in: 5f647f2006 user: arnulf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to aftraster/FTGrayOutlineFuncsClass.java.

140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
...
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
    boolean useYcells = true;
    boolean isYcell = true;

    if (x > worker.getCount_ex()) {
      x = worker.getCount_ex();
    }
    for(int j = 0; j < worker.getYcount(); j++) {
      int a = worker.getYcell(j) == null ? -1 : worker.getYcell(j).area;
      int c = worker.getYcell(j) == null ? -1 : worker.getYcell(j).cover;
      StringBuffer str = new StringBuffer("");
      str.append(String.format("ycells j: %2d, idx: %2d, x: %4d, a: %6x, c: %6x", j,
          worker.getYcell(j) == null ? -1 : worker.getYcell(j).self_idx,
          worker.getYcell(j) == null ? -1 : worker.getYcell(j).x,
          a & 0xFFFFFF, c & 0xFFFFFF));
      cell = worker.getYcell(j);
      while( cell != null) {
        cell = cell.next;
        if (cell != null) {
          str.append(String.format("\n              idx: %2d, x: %4d, a: %6x, c: %6x",
              cell.self_idx, cell.x, cell.area & 0xFFFFFF, cell.cover & 0xFFFFFF));
        }
      }
Debug(0, DebugTag.DBG_RENDER, TAG, str.toString());
    }

    pcellIdx = worker.getEy();
    cellIdx = -1;
    for (;;) {
      if (cellIdx == -1) {
        cell = worker.getYcell(pcellIdx);
      } else {
        cell = cell.next;
      }
      if (cell == null || cell.x > x) {
        break;
      }
      if (cell.x == x) {
        return cell;
      }
      if (!useYcells) {
        isYcell = false;
      }
      useYcells = false;
      cellIdx = cell.self_idx;
    }
    if (worker.getNum_cells() >= worker.getMax_cells()) {
//FIXME!!        ft_longjmp( worker.jump_buffer, 1 );
      Log.e(TAG, "out of worker.cells: " + worker.getNum_cells() + "!" + worker.getMax_cells());
    }
    cell = worker.getCell(worker.getNum_cells());
    worker.setNum_cells(worker.getNum_cells() + 1);
    cell.self_idx = worker.getNum_cells() - 1;
    cell.x = x;
    cell.area = 0;
    cell.cover = 0;
    if (useYcells) {
      cell.next = worker.getYcell(pcellIdx);
//System.out.println(String.format("pcellIdx: %d",  pcellIdx));
      worker.setYcell(pcellIdx, cell);
    } else {
      if (isYcell) {
        cell.next = worker.getYcell(pcellIdx).next;
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("cellIdx. %d pcellIdx: %d",  cellIdx, pcellIdx));
        worker.getYcell(pcellIdx).next = cell;
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("isYcell: cell idx: %d cell next idx: %d ", cell.self_idx, cell.next == null ? -1 : cell.next.self_idx));
      } else {
        cell.next = worker.getCell(cellIdx).next;
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("cellIdx. %d pcellIdx: %d",  cellIdx, pcellIdx));
        worker.getCell(cellIdx).next = cell;
      }
    }
    return cell;
  }

  /* =====================================================================
   *    gray_record_cell
................................................................................
   */
  public void gray_record_cell(grayTWorkerRec worker) {
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("gray_record_cell: ras.invalid: %b, ras.area: %x, ras.cover: %x\n", worker.isInvalid(), worker.getArea(), worker.getCover()));

    if (!worker.isInvalid() && (worker.getArea() | worker.getCover()) != 0) {
      TCellRec cell = gray_find_cell(worker);

      cell.area  += worker.getArea();
      cell.cover += worker.getCover();
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("gray_record_cell2: cell.area: %x, cell.cover: %x worker.area: %x, worker.cover: %x\n", cell.area, cell.cover, worker.getArea(), worker.getCover()));
    }
  }

  /* =====================================================================
   *    gray_set_cell
   *
   * Move the cell pointer to a new position.  We set the `invalid'







|
|


|
|



|


|











|

|


|






|







|
|
|
|

|




|

|
|

|

|







 







|
|
|







140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
...
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
    boolean useYcells = true;
    boolean isYcell = true;

    if (x > worker.getCount_ex()) {
      x = worker.getCount_ex();
    }
    for(int j = 0; j < worker.getYcount(); j++) {
      int a = worker.getYcell(j) == null ? -1 : worker.getYcell(j).getArea();
      int c = worker.getYcell(j) == null ? -1 : worker.getYcell(j).getCover();
      StringBuffer str = new StringBuffer("");
      str.append(String.format("ycells j: %2d, idx: %2d, x: %4d, a: %6x, c: %6x", j,
          worker.getYcell(j) == null ? -1 : worker.getYcell(j).getSelf_idx(),
          worker.getYcell(j) == null ? -1 : worker.getYcell(j).getX(),
          a & 0xFFFFFF, c & 0xFFFFFF));
      cell = worker.getYcell(j);
      while( cell != null) {
        cell = cell.getNext();
        if (cell != null) {
          str.append(String.format("\n              idx: %2d, x: %4d, a: %6x, c: %6x",
              cell.getSelf_idx(), cell.getX(), cell.getArea() & 0xFFFFFF, cell.getCover() & 0xFFFFFF));
        }
      }
Debug(0, DebugTag.DBG_RENDER, TAG, str.toString());
    }

    pcellIdx = worker.getEy();
    cellIdx = -1;
    for (;;) {
      if (cellIdx == -1) {
        cell = worker.getYcell(pcellIdx);
      } else {
        cell = cell.getNext();
      }
      if (cell == null || cell.getX() > x) {
        break;
      }
      if (cell.getX() == x) {
        return cell;
      }
      if (!useYcells) {
        isYcell = false;
      }
      useYcells = false;
      cellIdx = cell.getSelf_idx();
    }
    if (worker.getNum_cells() >= worker.getMax_cells()) {
//FIXME!!        ft_longjmp( worker.jump_buffer, 1 );
      Log.e(TAG, "out of worker.cells: " + worker.getNum_cells() + "!" + worker.getMax_cells());
    }
    cell = worker.getCell(worker.getNum_cells());
    worker.setNum_cells(worker.getNum_cells() + 1);
    cell.setSelf_idx(worker.getNum_cells() - 1);
    cell.setX(x);
    cell.setArea(0);
    cell.setCover(0);
    if (useYcells) {
      cell.setNext(worker.getYcell(pcellIdx));
//System.out.println(String.format("pcellIdx: %d",  pcellIdx));
      worker.setYcell(pcellIdx, cell);
    } else {
      if (isYcell) {
        cell.setNext(worker.getYcell(pcellIdx).getNext());
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("cellIdx. %d pcellIdx: %d",  cellIdx, pcellIdx));
        worker.getYcell(pcellIdx).setNext(cell);
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("isYcell: cell idx: %d cell next idx: %d ", cell.getSelf_idx(), cell.getNext() == null ? -1 : cell.getNext().getSelf_idx()));
      } else {
        cell.setNext(worker.getCell(cellIdx).getNext());
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("cellIdx. %d pcellIdx: %d",  cellIdx, pcellIdx));
        worker.getCell(cellIdx).setNext(cell);
      }
    }
    return cell;
  }

  /* =====================================================================
   *    gray_record_cell
................................................................................
   */
  public void gray_record_cell(grayTWorkerRec worker) {
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("gray_record_cell: ras.invalid: %b, ras.area: %x, ras.cover: %x\n", worker.isInvalid(), worker.getArea(), worker.getCover()));

    if (!worker.isInvalid() && (worker.getArea() | worker.getCover()) != 0) {
      TCellRec cell = gray_find_cell(worker);

      cell.setArea(cell.getArea() + worker.getArea());
      cell.setCover(cell.getCover() + worker.getCover());
Debug(0, DebugTag.DBG_RENDER, TAG, String.format("gray_record_cell2: cell.area: %x, cell.cover: %x worker.area: %x, worker.cover: %x\n", cell.getArea(), cell.getCover(), worker.getArea(), worker.getCover()));
    }
  }

  /* =====================================================================
   *    gray_set_cell
   *
   * Move the cell pointer to a new position.  We set the `invalid'

Changes to aftraster/FTSmoothRendererClass.java.

631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
    worker.setNum_gray_spans(0);
    FTTrace.Trace(7, TAG, "gray_sweep: start "+worker.getYcount());
    for (yindex = 0; yindex < worker.getYcount(); yindex++) {
      TCellRec cell = worker.getYcell(yindex);
      int cover = 0;
      int x = 0;

      for ( ; cell != null; cell = cell.next) {
        int area;

//System.out.println(String.format("cell->next: %d", cell.next == null ? -1 : cell.next.self_idx));
        Debug(0, DebugTag.DBG_RENDER, TAG, String.format("gray_sweep 1: cell.x: %d x: %d,  yindex: %d, cover: %x", cell.x, x, yindex, cover));
        if (cell.x > x && cover != 0) {
          gray_hline(worker, x, yindex, cover * (RasterUtil.ONE_PIXEL() * 2), cell.x - x );
        }
        cover += cell.cover;
        area = cover * (RasterUtil.ONE_PIXEL() * 2) - cell.area;
        if (area != 0 && cell.x >= 0) {
          gray_hline(worker, cell.x, yindex, area, 1 );
        }
        x = cell.x + 1;
      }
      if (cover != 0) {
        gray_hline(worker, x, yindex, cover * (RasterUtil.ONE_PIXEL() * 2), worker.getCount_ex() - x);
      }
    }
    if (worker.getNum_gray_spans() > 0) {
      worker.renderSpan(worker.getSpan_y(), worker.getNum_gray_spans(),







|



|
|
|

|
|
|
|

|







631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
    worker.setNum_gray_spans(0);
    FTTrace.Trace(7, TAG, "gray_sweep: start "+worker.getYcount());
    for (yindex = 0; yindex < worker.getYcount(); yindex++) {
      TCellRec cell = worker.getYcell(yindex);
      int cover = 0;
      int x = 0;

      for ( ; cell != null; cell = cell.getNext()) {
        int area;

//System.out.println(String.format("cell->next: %d", cell.next == null ? -1 : cell.next.self_idx));
        Debug(0, DebugTag.DBG_RENDER, TAG, String.format("gray_sweep 1: cell.x: %d x: %d,  yindex: %d, cover: %x", cell.getX(), x, yindex, cover));
        if (cell.getX() > x && cover != 0) {
          gray_hline(worker, x, yindex, cover * (RasterUtil.ONE_PIXEL() * 2), cell.getX() - x );
        }
        cover += cell.getCover();
        area = cover * (RasterUtil.ONE_PIXEL() * 2) - cell.getArea();
        if (area != 0 && cell.getX() >= 0) {
          gray_hline(worker, cell.getX(), yindex, area, 1 );
        }
        x = cell.getX() + 1;
      }
      if (cover != 0) {
        gray_hline(worker, x, yindex, cover * (RasterUtil.ONE_PIXEL() * 2), worker.getCount_ex() - x);
      }
    }
    if (worker.getNum_gray_spans() > 0) {
      worker.renderSpan(worker.getSpan_y(), worker.getNum_gray_spans(),

Changes to aftraster/TCellRec.java.

17
18
19
20
21
22
23
24
25
26
27

28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56





57
58
59



60

























































  /*    TCell                                                          */
  /*                                                                       */
  /* ===================================================================== */

import org.apwtcl.apwfreetypelib.aftutil.FTDebug;

public class TCellRec extends FTDebug {
    private static int oid = 0;

    private int id;
    private static String TAG = "TCell";

    public static TCellRec[] tcells = new TCellRec[2048];
    public static int tcells_idx = 0;

    public int x;     /* same with grayTWorker.ex    */
    public int cover; /* same with grayTWorker.cover */
    public int area;
    public int nextIdx;
    public TCellRec next;
    public int self_idx;

    /* ==================== TCell ================================== */
    public TCellRec() {
      oid++;
      id = oid;
    }
    
    /* ==================== mySelf ================================== */
    public String mySelf() {
      return TAG+"!"+id+"!";
    }
        
    /* ==================== toString ===================================== */
    public String toString() {
      return mySelf()+"!";
    }

    /* ==================== toDebugString ===================================== */
    public String toDebugString() {
      StringBuffer str = new StringBuffer(mySelf()+"\n");





      return str.toString();
    }
 



}
































































|

|
|
>
|
|

|
|
|
|
|
|

|
|
|
|
|

|
|



|
|



|
|
|
>
>
>
>
>
|
|
|
>
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
  /*    TCell                                                          */
  /*                                                                       */
  /* ===================================================================== */

import org.apwtcl.apwfreetypelib.aftutil.FTDebug;

public class TCellRec extends FTDebug {
  private static int oid = 0;

  private int id;
  private static String TAG = "TCellRec";

  public static TCellRec[] tcells = new TCellRec[2048];
  public static int tcells_idx = 0;

  private int x;     /* same with grayTWorker.ex    */
  private int cover; /* same with grayTWorker.cover */
  private int area;
  private int next_idx;
  private TCellRec next;
  private int self_idx;

  /* ==================== TCellRec ================================== */
  public TCellRec() {
    oid++;
    id = oid;
  }
    
  /* ==================== mySelf ================================== */
  public String mySelf() {
      return TAG+"!"+id+"!";
    }
        
  /* ==================== toString ===================================== */
  public String toString() {
      return mySelf()+"!";
    }

  /* ==================== toDebugString ===================================== */
  public String toDebugString() {
    StringBuffer str = new StringBuffer(mySelf()+"\n");
    str.append("...x: "+x+'\n');
    str.append("...cover: "+cover+'\n');
    str.append("...area: "+area+'\n');
    str.append("...next_idx: "+next_idx+'\n');
    str.append("...self_idx: "+self_idx+'\n');
    return str.toString();
  }

  /* ==================== getX ================================== */
  public int getX() {
    return x;
  }

  /* ==================== setX ================================== */
  public void setX(int x) {
    this.x = x;
  }

  /* ==================== getCover ================================== */
  public int getCover() {
    return cover;
  }

  /* ==================== setCover ================================== */
  public void setCover(int cover) {
    this.cover = cover;
  }

  /* ==================== getArea ================================== */
  public int getArea() {
    return area;
  }

  /* ==================== setArea ================================== */
  public void setArea(int area) {
    this.area = area;
  }

  /* ==================== getNext_idx ================================== */
  public int getNext_idx() {
    return next_idx;
  }

  /* ==================== setNext_idx ================================== */
  public void setNext_idx(int next_idx) {
    this.next_idx = next_idx;
  }

  /* ==================== getNext ================================== */
  public TCellRec getNext() {
    return next;
  }

  /* ==================== setNext ================================== */
  public void setNext(TCellRec next) {
    this.next = next;
  }

  /* ==================== getSelf_idx ================================== */
  public int getSelf_idx() {
    return self_idx;
  }

  /* ==================== setSelf_idx ================================== */
  public void setSelf_idx(int self_idx) {
    this.self_idx = self_idx;
  }

}

Changes to aftraster/TPointRec.java.

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

  private int id;
  private static String TAG = "TPointRec";

  private int x = 0;
  private int y = 0;

  /* ==================== ftdemo.TPoint ================================== */
  public TPointRec() {
    oid++;
    id = oid;
  }
    
  /* ==================== mySelf ================================== */
  public String mySelf() {







|







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

  private int id;
  private static String TAG = "TPointRec";

  private int x = 0;
  private int y = 0;

  /* ==================== TPointRec ================================== */
  public TPointRec() {
    oid++;
    id = oid;
  }
    
  /* ==================== mySelf ================================== */
  public String mySelf() {

Changes to aftraster/TProfileRec.java.

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56








57
58
59



60













































































 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 * =====================================================================
 */

import org.apwtcl.apwfreetypelib.aftutil.FTDebug;

public class TProfileRec extends FTDebug {
    private static int oid = 0;

    private int id;
    private static String TAG = "ftdemo.TProfile";

    public Long X = 0L;           /* current coordinate during sweep          */
    public int link = -1;         /* link to next profile (various purposes)  */
    public int offset = 0;        /* start of profile's data in render pool   */
    public int flags = 0;         /* Bit 0-2: drop-out mode                   */
                                  /* Bit 3: profile orientation (up/down)     */
                                  /* Bit 4: is top profile?                   */
                                  /* Bit 5: is bottom profile?                */
    public long height = 0L;      /* profile's height in scanlines            */
    public long start = 0L;       /* profile's starting scanline              */
    public Integer countL = 0;    /* number of lines to step before this      */
                                  /* profile becomes drawable                 */
    public int next = -1;         /* next profile in same contour, used       */
                                  /* during drop-out control                  */

    /* ==================== ftdemo.TProfile ================================== */
    public TProfileRec() {
      oid++;
      id = oid;
    }
    
    /* ==================== mySelf ================================== */
    public String mySelf() {
      return TAG+"!"+id+"!";
    }
        
    /* ==================== toString ===================================== */
    public String toString() {
      return mySelf()+"!";
    }

    /* ==================== toDebugString ===================================== */
    public String toDebugString() {
      StringBuffer str = new StringBuffer(mySelf()+"\n");








      return str.toString();
    }
 



}




















































































|

|
|

|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|



|
|



|
|
|
>
>
>
>
>
>
>
>
|
|
|
>
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 * =====================================================================
 */

import org.apwtcl.apwfreetypelib.aftutil.FTDebug;

public class TProfileRec extends FTDebug {
  private static int oid = 0;

  private int id;
  private static String TAG = "TProfileRec";

  private int x = 0;           /* current coordinate during sweep          */
  private int link = -1;       /* link to next profile (various purposes)  */
  private int offset = 0;      /* start of profile's data in render pool   */
  private int flags = 0;       /* Bit 0-2: drop-out mode                   */
                               /* Bit 3: profile orientation (up/down)     */
                               /* Bit 4: is top profile?                   */
                               /* Bit 5: is bottom profile?                */
  private int height = 0;      /* profile's height in scanlines            */
  private int start = 0;       /* profile's starting scanline              */
  private int count_lines = 0; /* number of lines to step before this      */
                               /* profile becomes drawable                 */
  private int next = -1;       /* next profile in same contour, used       */
                               /* during drop-out control                  */

  /* ==================== TProfileRec ================================== */
  public TProfileRec() {
    oid++;
    id = oid;
  }
    
  /* ==================== mySelf ================================== */
  public String mySelf() {
      return TAG+"!"+id+"!";
    }
        
  /* ==================== toString ===================================== */
  public String toString() {
      return mySelf()+"!";
    }

  /* ==================== toDebugString ===================================== */
  public String toDebugString() {
    StringBuffer str = new StringBuffer(mySelf()+"\n");
    str.append("...x: "+x+'\n');
    str.append("...link: "+link+'\n');
    str.append("...offset: "+offset+'\n');
    str.append("...flags: "+flags+'\n');
    str.append("...height: "+height+'\n');
    str.append("...start: "+start+'\n');
    str.append("...count_lines: "+count_lines+'\n');
    str.append("...next: "+next+'\n');
    return str.toString();
  }

  /* ==================== getX ================================== */
  public int getX() {
    return x;
  }

  /* ==================== setX ================================== */
  public void setX(int x) {
    this.x = x;
  }

  /* ==================== getLink ================================== */
  public int getLink() {
    return link;
  }

  /* ==================== setLink ================================== */
  public void setLink(int link) {
    this.link = link;
  }

  /* ==================== getOffset ================================== */
  public int getOffset() {
    return offset;
  }

  /* ==================== setOffset ================================== */
  public void setOffset(int offset) {
    this.offset = offset;
  }

  /* ==================== getFlags ================================== */
  public int getFlags() {
    return flags;
  }

  /* ==================== setFlags ================================== */
  public void setFlags(int flags) {
    this.flags = flags;
  }

  /* ==================== getHeight ================================== */
  public int getHeight() {
    return height;
  }

  /* ==================== setHeight ================================== */
  public void setHeight(int height) {
    this.height = height;
  }

  /* ==================== getStart ================================== */
  public int getStart() {
    return start;
  }

  /* ==================== setStart ================================== */
  public void setStart(int start) {
    this.start = start;
  }

  /* ==================== getCount_lines ================================== */
  public int getCount_lines() {
    return count_lines;
  }

  /* ==================== setCount_lines ================================== */
  public void setCount_lines(int count_lines) {
    this.count_lines = count_lines;
  }

  /* ==================== getNext ================================== */
  public int getNext() {
    return next;
  }

  /* ==================== setNext ================================== */
  public void setNext(int next) {
    this.next = next;
  }

}