|
JHotDraw 7.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jhotdraw.gui.plaf.palette.MultiIcon
public abstract class MultiIcon
An icon which paints one out of multiple icons depending on the state of the component. MultiIcon can lazily create the icons from a tiled image.
Field Summary | |
---|---|
protected javax.swing.Icon[] |
icons
The icons from which we choose from. |
Constructor Summary | |
---|---|
MultiIcon(javax.swing.Icon[] icons)
Creates a new instance from an array of icons. |
|
MultiIcon(java.awt.Image[] images)
Creates a new instance from an array of images. |
|
MultiIcon(java.awt.Image tiledImage,
int tileCount,
boolean isTiledHorizontaly)
Creates a new instance. |
Method Summary | |
---|---|
protected abstract void |
generateMissingIcons()
|
protected abstract javax.swing.Icon |
getIcon(java.awt.Component c)
|
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.Icon[] icons
Constructor Detail |
---|
public MultiIcon(javax.swing.Icon[] icons)
public MultiIcon(java.awt.Image[] images)
public MultiIcon(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly)
Method Detail |
---|
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
protected abstract javax.swing.Icon getIcon(java.awt.Component c)
protected abstract void generateMissingIcons()
|
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 |