Class AbstractRenderer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.swt.graphics.Rectangle bounds
      The bounds the renderer paints on.
      private org.eclipse.swt.widgets.Display display
      Display used to create GC to perform painting.
      private boolean expanded
      Expansion state.
      private boolean focus
      Renderer has focus.
      private boolean hover
      Hover state.
      private boolean mouseDown
      Mouse down on the renderer area.
      private boolean selected
      Selection state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.swt.graphics.Rectangle getBounds()
      Returns the bounds.
      org.eclipse.swt.widgets.Display getDisplay()
      Sets the display for the renderer.
      org.eclipse.swt.graphics.Point getSize()
      Returns the size.
      boolean isExpanded()
      Returns the expansion state.
      boolean isFocus()
      Returns a boolean value indicating if this renderer has focus.
      boolean isHover()
      Returns the hover state.
      boolean isMouseDown()
      Returns the boolean value indicating if the renderer has the mouseDown state.
      boolean isSelected()
      Returns the boolean state indicating if the selected state is set.
      void setBounds​(int x, int y, int width, int height)
      Sets the bounds of the drawing.
      void setBounds​(org.eclipse.swt.graphics.Rectangle bounds)
      Sets the bounds of the drawing.
      void setDisplay​(org.eclipse.swt.widgets.Display display)
      Sets the display.
      void setExpanded​(boolean expanded)
      Sets the expansion state of this renderer.
      void setFocus​(boolean focus)
      Sets focus state.
      void setHover​(boolean hover)
      Sets the hover state.
      void setLocation​(int x, int y)
      Sets the location of the drawing.
      void setLocation​(org.eclipse.swt.graphics.Point location)
      Sets the location of the drawing.
      void setMouseDown​(boolean mouseDown)
      Sets the hover state.
      void setSelected​(boolean selected)
      Sets the selected state.
      void setSize​(int width, int height)
      Sets the area of the drawing.
      void setSize​(org.eclipse.swt.graphics.Point size)
      Sets the area of the drawing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hover

        private boolean hover
        Hover state.
      • focus

        private boolean focus
        Renderer has focus.
      • mouseDown

        private boolean mouseDown
        Mouse down on the renderer area.
      • selected

        private boolean selected
        Selection state.
      • expanded

        private boolean expanded
        Expansion state.
      • bounds

        private org.eclipse.swt.graphics.Rectangle bounds
        The bounds the renderer paints on.
      • display

        private org.eclipse.swt.widgets.Display display
        Display used to create GC to perform painting.
    • Constructor Detail

      • AbstractRenderer

        public AbstractRenderer()
    • Method Detail

      • getBounds

        public org.eclipse.swt.graphics.Rectangle getBounds()
        Returns the bounds.
        Returns:
        Rectangle describing the bounds.
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int width,
                              int height)
        Sets the bounds of the drawing.
        Specified by:
        setBounds in interface IRenderer
        Parameters:
        x - X coordinate.
        y - Y coordinate.
        width - Width.
        height - Height.
      • setBounds

        public void setBounds​(org.eclipse.swt.graphics.Rectangle bounds)
        Sets the bounds of the drawing.
        Specified by:
        setBounds in interface IRenderer
        Parameters:
        bounds - Bounds.
      • getSize

        public org.eclipse.swt.graphics.Point getSize()
        Returns the size.
        Returns:
        size of the renderer.
      • setLocation

        public void setLocation​(int x,
                                int y)
        Sets the location of the drawing.
        Specified by:
        setLocation in interface IRenderer
        Parameters:
        x - X.
        y - Y.
      • setLocation

        public void setLocation​(org.eclipse.swt.graphics.Point location)
        Sets the location of the drawing.
        Specified by:
        setLocation in interface IRenderer
        Parameters:
        location - Location.
      • setSize

        public void setSize​(int width,
                            int height)
        Sets the area of the drawing.
        Specified by:
        setSize in interface IRenderer
        Parameters:
        width - Width.
        height - Height.
      • setSize

        public void setSize​(org.eclipse.swt.graphics.Point size)
        Sets the area of the drawing.
        Specified by:
        setSize in interface IRenderer
        Parameters:
        size - Size.
      • isFocus

        public boolean isFocus()
        Returns a boolean value indicating if this renderer has focus.
        Returns:
        True/false if has focus.
      • setFocus

        public void setFocus​(boolean focus)
        Sets focus state.
        Specified by:
        setFocus in interface IRenderer
        Parameters:
        focus - focus state.
      • isHover

        public boolean isHover()
        Returns the hover state.
        Returns:
        Is the renderer in the hover state.
      • setHover

        public void setHover​(boolean hover)
        Sets the hover state.
        Specified by:
        setHover in interface IRenderer
        Parameters:
        hover - Hover state.
      • isMouseDown

        public boolean isMouseDown()
        Returns the boolean value indicating if the renderer has the mouseDown state.
        Returns:
        mouse down state.
      • setMouseDown

        public void setMouseDown​(boolean mouseDown)
        Sets the hover state.
        Specified by:
        setMouseDown in interface IRenderer
        Parameters:
        mouseDown - Mouse state.
      • isSelected

        public boolean isSelected()
        Returns the boolean state indicating if the selected state is set.
        Returns:
        selected state.
      • setSelected

        public void setSelected​(boolean selected)
        Sets the selected state.
        Specified by:
        setSelected in interface IRenderer
        Parameters:
        selected - Selection state.
      • isExpanded

        public boolean isExpanded()
        Returns the expansion state.
        Returns:
        Returns the expanded.
      • setExpanded

        public void setExpanded​(boolean expanded)
        Sets the expansion state of this renderer.
        Specified by:
        setExpanded in interface IRenderer
        Parameters:
        expanded - The expanded to set.
      • getDisplay

        public org.eclipse.swt.widgets.Display getDisplay()
        Sets the display for the renderer.
        Returns:
        Returns the display.
      • setDisplay

        public void setDisplay​(org.eclipse.swt.widgets.Display display)
        Sets the display.
        Specified by:
        setDisplay in interface IRenderer
        Parameters:
        display - Display.