CellRangeAddress a1c3 = new CellRangeAddress(0, 2, 0, 2);
PropertyTemplate pt = new PropertyTemplate();
pt.drawBorders(a1c3, CellStyle.BORDER_THIN,
- PropertyTemplate.Extent.ALL);
+ Extent.ALL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.OUTSIDE);
+ Extent.OUTSIDE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(0, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.TOP);
+ Extent.TOP);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.BOTTOM);
+ Extent.BOTTOM);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 2) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.LEFT);
+ Extent.LEFT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.RIGHT);
+ Extent.RIGHT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 2) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.HORIZONTAL);
+ Extent.HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.INSIDE_HORIZONTAL);
+ Extent.INSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.OUTSIDE_HORIZONTAL);
+ Extent.OUTSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.VERTICAL);
+ Extent.VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.INSIDE_VERTICAL);
+ Extent.INSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorders(a1c3, CellStyle.BORDER_MEDIUM,
- PropertyTemplate.Extent.OUTSIDE_VERTICAL);
+ Extent.OUTSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
CellRangeAddress a1c3 = new CellRangeAddress(0, 2, 0, 2);
PropertyTemplate pt = new PropertyTemplate();
pt.drawBorderColors(a1c3, IndexedColors.RED.getIndex(),
- PropertyTemplate.Extent.ALL);
+ Extent.ALL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
}
}
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.OUTSIDE);
+ Extent.OUTSIDE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(4, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(0, pt.getNumBorders(i, j));
}
}
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.TOP);
+ Extent.TOP);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.BOTTOM);
+ Extent.BOTTOM);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 2) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.LEFT);
+ Extent.LEFT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.RIGHT);
+ Extent.RIGHT);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 2) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.HORIZONTAL);
+ Extent.HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.INSIDE_HORIZONTAL);
+ Extent.INSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.OUTSIDE_HORIZONTAL);
+ Extent.OUTSIDE_HORIZONTAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (i == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.VERTICAL);
+ Extent.VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
assertEquals(2, pt.getNumBorders(i, j));
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.INSIDE_VERTICAL);
+ Extent.INSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {
}
}
pt.drawBorders(a1c3, CellStyle.BORDER_NONE,
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.AUTOMATIC.getIndex(),
- PropertyTemplate.Extent.NONE);
+ Extent.NONE);
pt.drawBorderColors(a1c3, IndexedColors.BLUE.getIndex(),
- PropertyTemplate.Extent.OUTSIDE_VERTICAL);
+ Extent.OUTSIDE_VERTICAL);
for (int i = 0; i <= 2; i++) {
for (int j = 0; j <= 2; j++) {
if (j == 0) {