Class 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
    • Field Summary

      • Fields inherited from class org.eclipse.draw2d.AbstractBorder

        tempRect
    • 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.AbstractBackground

        paint
      • Methods inherited from class org.eclipse.draw2d.AbstractBorder

        getPaintRectangle, getPreferredSize, isOpaque
      • Methods inherited from interface org.eclipse.draw2d.Border

        getPreferredSize, isOpaque, paint
    • Constructor Detail

      • AlphaDropShadowBorder

        public AlphaDropShadowBorder()
    • Method Detail

      • setShouldDrawDropShadow

        public void setShouldDrawDropShadow​(boolean drawDropShadow)
        Specified by:
        setShouldDrawDropShadow in interface org.eclipse.gmf.runtime.draw2d.ui.figures.DropShadowBorder
      • shouldDrawDropShadow

        public boolean shouldDrawDropShadow()
        Specified by:
        shouldDrawDropShadow in interface org.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 interface org.eclipse.draw2d.Border
        Overrides:
        getInsets in class org.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 interface org.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 class org.eclipse.draw2d.AbstractBackground