|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.backward.figure.icons.AbstractNodeIconFactory
public abstract class AbstractNodeIconFactory
Abstract factory for creating NodeIcons. It should be extended by factories provided to
pl.edu.agh.cast.nodeIcons extension point.
Classes that derive from this abstract class should only call init() when created.
| Constructor Summary | |
|---|---|
AbstractNodeIconFactory()
|
|
| Method Summary | |
|---|---|
static NodeIcon |
createNodeIcon(Class location,
String type,
String name,
String iconPath,
String smallIconPath,
String group)
Creates node icon object. |
Collection<NodeIcon> |
getNodeIcons()
Return collection of node icons provided by pl.edu.agh.cast.nodeIcons EP extender. |
protected void |
init(Class location,
String[][] description)
Initializes the factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractNodeIconFactory()
| Method Detail |
|---|
public Collection<NodeIcon> getNodeIcons()
pl.edu.agh.cast.nodeIcons EP extender.
getNodeIcons in interface INodeIconFactoryINodeIconFactory.getNodeIcons()
protected void init(Class location,
String[][] description)
NodeIcons according to provided location and
description.
location - defines the base path for image file lookup (see org.eclipse.jface.resource.ImageDescriptor.createFromFile(Class, String) location
parameter)description - description of icons provided in a Nx5 String array, where N is the number of rows. Each row has to
have 5 cells which fully describe a NodeIcon to be created. The cells should contain:
location)location)
public static NodeIcon createNodeIcon(Class location,
String type,
String name,
String iconPath,
String smallIconPath,
String group)
null is returned.
location - location of the icon image (see ImageDescriptor.createFromFile(Class, String))type - type of the node this icon is for (see
NodeIcon.NodeIcon(String, String, ImageDescriptor, ImageDescriptor, String))name - localized icon display name (see
NodeIcon.NodeIcon(String, String, ImageDescriptor, ImageDescriptor, String))iconPath - name of the file containing the icon (see ImageDescriptor.createFromFile(Class, String))smallIconPath - name of the file containing the small icon (see ImageDescriptor.createFromFile(Class, String))group - localized name of the group this icon is in (see
NodeIcon.NodeIcon(String, String, ImageDescriptor, ImageDescriptor, String))
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||