| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |
package h; |
| 47 |
|
| 48 |
import smetana.core.CFunction; |
| 49 |
import smetana.core.HardcodedStruct; |
| 50 |
import smetana.core.UnsupportedArrayOfStruct; |
| 51 |
import smetana.core.UnsupportedStructAndPtr; |
| 52 |
import smetana.core.__ptr__; |
| 53 |
import smetana.core.__struct__; |
| 54 |
import smetana.core.amiga.StarStruct; |
| 55 |
|
| 56 |
public class ST_Agraphinfo_t extends UnsupportedStructAndPtr implements HardcodedStruct { |
| 57 |
|
| 58 |
public final ST_Agrec_s hdr = new ST_Agrec_s(this); |
| 59 |
|
| 60 |
public ST_layout_t drawing; |
| 61 |
public ST_textlabel_t label; |
| 62 |
public final ST_boxf bb = new ST_boxf(this); |
| 63 |
|
| 64 |
public final ST_pointf border[] = new ST_pointf[] { new ST_pointf(), new ST_pointf(), new ST_pointf(), |
| 65 |
new ST_pointf() }; |
| 66 |
|
| 67 |
public int has_labels; |
| 68 |
|
| 69 |
public int charset; |
| 70 |
public int rankdir; |
| 71 |
public double ht1, ht2; |
| 72 |
public int flags; |
| 73 |
|
| 74 |
public ST_GVC_s gvc; |
| 75 |
public CFunction cleanup; |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
public int n_cluster; |
| 89 |
|
| 90 |
public ST_Agraph_s.Array clust; |
| 91 |
public ST_Agraph_s dotroot; |
| 92 |
public ST_Agnode_s nlist; |
| 93 |
public ST_rank_t.Array2 rank; |
| 94 |
public ST_Agraph_s parent; |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
public final ST_nlist_t comp = new ST_nlist_t(this); |
| 100 |
|
| 101 |
public ST_Agnode_s minset, maxset; |
| 102 |
public int n_nodes; |
| 103 |
|
| 104 |
public int minrank, maxrank; |
| 105 |
|
| 106 |
|
| 107 |
public int has_flat_edges; |
| 108 |
|
| 109 |
|
| 110 |
public int showboxes; |
| 111 |
public int fontnames; |
| 112 |
|
| 113 |
public int nodesep, ranksep; |
| 114 |
public ST_Agnode_s ln, rn; |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
public ST_Agnode_s leader; |
| 119 |
public ST_Agnode_s.Array rankleader; |
| 120 |
public boolean expanded; |
| 121 |
public int installed; |
| 122 |
public int set_type; |
| 123 |
public int label_pos; |
| 124 |
public int exact_ranksep; |
| 125 |
|
| 126 |
private final StarStruct parent_; |
| 127 |
|
| 128 |
public ST_Agraphinfo_t() { |
| 129 |
this(null); |
| 130 |
} |
| 131 |
|
| 132 |
public ST_Agraphinfo_t(StarStruct parent) { |
| 133 |
this.parent_ = parent; |
| 134 |
} |
| 135 |
|
| 136 |
class ArrayOfFour extends UnsupportedArrayOfStruct { |
| 137 |
|
| 138 |
final private int pos; |
| 139 |
|
| 140 |
public ArrayOfFour(int pos) { |
| 141 |
this.pos = pos; |
| 142 |
} |
| 143 |
|
| 144 |
public ArrayOfFour plus(int delta) { |
| 145 |
return new ArrayOfFour(pos + delta); |
| 146 |
} |
| 147 |
|
| 148 |
@Override |
| 149 |
public __struct__ getStruct() { |
| 150 |
return border[pos]; |
| 151 |
} |
| 152 |
|
| 153 |
@Override |
| 154 |
public void setStruct(__struct__ value) { |
| 155 |
border[pos].copyDataFrom(value); |
| 156 |
} |
| 157 |
|
| 158 |
} |
| 159 |
|
| 160 |
@Override |
| 161 |
public __ptr__ castTo(Class dest) { |
| 162 |
if (dest == ST_Agrec_s.class) { |
| 163 |
return hdr; |
| 164 |
} |
| 165 |
return super.castTo(dest); |
| 166 |
} |
| 167 |
|
| 168 |
@Override |
| 169 |
public __ptr__ setPtr(String fieldName, __ptr__ newData) { |
| 170 |
if (fieldName.equals("gvc")) { |
| 171 |
this.gvc = (ST_GVC_s) newData; |
| 172 |
return gvc; |
| 173 |
} |
| 174 |
if (fieldName.equals("drawing")) { |
| 175 |
this.drawing = (ST_layout_t) newData; |
| 176 |
return drawing; |
| 177 |
} |
| 178 |
if (fieldName.equals("dotroot")) { |
| 179 |
this.dotroot = (ST_Agraph_s) newData; |
| 180 |
return dotroot; |
| 181 |
} |
| 182 |
if (fieldName.equals("parent")) { |
| 183 |
this.parent = (ST_Agraph_s) newData; |
| 184 |
return parent; |
| 185 |
} |
| 186 |
if (fieldName.equals("clust")) { |
| 187 |
this.clust = (ST_Agraph_s.Array) newData; |
| 188 |
return clust; |
| 189 |
} |
| 190 |
if (fieldName.equals("label")) { |
| 191 |
this.label = (ST_textlabel_t) newData; |
| 192 |
return label; |
| 193 |
} |
| 194 |
if (fieldName.equals("maxset")) { |
| 195 |
this.maxset = (ST_Agnode_s) newData; |
| 196 |
return maxset; |
| 197 |
} |
| 198 |
if (fieldName.equals("minset")) { |
| 199 |
this.minset = (ST_Agnode_s) newData; |
| 200 |
return minset; |
| 201 |
} |
| 202 |
if (fieldName.equals("nlist")) { |
| 203 |
this.nlist = (ST_Agnode_s) newData; |
| 204 |
return nlist; |
| 205 |
} |
| 206 |
if (fieldName.equals("leader")) { |
| 207 |
this.leader = (ST_Agnode_s) newData; |
| 208 |
return leader; |
| 209 |
} |
| 210 |
if (fieldName.equals("rankleader")) { |
| 211 |
this.rankleader = (ST_Agnode_s.Array) newData; |
| 212 |
return rankleader; |
| 213 |
} |
| 214 |
if (fieldName.equals("rank")) { |
| 215 |
this.rank = (ST_rank_t.Array2) newData; |
| 216 |
return rank; |
| 217 |
} |
| 218 |
if (fieldName.equals("ln")) { |
| 219 |
this.ln = (ST_Agnode_s) newData; |
| 220 |
return ln; |
| 221 |
} |
| 222 |
if (fieldName.equals("rn")) { |
| 223 |
this.rn = (ST_Agnode_s) newData; |
| 224 |
return rn; |
| 225 |
} |
| 226 |
return super.setPtr(fieldName, newData); |
| 227 |
} |
| 228 |
|
| 229 |
@Override |
| 230 |
public void setInt(String fieldName, int data) { |
| 231 |
if (fieldName.equals("charset")) { |
| 232 |
this.charset = data; |
| 233 |
return; |
| 234 |
} |
| 235 |
if (fieldName.equals("rankdir")) { |
| 236 |
this.rankdir = data; |
| 237 |
return; |
| 238 |
} |
| 239 |
if (fieldName.equals("nodesep")) { |
| 240 |
this.nodesep = data; |
| 241 |
return; |
| 242 |
} |
| 243 |
if (fieldName.equals("ranksep")) { |
| 244 |
this.ranksep = data; |
| 245 |
return; |
| 246 |
} |
| 247 |
if (fieldName.equals("showboxes")) { |
| 248 |
this.showboxes = data; |
| 249 |
return; |
| 250 |
} |
| 251 |
if (fieldName.equals("fontnames")) { |
| 252 |
this.fontnames = data; |
| 253 |
return; |
| 254 |
} |
| 255 |
if (fieldName.equals("flags")) { |
| 256 |
this.flags = data; |
| 257 |
return; |
| 258 |
} |
| 259 |
if (fieldName.equals("has_labels")) { |
| 260 |
this.has_labels = data; |
| 261 |
return; |
| 262 |
} |
| 263 |
if (fieldName.equals("n_cluster")) { |
| 264 |
this.n_cluster = data; |
| 265 |
return; |
| 266 |
} |
| 267 |
if (fieldName.equals("label_pos")) { |
| 268 |
this.label_pos = data; |
| 269 |
return; |
| 270 |
} |
| 271 |
if (fieldName.equals("n_nodes")) { |
| 272 |
this.n_nodes = data; |
| 273 |
return; |
| 274 |
} |
| 275 |
if (fieldName.equals("maxrank")) { |
| 276 |
this.maxrank = data; |
| 277 |
return; |
| 278 |
} |
| 279 |
if (fieldName.equals("minrank")) { |
| 280 |
this.minrank = data; |
| 281 |
return; |
| 282 |
} |
| 283 |
if (fieldName.equals("installed")) { |
| 284 |
this.installed = data; |
| 285 |
return; |
| 286 |
} |
| 287 |
super.setInt(fieldName, data); |
| 288 |
} |
| 289 |
|
| 290 |
|
| 291 |
@Override |
| 292 |
public void setDouble(String fieldName, double data) { |
| 293 |
if (fieldName.equals("ht1")) { |
| 294 |
this.ht1 = data; |
| 295 |
return; |
| 296 |
} |
| 297 |
if (fieldName.equals("ht2")) { |
| 298 |
this.ht2 = data; |
| 299 |
return; |
| 300 |
} |
| 301 |
super.setDouble(fieldName, data); |
| 302 |
} |
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
} |
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
|
| 419 |
|
| 420 |
|