|
|
|
@ -183,9 +183,9 @@ public class IntelliElements {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void doIntelliAction() { |
|
|
|
|
for (int colIndex = getStartColumnIndex(), colEnd = getEndColumnIndex(); colIndex < colEnd; colIndex++) { |
|
|
|
|
for (int rowIndex = getStartRowIndex(), rowEnd = getEndRowIndex(); rowIndex < rowEnd; rowIndex++) { |
|
|
|
|
public abstract void doIntelliAction(); |
|
|
|
|
|
|
|
|
|
public void expandCellValue(int colIndex, int rowIndex) { |
|
|
|
|
TemplateCellElement sourceCellElement = getSourceCellElementByColumnRow(colIndex, rowIndex); |
|
|
|
|
|
|
|
|
|
if (sourceCellElement == null) { |
|
|
|
@ -218,8 +218,6 @@ public class IntelliElements {
|
|
|
|
|
|
|
|
|
|
report.addCellElement(newCellElement); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected abstract int getStartColumnIndex(); |
|
|
|
|
|
|
|
|
@ -328,6 +326,15 @@ public class IntelliElements {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doIntelliAction() { |
|
|
|
|
for (int colIndex = getStartColumnIndex(), colEnd = getEndColumnIndex(); colIndex < colEnd; colIndex ++) { |
|
|
|
|
for (int rowIndex = getStartRowIndex(), rowEnd = getEndRowIndex(); rowIndex < rowEnd; rowIndex ++) { |
|
|
|
|
expandCellValue(colIndex, rowIndex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean havetoModify() { |
|
|
|
|
return IntelliElements.this.dragCellRectangle.width > IntelliElements.this.oldCellRectangle.width; |
|
|
|
@ -397,6 +404,15 @@ public class IntelliElements {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doIntelliAction() { |
|
|
|
|
for (int colIndex = getStartColumnIndex(), colEnd = getEndColumnIndex(); colIndex > colEnd; colIndex --) { |
|
|
|
|
for (int rowIndex = getStartRowIndex(), rowEnd = getEndRowIndex(); rowIndex < rowEnd; rowIndex ++) { |
|
|
|
|
expandCellValue(colIndex, rowIndex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean havetoModify() { |
|
|
|
|
return true; |
|
|
|
@ -414,22 +430,22 @@ public class IntelliElements {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int getStartColumnIndex() { |
|
|
|
|
return IntelliElements.this.dragCellRectangle.x; |
|
|
|
|
return IntelliElements.this.oldCellRectangle.x - 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int getEndColumnIndex() { |
|
|
|
|
return IntelliElements.this.oldCellRectangle.x; |
|
|
|
|
return IntelliElements.this.dragCellRectangle.x - 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public TemplateCellElement getSourceCellElementByColumnRow(int columnIndex, int rowIndex) { |
|
|
|
|
return report.getTemplateCellElement(IntelliElements.this.oldCellRectangle.x + (columnIndex - IntelliElements.this.dragCellRectangle.x) % (IntelliElements.this.oldCellRectangle.width), rowIndex); |
|
|
|
|
return report.getTemplateCellElement(columnIndex + IntelliElements.this.oldCellRectangle.width, rowIndex); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected Number processNumber(Number i) { |
|
|
|
|
return i; |
|
|
|
|
return FunctionHelper.asNumber(i.doubleValue() - 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -465,6 +481,15 @@ public class IntelliElements {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doIntelliAction() { |
|
|
|
|
for (int colIndex = getStartColumnIndex(), colEnd = getEndColumnIndex(); colIndex < colEnd; colIndex ++) { |
|
|
|
|
for (int rowIndex = getStartRowIndex(), rowEnd = getEndRowIndex(); rowIndex < rowEnd; rowIndex ++) { |
|
|
|
|
expandCellValue(colIndex, rowIndex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean havetoModify() { |
|
|
|
|
return IntelliElements.this.dragCellRectangle.height > IntelliElements.this.oldCellRectangle.height; |
|
|
|
@ -533,6 +558,15 @@ public class IntelliElements {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doIntelliAction() { |
|
|
|
|
for (int colIndex = getStartColumnIndex(), colEnd = getEndColumnIndex(); colIndex < colEnd; colIndex++) { |
|
|
|
|
for (int rowIndex = getStartRowIndex(), rowEnd = getEndRowIndex(); rowIndex > rowEnd; rowIndex--) { |
|
|
|
|
expandCellValue(colIndex, rowIndex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean havetoModify() { |
|
|
|
|
return true; |
|
|
|
@ -540,12 +574,12 @@ public class IntelliElements {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int getStartRowIndex() { |
|
|
|
|
return IntelliElements.this.dragCellRectangle.y; |
|
|
|
|
return IntelliElements.this.oldCellRectangle.y - 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int getEndRowIndex() { |
|
|
|
|
return IntelliElements.this.oldCellRectangle.y; |
|
|
|
|
return IntelliElements.this.dragCellRectangle.y - 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -560,12 +594,12 @@ public class IntelliElements {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public TemplateCellElement getSourceCellElementByColumnRow(int columnIndex, int rowIndex) { |
|
|
|
|
return report.getTemplateCellElement(columnIndex, IntelliElements.this.oldCellRectangle.y + (rowIndex - IntelliElements.this.dragCellRectangle.y) % (IntelliElements.this.oldCellRectangle.height)); |
|
|
|
|
return report.getTemplateCellElement(columnIndex, rowIndex + IntelliElements.this.oldCellRectangle.height); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected Number processNumber(Number i) { |
|
|
|
|
return i; |
|
|
|
|
return FunctionHelper.asNumber(i.doubleValue() - 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|