/** * Returns the width of small arrow icons under the specified font size. * * @param fontSize * Font size. * @return Width of small arrow icons under the specified font size. */ public static float getSmallArrowIconWidth(int fontSize) { return getArrowIconWidth(fontSize) - 2; }
/** * Returns the width of small arrow icons under the specified font size. * * @param fontSize * Font size. * @return Width of small arrow icons under the specified font size. */ public static float getSmallArrowIconWidth(int fontSize) { return getArrowIconWidth(fontSize) - 2; }
/** * Returns the width of scroll bars under the specified font size. * * @param fontSize * Font size. * @return Width of scroll bars under the specified font size. */ public static int getScrollBarWidth(int fontSize) { int result = (int) (getArrowIconWidth(fontSize) * 3 / 2); if (result % 2 == 0) result++; return result; }
/** * Returns the width of scroll bars under the specified font size. * * @param fontSize * Font size. * @return Width of scroll bars under the specified font size. */ public static int getScrollBarWidth(int fontSize) { int result = (int) (getArrowIconWidth(fontSize) * 3 / 2); if (result % 2 == 0) result++; return result; }
/** * Returns the width of spinner arrow icons under the specified font size. * * @param fontSize * Font size. * @return Width of spinner arrow icons under the specified font size. */ public static float getSpinnerArrowIconWidth(int fontSize) { int result = (int) (SubstanceSizeUtils.getArrowIconWidth(fontSize) + SubstanceSizeUtils .getAdjustedSize(fontSize, 1, 1, -0.15f)); if (result % 2 == 0) result--; return result; }
/** * Returns the width of spinner arrow icons under the specified font size. * * @param fontSize * Font size. * @return Width of spinner arrow icons under the specified font size. */ public static float getSpinnerArrowIconWidth(int fontSize) { int result = (int) (SubstanceSizeUtils.getArrowIconWidth(fontSize) + SubstanceSizeUtils .getAdjustedSize(fontSize, 1, 1, -0.15f)); if (result % 2 == 0) result--; return result; }
/** * Returns the width of split pane divider arrow icons under the specified * font size. * * @param fontSize * Font size. * @return Width of split pane divider arrow icons under the specified font * size. */ public static float getSplitPaneArrowIconWidth(int fontSize) { float result = SubstanceSizeUtils.getArrowIconWidth(fontSize) + SubstanceSizeUtils.getAdjustedSize(fontSize, -2, 1, -0.25f); // if (result % 2 == 0) // result--; return result; }
/** * Returns the width of split pane divider arrow icons under the specified * font size. * * @param fontSize * Font size. * @return Width of split pane divider arrow icons under the specified font * size. */ public static float getSplitPaneArrowIconWidth(int fontSize) { float result = SubstanceSizeUtils.getArrowIconWidth(fontSize) + SubstanceSizeUtils.getAdjustedSize(fontSize, -2, 1, -0.25f); // if (result % 2 == 0) // result--; return result; }
/** * Returns arrow icon for the specified parameters. * * @param fontSize * Font size. * @param direction * Arrow direction. * @param colorScheme * Arrow icon color scheme. * @return Arrow icon. */ public static Icon getArrowIcon(int fontSize, int direction, SubstanceColorScheme colorScheme) { float width = SubstanceSizeUtils.getArrowIconWidth(fontSize); float height = SubstanceSizeUtils.getArrowIconHeight(fontSize); if (direction == SwingConstants.CENTER) height *= 2; float strokeWidth = SubstanceSizeUtils.getArrowStrokeWidth(fontSize); return new ImageIcon(getArrow(width, height, strokeWidth, direction, colorScheme)); }
/** * Returns arrow icon for the specified parameters. * * @param fontSize * Font size. * @param direction * Arrow direction. * @param colorScheme * Arrow icon color scheme. * @return Arrow icon. */ public static Icon getArrowIcon(int fontSize, int direction, SubstanceColorScheme colorScheme) { float width = SubstanceSizeUtils.getArrowIconWidth(fontSize); float height = SubstanceSizeUtils.getArrowIconHeight(fontSize); if (direction == SwingConstants.CENTER) height *= 2; float strokeWidth = SubstanceSizeUtils.getArrowStrokeWidth(fontSize); return new ImageIcon(getArrow(width, height, strokeWidth, direction, colorScheme)); }
/** * Returns double arrow icon for the specified parameters. * * @param fontSize * Font size. * @param deltaWidth * Arrow width delta. * @param deltaHeight * Arrow height delta. * @param deltaStrokeWidth * Arrow stroke width delta. * @param direction * Arrow direction. * @param colorScheme * Color scheme for the arrow. * @return Double arrow icon. */ public static Icon getDoubleArrowIconDelta(int fontSize, float deltaWidth, float deltaHeight, float deltaStrokeWidth, int direction, SubstanceColorScheme colorScheme) { float arrowWidth = SubstanceSizeUtils.getArrowIconWidth(fontSize) + deltaWidth; float arrowHeight = SubstanceSizeUtils.getArrowIconHeight(fontSize) + deltaHeight; float arrowStrokeWidth = SubstanceSizeUtils .getDoubleArrowStrokeWidth(fontSize) + deltaStrokeWidth; return getDoubleArrowIcon(fontSize, arrowWidth, arrowHeight, arrowStrokeWidth, direction, colorScheme); }
/** * Returns double arrow icon for the specified parameters. * * @param fontSize * Font size. * @param deltaWidth * Arrow width delta. * @param deltaHeight * Arrow height delta. * @param deltaStrokeWidth * Arrow stroke width delta. * @param direction * Arrow direction. * @param colorScheme * Color scheme for the arrow. * @return Double arrow icon. */ public static Icon getDoubleArrowIconDelta(int fontSize, float deltaWidth, float deltaHeight, float deltaStrokeWidth, int direction, SubstanceColorScheme colorScheme) { float arrowWidth = SubstanceSizeUtils.getArrowIconWidth(fontSize) + deltaWidth; float arrowHeight = SubstanceSizeUtils.getArrowIconHeight(fontSize) + deltaHeight; float arrowStrokeWidth = SubstanceSizeUtils .getDoubleArrowStrokeWidth(fontSize) + deltaStrokeWidth; return getDoubleArrowIcon(fontSize, arrowWidth, arrowHeight, arrowStrokeWidth, direction, colorScheme); }
(int) (SubstanceSizeUtils.getArrowIconWidth(SubstanceSizeUtils .getControlFontSize()) + SubstanceSizeUtils .getAdjustedSize(SubstanceSizeUtils
(int) (SubstanceSizeUtils.getArrowIconWidth(SubstanceSizeUtils .getControlFontSize()) + SubstanceSizeUtils .getAdjustedSize(