OC-11817 Add inherited and override presentation to Swift file structure

This commit is contained in:
Alexander Lobas
2015-04-09 16:45:52 +03:00
parent 05c0806e0f
commit 71c60aa809
2 changed files with 16 additions and 2 deletions
@@ -22,7 +22,16 @@ import java.awt.*;
public class FontUtil {
@NotNull
public static String rightArrow(@NotNull Font font) {
char rightArrow = '\u2192';
return font.canDisplay(rightArrow) ? String.valueOf(rightArrow) : "->";
return canDisplay(font, '\u2192', "->");
}
@NotNull
public static String upArrow(@NotNull Font font, @NotNull String defaultValue) {
return canDisplay(font, '\u2191', defaultValue);
}
@NotNull
public static String canDisplay(@NotNull Font font, char value, @NotNull String defaultValue) {
return font.canDisplay(value) ? String.valueOf(value) : defaultValue;
}
}
@@ -3281,6 +3281,11 @@ public class UIUtil {
return FontUtil.rightArrow(getLabelFont());
}
@NotNull
public static String upArrow(@NotNull String defaultValue) {
return FontUtil.upArrow(getLabelFont(), defaultValue);
}
public static EmptyBorder getTextAlignBorder(@NotNull JToggleButton alignSource) {
ButtonUI ui = alignSource.getUI();
int leftGap = alignSource.getIconTextGap();