Skip to content

Commit

Permalink
Added getter for default content alignment.
Browse files Browse the repository at this point in the history
Signed-off-by: Soeren Domroes <[email protected]>
  • Loading branch information
soerendomroes committed Mar 31, 2020
1 parent f748dc3 commit 7e8f3a7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,11 @@ public static EnumSet<ContentAlignment> topLeft() {
public static EnumSet<ContentAlignment> bottomRight() {
return EnumSet.of(V_BOTTOM, H_RIGHT);
}

/**
* @return a set containing {@link #V_TOP} and {@link #H_CENTER}.
*/
public static EnumSet<ContentAlignment> topCenter() {
return EnumSet.of(V_TOP, H_CENTER);
}
}

0 comments on commit 7e8f3a7

Please sign in to comment.