33 |
CellView view; |
CellView view; |
34 |
ViewContext context; |
ViewContext context; |
35 |
|
|
36 |
static Dimension dim = new Dimension(); |
float w = -1, h = -1; |
37 |
|
|
38 |
|
static float[] size = new float[2]; |
39 |
|
|
40 |
public CellHBox(Cell cell, CellView view, ViewContext context) { |
public CellHBox(Cell cell, CellView view, ViewContext context) { |
41 |
this.cell = cell; |
this.cell = cell; |
42 |
this.view = view; |
this.view = view; |
43 |
this.context = context; |
this.context = context; |
44 |
|
view.getSize(cell, size); |
45 |
|
w = size[0]; |
46 |
|
h = size[1]; |
47 |
} |
} |
48 |
|
|
49 |
public float getWidth(float scale) { |
public float getWidth(float scale) { |
50 |
view.getDefaultSize(scale, dim); |
return scale * w; |
|
return dim.width; |
|
51 |
} |
} |
52 |
|
|
53 |
public float getHeight(float scale) { |
public float getHeight(float scale) { |
54 |
view.getDefaultSize(scale, dim); |
return scale * h; |
|
return dim.height; |
|
55 |
} |
} |
56 |
|
|
57 |
public float getDepth(float scale) { |
public float getDepth(float scale) { |