Skip to content

Commit dbb32f0

Browse files
committed
Run spotlessApply
1 parent 3a1744e commit dbb32f0

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

src/main/java/net/rptools/maptool/model/drawing/RightAngleConeTemplate.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ protected void paintBorder(
103103
}
104104

105105
@Override
106-
protected void paintArea(Graphics2D g, int x, int y, int xOff, int yOff, int gridSize, int distance) {
106+
protected void paintArea(
107+
Graphics2D g, int x, int y, int xOff, int yOff, int gridSize, int distance) {
107108
// NO-OP, not used. I overrode AbstractTemplate#paint in this class and I don't call paintBorder
108109
// and paintArea separately anymore.
109110
}
@@ -230,31 +231,31 @@ public Area getArea() {
230231
// that the boundingBox intersects.
231232
Rectangle boundingBox = path.getBounds();
232233
ZonePoint leftUpper =
233-
new ZonePoint(
234-
gridSize * (int) Math.floor(boundingBox.x / gridSize),
235-
gridSize * (int) Math.floor(boundingBox.y / gridSize));
234+
new ZonePoint(
235+
gridSize * (int) Math.floor(boundingBox.x / gridSize),
236+
gridSize * (int) Math.floor(boundingBox.y / gridSize));
236237

237238
float bottomRightX = boundingBox.x + boundingBox.width;
238239
int bottomRightXSnapped = gridSize * (int) Math.ceil(bottomRightX / gridSize);
239240
float bottomRightY = boundingBox.y + boundingBox.height;
240241
int bottomRightYSnapped = gridSize * (int) Math.ceil(bottomRightY / gridSize);
241242
ZonePoint bottomRight = new ZonePoint(bottomRightXSnapped, bottomRightYSnapped);
242243
Rectangle gridSnappedBoundingBox =
243-
new Rectangle(
244-
leftUpper.x, leftUpper.y, bottomRight.x - leftUpper.x, bottomRight.y - leftUpper.y);
244+
new Rectangle(
245+
leftUpper.x, leftUpper.y, bottomRight.x - leftUpper.x, bottomRight.y - leftUpper.y);
245246

246247
Area cone = new Area(path);
247248
Area aoe = new Area(); // Empty rectangle that we will update.
248249
/** */
249250
PriorityQueue<Rectangle> queue =
250-
new PriorityQueue<Rectangle>(
251-
new Comparator<Rectangle>() {
252-
@Override
253-
/** We prioritize smaller rectangles so the Queue stays smaller. */
254-
public int compare(Rectangle o1, Rectangle o2) {
255-
return o1.height * o1.width - o2.height * o2.width;
256-
}
257-
});
251+
new PriorityQueue<Rectangle>(
252+
new Comparator<Rectangle>() {
253+
@Override
254+
/** We prioritize smaller rectangles so the Queue stays smaller. */
255+
public int compare(Rectangle o1, Rectangle o2) {
256+
return o1.height * o1.width - o2.height * o2.width;
257+
}
258+
});
258259
queue.add(gridSnappedBoundingBox);
259260
while (queue.size() > 0) {
260261
// if fully contained, then add it to the shape

0 commit comments

Comments
 (0)