org.jhotdraw.gui.plaf.palette
Class PaletteSliderThumbIcon
- java.lang.Object
-
- org.jhotdraw.gui.plaf.palette.MultiIcon
-
- org.jhotdraw.gui.plaf.palette.PaletteSliderThumbIcon
-
- All Implemented Interfaces:
- javax.swing.Icon
public class PaletteSliderThumbIcon extends MultiIcon
An Icon with different visuals reflecting the state of the slider on which it draws on.
-
-
Constructor Summary
Constructors Constructor and Description PaletteSliderThumbIcon(javax.swing.Icon[] icons)Creates a new instance.PaletteSliderThumbIcon(javax.swing.Icon e, javax.swing.Icon ep, javax.swing.Icon d, javax.swing.Icon i, javax.swing.Icon di)Creates a new instance.PaletteSliderThumbIcon(java.awt.Image[] images)Creates a new instance.PaletteSliderThumbIcon(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly)Creates a new instance.PaletteSliderThumbIcon(java.lang.String resource, int tileCount, boolean isTiledHorizontaly)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)-
Methods inherited from class org.jhotdraw.gui.plaf.palette.MultiIcon
getIconHeight, getIconWidth
-
-
-
-
Constructor Detail
-
PaletteSliderThumbIcon
public PaletteSliderThumbIcon(javax.swing.Icon e, javax.swing.Icon ep, javax.swing.Icon d, javax.swing.Icon i, javax.swing.Icon di)Creates a new instance. All icons must have the same dimensions. If an icon is null, an icon is derived for the state from the other icons.
-
PaletteSliderThumbIcon
public PaletteSliderThumbIcon(java.awt.Image[] images)
Creates a new instance. All icons must have the same dimensions. The array indices are used to represente the following states: [0] Enabled [1] Enabled Pressed [2] Disabled [3] Enabled Inactive [4] Disabled Inactive [5] Focus Ring If an array element is null, an icon is derived for the state from the other icons.
-
PaletteSliderThumbIcon
public PaletteSliderThumbIcon(javax.swing.Icon[] icons)
Creates a new instance. All icons must have the same dimensions. If an icon is null, nothing is drawn for this state.
-
PaletteSliderThumbIcon
public PaletteSliderThumbIcon(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly)Creates a new instance. The icon representations are created lazily from the image.
-
PaletteSliderThumbIcon
public PaletteSliderThumbIcon(java.lang.String resource, int tileCount, boolean isTiledHorizontaly)Creates a new instance. The icon representations are created lazily from the specified resource.- Parameters:
resource- A resource URL.tileCount- The number of tiles.isTiledHorizontaly- True if the image is to be tilled horizontally, false for vertically.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG