net.sf.doolin.gui.service.icon
Class IconDefinition

java.lang.Object
  extended by net.sf.doolin.gui.service.icon.IconDefinition

public class IconDefinition
extends Object

Association of icon sizes and corresponding paths.

Author:
Damien Coraboeuf

Constructor Summary
IconDefinition()
          Empty constructor.
IconDefinition(String prefix, String miniPath, String smallPath, String mediumPath, String largePath, String bigPath)
          Builds an icon definition using a prefix and some suffixes for the paths.
 
Method Summary
 Map<IconSize,String> getPaths()
          Gets the map of paths and icon sizes
protected  void put(IconSize size, String prefix, String path)
          Registers a path prefix and a path suffix for a given icon size
 void setPaths(Map<IconSize,String> paths)
          Sets the map of paths and icon sizes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconDefinition

public IconDefinition()
Empty constructor.


IconDefinition

public IconDefinition(String prefix,
                      String miniPath,
                      String smallPath,
                      String mediumPath,
                      String largePath,
                      String bigPath)
Builds an icon definition using a prefix and some suffixes for the paths.

Parameters:
prefix - Prefix to use for the paths.
miniPath - Path suffix to the mini icon or null
smallPath - Path suffix to the small icon or null
mediumPath - Path suffix to the medium icon or null
largePath - Path suffix to the large icon or null
bigPath - Path suffix to the big icon or null
Method Detail

put

protected void put(IconSize size,
                   String prefix,
                   String path)
Registers a path prefix and a path suffix for a given icon size

Parameters:
size - Icon size
prefix - Path prefix
path - Path suffix

getPaths

public Map<IconSize,String> getPaths()
Gets the map of paths and icon sizes

Returns:
Paths indexed by icon sizes

setPaths

public void setPaths(Map<IconSize,String> paths)
Sets the map of paths and icon sizes

Parameters:
paths - Paths indexed by icon sizes


Copyright © 2011. All Rights Reserved.