Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance.utils.icon
Class SubstanceIconFactory

    java.lang.Object
      org.jvnet.substance.utils.icon.SubstanceIconFactory

    public class SubstanceIconFactory

extends java.lang.Object

Icon factory for dynamically-changing icons. This class is for internal use only.

Author:
  Kirill Grouchnikov

Nested Class Summary
`static class` | `SubstanceIconFactory.IconKind` Icon kind of a title pane button.

Constructor Summary
`SubstanceIconFactory()`

Method Summary
`static javax.swing.Icon` | `getSliderHorizontalIcon(int size, boolean isMirrorred)` Retrieves icon for horizontal slider in `SubstanceSliderUI`.
`static javax.swing.Icon` | `getSliderRoundIcon(int size)` Retrieves round icon for slider in `SubstanceSliderUI`.
`static javax.swing.Icon` | `getSliderVerticalIcon(int size, boolean isMirrorred)` Retrieves icon for vertical slider in `SubstanceSliderUI`.
`static javax.swing.Icon` | `getTitlePaneIcon(SubstanceIconFactory.IconKind iconKind, SubstanceColorScheme scheme)` Returns title pane icon of the specified kind.
`static javax.swing.Icon` | `getTreeIcon(javax.swing.JTree tree, boolean isCollapsed)`
`static void` | `reset()` Resets image maps (used when setting new skin).

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SubstanceIconFactory

    public SubstanceIconFactory()

Method Detail

### reset

    public static void reset()

  Resets image maps (used when setting new skin).

  See Also:
    `SubstanceLookAndFeel.setSkin(String)`, `SubstanceLookAndFeel#setSkin(org.jvnet.substance.skin.SubstanceSkin)`

### getSliderHorizontalIcon

    public static javax.swing.Icon getSliderHorizontalIcon(int size,
                                                           boolean isMirrorred)

  Retrieves icon for horizontal slider in `SubstanceSliderUI`.

  Parameters:
    `size` - The size of the icon to retrieve.
    `isMirrorred` - Indication whether the icon should be mirrored.
  Returns:
    Icon for horizontal slider in `SubstanceSliderUI`.

### getSliderRoundIcon

    public static javax.swing.Icon getSliderRoundIcon(int size)

  Retrieves round icon for slider in `SubstanceSliderUI`.

  Parameters:
    `size` - The size of the icon to retrieve.
  Returns:
    Round icon for slider in `SubstanceSliderUI`.

### getSliderVerticalIcon

    public static javax.swing.Icon getSliderVerticalIcon(int size,
                                                         boolean isMirrorred)

  Retrieves icon for vertical slider in `SubstanceSliderUI`.

  Parameters:
    `size` - The size of the icon to retrieve.
    `isMirrorred` - Indication whether the icon should be mirrored.
  Returns:
    Icon for vertical slider in `SubstanceSliderUI`.

### getTreeIcon

    public static javax.swing.Icon getTreeIcon(javax.swing.JTree tree,
                                               boolean isCollapsed)

### getTitlePaneIcon

    public static javax.swing.Icon getTitlePaneIcon(SubstanceIconFactory.IconKind iconKind,
                                                    SubstanceColorScheme scheme)

  Returns title pane icon of the specified kind.

  Parameters:
    `iconKind` - Icon kind.
    `scheme` - Substance theme.
  Returns:
    Title pane icon of the specified kind.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD