Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.common.definition
Class DefinitionImages

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.common.definition.DefinitionImages
All Implemented Interfaces:
CommonSharedImagesConstants

public class DefinitionImages
extends Object
implements CommonSharedImagesConstants

Manages images for definitions. Should be dispose()d when the images are not used any more.

Author:
Simon Templer

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.ui.common.CommonSharedImagesConstants
IMG_ADD, IMG_DECORATION_MANDATORY, IMG_DEFINITION_ABSTRACT_FT, IMG_DEFINITION_ABSTRACT_TYPE, IMG_DEFINITION_CHOICE, IMG_DEFINITION_CONCRETE_FT, IMG_DEFINITION_CONCRETE_TYPE, IMG_DEFINITION_GEOMETRIC_PROPERTY, IMG_DEFINITION_GROUP, IMG_DEFINITION_NUMERIC_PROPERTY, IMG_DEFINITION_STRING_PROPERTY, IMG_META, IMG_PLAY, IMG_REMOVE, IMG_STOP
 
Constructor Summary
DefinitionImages()
           
 
Method Summary
 void dispose()
          Dispose all images.
 org.eclipse.swt.graphics.Image getImage(Definition<?> def)
          Get the image for the given definition
 org.eclipse.swt.graphics.Image getImage(EntityDefinition entityDef)
          Get the image for the given entity definition
protected  org.eclipse.swt.graphics.Image getImage(EntityDefinition entityDef, Definition<?> def)
          Get the image for the given definition
 boolean isSuppressMandatory()
           
 void setSuppressMandatory(boolean suppressMandatory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionImages

public DefinitionImages()
Method Detail

dispose

public void dispose()
Dispose all images. getImage(Definition) may not be called after calling this method.


getImage

public org.eclipse.swt.graphics.Image getImage(Definition<?> def)
Get the image for the given definition

Parameters:
def - the definition
Returns:
the image, may be null

getImage

public org.eclipse.swt.graphics.Image getImage(EntityDefinition entityDef)
Get the image for the given entity definition

Parameters:
entityDef - the entity definition
Returns:
the image, may be null

getImage

protected org.eclipse.swt.graphics.Image getImage(EntityDefinition entityDef,
                                                  Definition<?> def)
Get the image for the given definition

Parameters:
entityDef - the entity definition, may be null
def - the definition
Returns:
the image, may be null

isSuppressMandatory

public boolean isSuppressMandatory()
Returns:
the suppressMandatory

setSuppressMandatory

public void setSuppressMandatory(boolean suppressMandatory)
Parameters:
suppressMandatory - the suppressMandatory to set

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d