|
|
|
@ -487,6 +487,7 @@ public class TranslucentBorderSpecialPane extends AbstractBorderPackerPane imple
|
|
|
|
|
private int ninePointBottom = -1; |
|
|
|
|
|
|
|
|
|
private static final int MIN_NINE_POINT = 0; |
|
|
|
|
private static final int MIN_GAP_PARALLEL_LINES = 1; |
|
|
|
|
|
|
|
|
|
private int imgWidth; |
|
|
|
|
private int imgHeight; |
|
|
|
@ -757,8 +758,8 @@ public class TranslucentBorderSpecialPane extends AbstractBorderPackerPane imple
|
|
|
|
|
private void onNinePointTopChanged(int value) { |
|
|
|
|
if (value < MIN_NINE_POINT) { |
|
|
|
|
value = MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgHeight - ninePointBottom) { |
|
|
|
|
value = imgHeight - ninePointBottom - MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgHeight - ninePointBottom - MIN_GAP_PARALLEL_LINES) { |
|
|
|
|
value = imgHeight - ninePointBottom - MIN_GAP_PARALLEL_LINES; |
|
|
|
|
} |
|
|
|
|
this.ninePointTop = value; |
|
|
|
|
repaint(); |
|
|
|
@ -767,8 +768,8 @@ public class TranslucentBorderSpecialPane extends AbstractBorderPackerPane imple
|
|
|
|
|
private void onNinePointBottomChanged(int value) { |
|
|
|
|
if (value < MIN_NINE_POINT) { |
|
|
|
|
value = MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgHeight - ninePointTop) { |
|
|
|
|
value = imgHeight - ninePointTop - MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgHeight - ninePointTop - MIN_GAP_PARALLEL_LINES) { |
|
|
|
|
value = imgHeight - ninePointTop - MIN_GAP_PARALLEL_LINES; |
|
|
|
|
} |
|
|
|
|
this.ninePointBottom = value; |
|
|
|
|
repaint(); |
|
|
|
@ -777,8 +778,8 @@ public class TranslucentBorderSpecialPane extends AbstractBorderPackerPane imple
|
|
|
|
|
private void onNinePointLeftChanged(int value) { |
|
|
|
|
if (value < MIN_NINE_POINT) { |
|
|
|
|
value = MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgWidth - ninePointRight) { |
|
|
|
|
value = imgWidth - ninePointRight - MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgWidth - ninePointRight - MIN_GAP_PARALLEL_LINES) { |
|
|
|
|
value = imgWidth - ninePointRight - MIN_GAP_PARALLEL_LINES; |
|
|
|
|
} |
|
|
|
|
this.ninePointLeft = value; |
|
|
|
|
repaint(); |
|
|
|
@ -787,8 +788,8 @@ public class TranslucentBorderSpecialPane extends AbstractBorderPackerPane imple
|
|
|
|
|
private void onNinePointRightChanged(int value) { |
|
|
|
|
if (value < MIN_NINE_POINT) { |
|
|
|
|
value = MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgWidth - ninePointLeft) { |
|
|
|
|
value = imgWidth - ninePointLeft - MIN_NINE_POINT; |
|
|
|
|
} else if (value >= imgWidth - ninePointLeft - MIN_GAP_PARALLEL_LINES) { |
|
|
|
|
value = imgWidth - ninePointLeft - MIN_GAP_PARALLEL_LINES; |
|
|
|
|
} |
|
|
|
|
this.ninePointRight = value; |
|
|
|
|
repaint(); |
|
|
|
|