|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.gui.plaf.palette.MultiIcon
org.jhotdraw.gui.plaf.palette.PaletteSliderThumbIcon
public class PaletteSliderThumbIcon
An Icon with different visuals reflecting the state of the slider on which it draws on.
Field Summary |
---|
Fields inherited from class org.jhotdraw.gui.plaf.palette.MultiIcon |
---|
icons |
Constructor Summary | |
---|---|
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 | |
---|---|
protected void |
generateMissingIcons()
|
protected javax.swing.Icon |
getIcon(java.awt.Component c)
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
Methods inherited from class org.jhotdraw.gui.plaf.palette.MultiIcon |
---|
getIconHeight, getIconWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaletteSliderThumbIcon(javax.swing.Icon e, javax.swing.Icon ep, javax.swing.Icon d, javax.swing.Icon i, javax.swing.Icon di)
public PaletteSliderThumbIcon(java.awt.Image[] images)
public PaletteSliderThumbIcon(javax.swing.Icon[] icons)
public PaletteSliderThumbIcon(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly)
public PaletteSliderThumbIcon(java.lang.String resource, int tileCount, boolean isTiledHorizontaly)
resource
- A resource URL.tileCount
- The number of tiles.isTiledHorizontaly
- True if the image is to be tilled horizontally,
false for vertically.Method Detail |
---|
protected void generateMissingIcons()
generateMissingIcons
in class MultiIcon
protected javax.swing.Icon getIcon(java.awt.Component c)
getIcon
in class MultiIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
paintIcon
in class MultiIcon
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |