Browse Source

Rename parameter to better resemble the purpose.

pull/235/head
weisj 4 years ago
parent
commit
b5d30f4416
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 10
      utils/src/main/java/com/github/weisj/darklaf/util/Alignment.java

10
utils/src/main/java/com/github/weisj/darklaf/util/Alignment.java

@ -282,12 +282,14 @@ public enum Alignment {
return isWest(true);
}
public boolean isEast(final boolean includePure) {
return (this == Alignment.EAST && includePure) || this == Alignment.NORTH_EAST || this == Alignment.SOUTH_EAST;
public boolean isEast(final boolean includePureDirections) {
return (this == Alignment.EAST && includePureDirections) || this == Alignment.NORTH_EAST
|| this == Alignment.SOUTH_EAST;
}
public boolean isWest(final boolean includePure) {
return (this == Alignment.WEST && includePure) || this == Alignment.NORTH_WEST || this == Alignment.SOUTH_WEST;
public boolean isWest(final boolean includePureDirections) {
return (this == Alignment.WEST && includePureDirections) || this == Alignment.NORTH_WEST
|| this == Alignment.SOUTH_WEST;
}
public boolean isVertical() {

Loading…
Cancel
Save