Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by PolygonDecoration
      extended by com.ibm.etools.systems.application.visual.editor.ui.figures.impl.CircleDecoration
All Implemented Interfaces:
IFeedbackFigure

public class CircleDecoration
extends PolygonDecoration
implements IFeedbackFigure

The circle anchor decoration that is used as the source decoration for Application Diagram connection lines.


Field Summary
static String copyright
           
protected static int defaultDia
           
 
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
CircleDecoration(IMapMode mapMode)
          Constructor.
CircleDecoration(IMapMode mapMode, int diameter)
          Constructor.
 
Method Summary
protected  void drawFigure(Rectangle rectangle, Graphics graphics, String feedbackState)
           
protected  Color getAssociatedSourceColor()
          Get associated source color.
protected  Color getAssociatedTargetColor()
          Get associated target color.
 Rectangle getFeedbackFigureBounds()
          Return feedback figure bound.
 String getFeedbackState()
          Return feedback state.
 Color getFillColor(String feedbackState)
          Retrun color for specific feedback state.
protected  void init()
          Initialize the figure.
 void paintFigure(Graphics graphics)
          Paint figure.
 void setBaseColor(Color color)
          Set default color.
 void setFeedbackState(String state, EditPart requester)
          Set feedback state which is requested by the requester.
 void setForegroundColor(Color color)
          Set ForegroundColor.
 void setHoverColor(Color hoverColor)
          Set hover over color
 void setSelectedColor(Color selectedColor)
          Set selected color
 
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

defaultDia

protected static int defaultDia
Constructor Detail

CircleDecoration

public CircleDecoration(IMapMode mapMode)
Constructor.


CircleDecoration

public CircleDecoration(IMapMode mapMode,
                        int diameter)
Constructor.

Method Detail

init

protected void init()
Initialize the figure.


setForegroundColor

public void setForegroundColor(Color color)
Set ForegroundColor.


setBaseColor

public void setBaseColor(Color color)
Set default color. This methods will not cause repaint(). Caller need to call repaint()explicitly if it is necessary. explicitly


setHoverColor

public void setHoverColor(Color hoverColor)
Set hover over color


setSelectedColor

public void setSelectedColor(Color selectedColor)
Set selected color


paintFigure

public void paintFigure(Graphics graphics)
Paint figure.


drawFigure

protected void drawFigure(Rectangle rectangle,
                          Graphics graphics,
                          String feedbackState)
Parameters:
rectangle -
feedbackState -

getFillColor

public Color getFillColor(String feedbackState)
Retrun color for specific feedback state.

Parameters:
feedbackState -
Returns:

getFeedbackFigureBounds

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

Specified by:
getFeedbackFigureBounds in interface IFeedbackFigure

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()
Get associated source color.


getAssociatedTargetColor

protected Color getAssociatedTargetColor()
Get associated target color.


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.