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
creation : 17 mai. 08
-
Field Summary
Fields inherited from class org.eclipse.draw2d.AbstractBorder
tempRect
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.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
Methods inherited from class org.eclipse.draw2d.AbstractBackground
paint
Methods inherited from class org.eclipse.draw2d.AbstractBorder
getPaintRectangle, getPreferredSize, isOpaque
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.draw2d.Border
getPreferredSize, isOpaque, paint
-
Constructor Details
-
AlphaDropShadowBorder
public AlphaDropShadowBorder()
-
-
Method Details
-
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
-