|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.swing.IconManager
public class IconManager
Singleton managing icons cache.
Method Summary | |
---|---|
void |
clear()
Clears the loaded resources cache and shutdowns the multithreaded service that loads icons. |
Icon |
getErrorIcon()
Returns the icon displayed for wrong content. |
Icon |
getErrorIcon(int height)
Returns the icon displayed for wrong content resized at a given height. |
Icon |
getIcon(Content content,
Component waitingComponent)
Returns an icon read from content . |
Icon |
getIcon(Content content,
int height,
Component waitingComponent)
Returns an icon read from content and rescaled at a given height . |
static IconManager |
getInstance()
Returns an instance of this singleton. |
Icon |
getWaitIcon()
Returns the icon displayed while a content is loaded. |
Icon |
getWaitIcon(int height)
Returns the icon displayed while a content is loaded resized at a given height. |
boolean |
isErrorIcon(Icon icon)
Returns true if the given icon is the error icon
used by this manager to indicate it couldn't load an icon. |
boolean |
isWaitIcon(Icon icon)
Returns true if the given icon is the wait icon
used by this manager to indicate it's currently loading an icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IconManager getInstance()
public void clear()
public Icon getErrorIcon(int height)
public Icon getErrorIcon()
public boolean isErrorIcon(Icon icon)
true
if the given icon
is the error icon
used by this manager to indicate it couldn't load an icon.
public Icon getWaitIcon(int height)
public Icon getWaitIcon()
public boolean isWaitIcon(Icon icon)
true
if the given icon
is the wait icon
used by this manager to indicate it's currently loading an icon.
public Icon getIcon(Content content, Component waitingComponent)
content
.
content
- an object containing an imagewaitingComponent
- a waiting component. If null
, the returned icon will
be read immediately in the current thread.public Icon getIcon(Content content, int height, Component waitingComponent)
content
and rescaled at a given height
.
content
- an object containing an imageheight
- the desired height of the returned iconwaitingComponent
- a waiting component. If null
, the returned icon will
be read immediately in the current thread.
|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |