/** * Returns the height of small arrow icons under the specified font size. * * @param fontSize * Font size. * @return Height of small arrow icons under the specified font size. */ public static float getSmallArrowIconHeight(int fontSize) { return getArrowIconHeight(fontSize) - 1; }
/** * Returns the height of small arrow icons under the specified font size. * * @param fontSize * Font size. * @return Height of small arrow icons under the specified font size. */ public static float getSmallArrowIconHeight(int fontSize) { return getArrowIconHeight(fontSize) - 1; }
/** * Returns the height of spinner arrow icons under the specified font size. * * @param fontSize * Font size. * @return Height of spinner arrow icons under the specified font size. */ public static float getSpinnerArrowIconHeight(int fontSize) { float result = SubstanceSizeUtils.getArrowIconHeight(fontSize) + SubstanceSizeUtils .getAdjustedSize(fontSize + 1, 0, 1, -0.25f); return result; }
/** * Returns the height of spinner arrow icons under the specified font size. * * @param fontSize * Font size. * @return Height of spinner arrow icons under the specified font size. */ public static float getSpinnerArrowIconHeight(int fontSize) { float result = SubstanceSizeUtils.getArrowIconHeight(fontSize) + SubstanceSizeUtils .getAdjustedSize(fontSize + 1, 0, 1, -0.25f); return result; }
/** * Returns the height of split pane divider arrow icons under the specified * font size. * * @param fontSize * Font size. * @return Height of split pane divider arrow icons under the specified font * size. */ public static float getSplitPaneArrowIconHeight(int fontSize) { float result = SubstanceSizeUtils.getArrowIconHeight(fontSize) + SubstanceSizeUtils.getAdjustedSize(fontSize, -1, 1, -0.3f); return result; }
/** * Returns the height of split pane divider arrow icons under the specified * font size. * * @param fontSize * Font size. * @return Height of split pane divider arrow icons under the specified font * size. */ public static float getSplitPaneArrowIconHeight(int fontSize) { float result = SubstanceSizeUtils.getArrowIconHeight(fontSize) + SubstanceSizeUtils.getAdjustedSize(fontSize, -1, 1, -0.3f); 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); }