Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.ui.figures.impl
Class AbstractFeedbackNodeFigure

java.lang.Object
  extended by NodeFigure
      extended by com.ibm.etools.systems.application.visual.editor.ui.figures.impl.AbstractFeedbackNodeFigure
All Implemented Interfaces:
IFeedbackFigure
Direct Known Subclasses:
AbstractCollapsableFigure, CallableBlockFigure, DefaultArtifactNodeFigure

public abstract class AbstractFeedbackNodeFigure
extends NodeFigure
implements IFeedbackFigure

The base node figure that supports feedback rendering. Supported feedback states are defined in IFeedbackFigure.


Field Summary
static String copyright
           
protected  IGraphicalEditPart editPart
           
protected  IFeedbackStateManager feedbackStateManager
           
protected  IMapMode mapMode
           
 
Fields inherited from interface com.ibm.etools.systems.application.visual.editor.ui.figures.IFeedbackFigure
STATE_ASSOCIATED_CLEAR, STATE_ASSOCIATED_SOURCE, STATE_ASSOCIATED_TARGET, STATE_HOVER, STATE_NONE, STATE_SELECTED, STATE_TARGET, STATE_TARGET_HOVER
 
Constructor Summary
AbstractFeedbackNodeFigure(IMapMode mapMode, IGraphicalEditPart editPart)
          Constructor.
 
Method Summary
protected  Color blendColor(Color originalColor, int ratio)
          Blend color to make it look better in diagram.
protected  Color getAssociatedSourceColor()
          Getter of associated source color.
protected  Color getAssociatedTargetColor()
          Getter of associated target color.
abstract  Rectangle getFeedbackFigureBounds()
          Return feedback figure bound.
 String getFeedbackState()
          Return feedback state.
 void setFeedbackState(String state, EditPart requester)
          Set feedback state which is requested by the requester.
 void setFeedbackStateManager(IFeedbackStateManager feedbackStateManager)
          Set FeedbackStateManager.
 
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

mapMode

protected IMapMode mapMode

editPart

protected IGraphicalEditPart editPart

feedbackStateManager

protected IFeedbackStateManager feedbackStateManager
Constructor Detail

AbstractFeedbackNodeFigure

public AbstractFeedbackNodeFigure(IMapMode mapMode,
                                  IGraphicalEditPart editPart)
Constructor.

Method Detail

setFeedbackStateManager

public void setFeedbackStateManager(IFeedbackStateManager feedbackStateManager)
Set FeedbackStateManager.


blendColor

protected Color blendColor(Color originalColor,
                           int ratio)
Blend color to make it look better in diagram.


getFeedbackState

public String getFeedbackState()
Description copied from interface: IFeedbackFigure
Return feedback state.

Specified by:
getFeedbackState in interface IFeedbackFigure

setFeedbackState

public void setFeedbackState(String state,
                             EditPart requester)
Description copied from interface: IFeedbackFigure
Set feedback state which is requested by the requester.

Specified by:
setFeedbackState in interface IFeedbackFigure

getAssociatedSourceColor

protected Color getAssociatedSourceColor()
Getter of associated source color.


getAssociatedTargetColor

protected Color getAssociatedTargetColor()
Getter of associated target color.


getFeedbackFigureBounds

public abstract Rectangle getFeedbackFigureBounds()
Description copied from interface: IFeedbackFigure
Return feedback figure bound.

Specified by:
getFeedbackFigureBounds in interface IFeedbackFigure

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.