|
|
@ -52,7 +52,7 @@ public class PolyBoundsGroup implements GroupModel { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Object getValue(int row, int column) { |
|
|
|
public Object getValue(int row, int column) { |
|
|
|
UnitRectangle ur = block.getBounds(); |
|
|
|
UnitRectangle ur = block.getBounds(); |
|
|
|
Rectangle r = ur.toRectangle(resolution); |
|
|
|
Rectangle r = ur.toRoundRectangle(resolution); |
|
|
|
if (column == 0) { |
|
|
|
if (column == 0) { |
|
|
|
switch (row) { |
|
|
|
switch (row) { |
|
|
|
case 0: |
|
|
|
case 0: |
|
|
@ -83,7 +83,7 @@ public class PolyBoundsGroup implements GroupModel { |
|
|
|
if (column == 1) { |
|
|
|
if (column == 1) { |
|
|
|
int v = value == null ? 0 : ((Number) value).intValue(); |
|
|
|
int v = value == null ? 0 : ((Number) value).intValue(); |
|
|
|
UnitRectangle ur = block.getBounds(); |
|
|
|
UnitRectangle ur = block.getBounds(); |
|
|
|
Rectangle r = ur.toRectangle(resolution); |
|
|
|
Rectangle r = ur.toRoundRectangle(resolution); |
|
|
|
switch (row) { |
|
|
|
switch (row) { |
|
|
|
case 0: |
|
|
|
case 0: |
|
|
|
r.x = v; |
|
|
|
r.x = v; |
|
|
|