Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.providers
Class DefaultSystemIconProvider

java.lang.Object
  extended by com.ibm.etools.systems.application.visual.editor.providers.DefaultSystemIconProvider

public class DefaultSystemIconProvider
extends Object

Default icon provider for Application Diagram.


Field Summary
static String copyright
           
 
Constructor Summary
DefaultSystemIconProvider()
           
 
Method Summary
 void addProviderChangeListener(IProviderChangeListener listener)
           
 Image getIcon(IAdaptable hint, int flags)
           
protected  IconRetriever getIconRetriever()
          Get icon retriever.
protected  Image getImage(String mappedImageConstants, int flags)
          Get image from mapped image constants.
protected  String getMappedImageConstants(EObject semanticElement)
          Get icon for given model element.
protected  boolean is12x12(int flags)
          Return true if the flag is 12x12.
protected  boolean is16x16(int flags)
          Return true if the flag is 16x16.
protected  boolean is24x24(int flags)
          Return true if the flag is 24x24.
protected  boolean isSupported(Object semantic)
          Check if the given semantic object is supported.
protected  boolean isViewTypeSupported(String viewType)
          Check if the given view type is supported.
 boolean provides(IOperation operation)
           
 void removeProviderChangeListener(IProviderChangeListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

DefaultSystemIconProvider

public DefaultSystemIconProvider()
Method Detail

getIcon

public Image getIcon(IAdaptable hint,
                     int flags)

getImage

protected Image getImage(String mappedImageConstants,
                         int flags)
Get image from mapped image constants. This method can be override to use different helper to get image.

Parameters:
mappedImageConstants - the constants for retrieving image
flags - indicates the size
Returns:
Image

getIconRetriever

protected IconRetriever getIconRetriever()
Get icon retriever.


is16x16

protected final boolean is16x16(int flags)
Return true if the flag is 16x16.


is12x12

protected final boolean is12x12(int flags)
Return true if the flag is 12x12.


is24x24

protected final boolean is24x24(int flags)
Return true if the flag is 24x24.


getMappedImageConstants

protected String getMappedImageConstants(EObject semanticElement)
Get icon for given model element.


addProviderChangeListener

public void addProviderChangeListener(IProviderChangeListener listener)

provides

public boolean provides(IOperation operation)

isViewTypeSupported

protected boolean isViewTypeSupported(String viewType)
Check if the given view type is supported. This method is used when the corresponding view does not have semantic element in ApplicationModel, such as Aggregate connection.

Parameters:
viewType - : view type
Returns:
true if supported, false otherwise.

isSupported

protected boolean isSupported(Object semantic)
Check if the given semantic object is supported.

Parameters:
semantic - model element
Returns:
true if supported, false otherwise.

removeProviderChangeListener

public void removeProviderChangeListener(IProviderChangeListener listener)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.