Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
org.ros.model.ros_package.diagram.edit.parts.NodeEditPart.NodeFigure2 Class Reference
Inheritance diagram for org.ros.model.ros_package.diagram.edit.parts.NodeEditPart.NodeFigure2:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void fillVerticalGradientRoundedRectangle (Graphics graphics, Rectangle bounds, Dimension corner, Color c1, Color c2)
WrappingLabel getFigureNodeNameFigure ()
RectangleFigure getFigureParameterCompartmentFigure ()
Color mixColor (Color baseColor, Color mixinColor, int ratio)
 NodeFigure2 ()
void paintFigure (Graphics graphics)

Static Public Attributes

static final int BLUR_SHADOW_WIDTH = 5

Protected Member Functions

void fillShape (Graphics graphics)

Private Member Functions

void createContents ()
void drawBlurredShadow (Graphics graphics)

Private Attributes

WrappingLabel fFigureNodeNameFigure
RectangleFigure fFigureParameterCompartmentFigure

Detailed Description

Definition at line 443 of file org.ros.model.ros_package.diagram/src/org/ros/model/ros_package/diagram/edit/parts/NodeEditPart.java.


Constructor & Destructor Documentation


Member Function Documentation

Fill the shape with a vertical color gradient. The gradient mixes a white into the configured background color.

Definition at line 521 of file org.ros.model.ros_package.diagram/src/org/ros/model/ros_package/diagram/edit/parts/NodeEditPart.java.

void org.ros.model.ros_package.diagram.edit.parts.NodeEditPart.NodeFigure2.fillVerticalGradientRoundedRectangle ( Graphics  graphics,
Rectangle  bounds,
Dimension  corner,
Color  c1,
Color  c2 
) [inline]

This function fills a rounded rectangle with a vertical gradient. This implementation does not use the gradient mechanism based on background patterns since they do not work stable on all systems.

Parameters:
graphics
bounds
corner
c1
c2

Definition at line 458 of file org.ros.model.ros_package.diagram/src/org/ros/model/ros_package/diagram/edit/parts/NodeEditPart.java.

Color org.ros.model.ros_package.diagram.edit.parts.NodeEditPart.NodeFigure2.mixColor ( Color  baseColor,
Color  mixinColor,
int  ratio 
) [inline]

Calculates a mixed color from two colors by interpolating the rgb parts using a mix ratio.

Parameters:
baseColor
mixinColor
ratioa value from 0 to 255 that defines the mix ratio. Using 0 will return the base color and 255 the mixin color.
Returns:

Definition at line 500 of file org.ros.model.ros_package.diagram/src/org/ros/model/ros_package/diagram/edit/parts/NodeEditPart.java.


Member Data Documentation


The documentation for this class was generated from the following file:


bride_plugin_source
Author(s): Alexander Bubeck
autogenerated on Sun Oct 5 2014 22:38:35