Skip to content

Commit

Permalink
Adjust small icon figure position according to line width
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillipus committed Aug 20, 2023
1 parent 4d8422f commit 6191447
Show file tree
Hide file tree
Showing 43 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 19, bounds.y + 6);
return new Point(bounds.x + bounds.width - 18 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 15, bounds.y + 19);
return new Point(bounds.x + bounds.width - 14 - getLineWidth(), bounds.y + 19);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 16, bounds.y + 6);
return new Point(bounds.x + bounds.width - 15 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 15, bounds.y + 6);
return new Point(bounds.x + bounds.width - 14 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds().getCopy();
return new Point(bounds.x + bounds.width - 13, bounds.y + 4);
return new Point(bounds.x + bounds.width - 10 - getLineWidth(), bounds.y + 4);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.getRight().x - 18, bounds.y + 7);
return new Point(bounds.getRight().x - 17 - getLineWidth(), bounds.y + 7);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.getRight().x - 17, bounds.y + 5);
return new Point(bounds.getRight().x - 16 - getLineWidth(), bounds.y + 5);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 7);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 7);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 20, bounds.y + 14);
return new Point(bounds.x + bounds.width - 18 - getLineWidth(), bounds.y + 14);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 8);
return new Point(bounds.x + bounds.width - 18 - getLineWidth(), bounds.y + 8);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.getRight().x - 17, bounds.y + 3);
return new Point(bounds.getRight().x - 16 - getLineWidth(), bounds.y + 2 + getLineWidth());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 19, bounds.y + 6);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 17, bounds.y + 5);
return new Point(bounds.x + bounds.width - 15 - getLineWidth(), bounds.y + 5);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected void drawIcon(Graphics graphics) {

private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 20, bounds.y + 12);
return new Point(bounds.x + bounds.width - 19 - getLineWidth(), bounds.y + 12);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 21, bounds.y + 6);
return new Point(bounds.x + bounds.width - 20 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private void drawIconCog(Graphics graphics, Point center, int segments, int r1,
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 19, bounds.y + 17);
return new Point(bounds.x + bounds.width - 18 - getLineWidth(), bounds.y + 17);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 20, bounds.y + 7);
return new Point(bounds.x + bounds.width - 19 - getLineWidth(), bounds.y + 7);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.getRight().x - 20, bounds.y + 17);
return new Point(bounds.getRight().x - 19 - getLineWidth(), bounds.y + 17);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 19);
return new Point(bounds.x + bounds.width - 16 - getLineWidth(), bounds.y + 19);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 20, bounds.y + 6);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 20, bounds.y + 6);
return new Point(bounds.x + bounds.width - 19 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 6);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 13, bounds.y + 6);
return new Point(bounds.x + bounds.width - 11 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 14, bounds.y + 8);
return new Point(bounds.x + bounds.width - 13 - getLineWidth(), bounds.y + 8);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 10, bounds.y + 20);
return new Point(bounds.x + bounds.width - 8 - getLineWidth(), bounds.y + 20);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 12, bounds.y + 12);
return new Point(bounds.x + bounds.width - 11 - getLineWidth(), bounds.y + 12);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds().getCopy();
return new Point(bounds.x + bounds.width - 18, bounds.y + 8);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 8);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 8);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 8);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 6);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 25, bounds.y + 9);
return new Point(bounds.x + bounds.width - 24 - getLineWidth(), bounds.y + 9);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ protected void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 20, bounds.y + 12);
return new Point(bounds.x + bounds.width - 19 - getLineWidth(), bounds.y + 12);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 21, bounds.y + 13);
return new Point(bounds.x + bounds.width - 20 - getLineWidth(), bounds.y + 13);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 20, bounds.y + 6);
return new Point(bounds.x + bounds.width - 19 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 11);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 11);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds().getCopy();
return new Point(bounds.x + bounds.width - 18, bounds.y + 6);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 8);
return new Point(bounds.x + bounds.width - 18 - getLineWidth(), bounds.y + 8);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.getRight().x - 20, bounds.y + 7);
return new Point(bounds.getRight().x - 19 - getLineWidth(), bounds.y + 7);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 21, bounds.y + 7);
return new Point(bounds.x + bounds.width - 20 - getLineWidth(), bounds.y + 7);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 21, bounds.y + 9);
return new Point(bounds.x + bounds.width - 20 - getLineWidth(), bounds.y + 9);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds().getCopy();
return getDiagramModelArchimateObject().getType() == 0 ? new Point(bounds.x + bounds.width - 18, bounds.y + 8) : new Point(bounds.x + bounds.width - 31, bounds.y + 20);
return new Point(bounds.x + bounds.width - 16 - getLineWidth(), bounds.y + 8);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds().getCopy();
return new Point(bounds.x + bounds.width - 20, bounds.y + 7);
return new Point(bounds.x + bounds.width - 19 - getLineWidth(), bounds.y + 7);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ protected void drawIcon(Graphics graphics) {
*/
protected Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.getRight().x - 19, bounds.y + 7);
return new Point(bounds.getRight().x - 18 - getLineWidth(), bounds.y + 7);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private void drawIcon(Graphics graphics) {
*/
private Point getIconOrigin() {
Rectangle bounds = getBounds();
return new Point(bounds.x + bounds.width - 18, bounds.y + 6);
return new Point(bounds.x + bounds.width - 17 - getLineWidth(), bounds.y + 6);
}

@Override
Expand Down

0 comments on commit 6191447

Please sign in to comment.