Class DefaultGalleryGroupRenderer


  • public class DefaultGalleryGroupRenderer
    extends AbstractGridGroupRenderer

    Default group renderer used by the Gallery widget. Supports multi-line text, images, animation and several other features.

    NOTE: THIS WIDGET AND ITS API ARE STILL UNDER DEVELOPMENT.

    • Field Detail

      • PARENTHESIS_OPEN

        private static final java.lang.String PARENTHESIS_OPEN
        See Also:
        Constant Field Values
      • PARENTHESIS_CLOSE

        private static final java.lang.String PARENTHESIS_CLOSE
        See Also:
        Constant Field Values
      • fontHeight

        private int fontHeight
      • titleHeight

        private int titleHeight
      • titleForeground

        private org.eclipse.swt.graphics.Color titleForeground
      • descriptionColor

        private org.eclipse.swt.graphics.Color descriptionColor
      • titleBackground

        private org.eclipse.swt.graphics.Color titleBackground
      • titleBackgroundGradient

        private boolean titleBackgroundGradient
      • titleBackground2

        private org.eclipse.swt.graphics.Color titleBackground2
      • maxImageWidth

        private int maxImageWidth
      • maxImageHeight

        private int maxImageHeight
      • imageSize

        private org.eclipse.swt.graphics.Point imageSize
      • fillIfSingleColumn

        private boolean fillIfSingleColumn
        If true, this flag will enable a special behavior when the items are so large that only one can fit in the client area. In this case, items are always resized and centered to fit best in the client area.
      • fill

        private boolean fill
        This flag is set during layout, if fillIfSigle is true, and if there is only one column or row
      • marginCalculated

        boolean marginCalculated
        True if margins have already been calculated. Prevents margins calculation for each group
      • font

        private org.eclipse.swt.graphics.Font font
      • animation

        protected boolean animation
      • animationLength

        protected int animationLength
      • animationOpenMovement

        protected IMovement animationOpenMovement
      • animationCloseMovement

        protected IMovement animationCloseMovement
    • Constructor Detail

      • DefaultGalleryGroupRenderer

        public DefaultGalleryGroupRenderer()
        This group renderer draws a title line, then items in a grid layout.