Class AlphaDropShadowBorder
- java.lang.Object
-
- org.eclipse.draw2d.AbstractBorder
-
- org.eclipse.draw2d.AbstractBackground
-
- org.modelversioning.emfprofile.diagram.layout.AlphaDropShadowBorder
-
- All Implemented Interfaces:
org.eclipse.draw2d.Border
,org.eclipse.gmf.runtime.draw2d.ui.figures.DropShadowBorder
,org.eclipse.gmf.runtime.draw2d.ui.internal.figures.TransparentBorder
public class AlphaDropShadowBorder extends org.eclipse.draw2d.AbstractBackground implements org.eclipse.gmf.runtime.draw2d.ui.figures.DropShadowBorder
A border using a shadow
creation : 17 mai. 08
-
-
Constructor Summary
Constructors Constructor Description AlphaDropShadowBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.draw2d.geometry.Insets
getInsets(org.eclipse.draw2d.IFigure figure)
Method for determining the inset the border will take up on the shape.org.eclipse.draw2d.geometry.Insets
getTransparentInsets(org.eclipse.draw2d.IFigure figure)
void
paintBackground(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Insets insets)
void
setShouldDrawDropShadow(boolean drawDropShadow)
boolean
shouldDrawDropShadow()
-
Methods inherited from class org.eclipse.draw2d.AbstractBorder
getPaintRectangle, getPreferredSize, isOpaque
-
-
-
-
Method Detail
-
setShouldDrawDropShadow
public void setShouldDrawDropShadow(boolean drawDropShadow)
- Specified by:
setShouldDrawDropShadow
in interfaceorg.eclipse.gmf.runtime.draw2d.ui.figures.DropShadowBorder
-
shouldDrawDropShadow
public boolean shouldDrawDropShadow()
- Specified by:
shouldDrawDropShadow
in interfaceorg.eclipse.gmf.runtime.draw2d.ui.figures.DropShadowBorder
-
getInsets
public org.eclipse.draw2d.geometry.Insets getInsets(org.eclipse.draw2d.IFigure figure)
Method for determining the inset the border will take up on the shape.- Specified by:
getInsets
in interfaceorg.eclipse.draw2d.Border
- Overrides:
getInsets
in classorg.eclipse.draw2d.AbstractBackground
- Parameters:
figure
- Figure that will be inset from the border- Returns:
- Insets the Insets for the border on the given figure.
-
getTransparentInsets
public org.eclipse.draw2d.geometry.Insets getTransparentInsets(org.eclipse.draw2d.IFigure figure)
- Specified by:
getTransparentInsets
in interfaceorg.eclipse.gmf.runtime.draw2d.ui.internal.figures.TransparentBorder
-
paintBackground
public void paintBackground(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics graphics, org.eclipse.draw2d.geometry.Insets insets)
- Overrides:
paintBackground
in classorg.eclipse.draw2d.AbstractBackground
-
-