Class AbstractRenderer

java.lang.Object
org.eclipse.nebula.widgets.pgroup.AbstractRenderer
Direct Known Subclasses:
AbstractToolItemRenderer, ChevronsToggleRenderer, MinMaxToggleRenderer, TreeNodeToggleRenderer, TwisteToggleRenderer

public abstract class AbstractRenderer
extends java.lang.Object

NOTE: THIS WIDGET AND ITS API ARE STILL UNDER DEVELOPMENT. THIS IS A PRE-RELEASE ALPHA VERSION. USERS SHOULD EXPECT API CHANGES IN FUTURE VERSIONS.

Base implementation of IRenderer. Provides management of a few values.
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractRenderer()  
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.graphics.Rectangle getBounds()
    Returns the bounds.
    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.
    abstract void paint​(org.eclipse.swt.graphics.GC gc, java.lang.Object value)  
    void setBounds​(int x, int y, int width, int height)
    void setBounds​(org.eclipse.swt.graphics.Rectangle bounds)  
    void setExpanded​(boolean expanded)
    Sets the expansion state of this renderer.
    void setFocus​(boolean focus)  
    void setHover​(boolean hover)  
    void setLocation​(int x, int y)  
    void setLocation​(org.eclipse.swt.graphics.Point location)  
    void setMouseDown​(boolean mouseDown)  
    void setSelected​(boolean selected)  
    void setSize​(int width, int height)  
    void setSize​(org.eclipse.swt.graphics.Point size)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • paint

      public abstract void paint​(org.eclipse.swt.graphics.GC gc, java.lang.Object value)
    • 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)
    • setBounds

      public void setBounds​(org.eclipse.swt.graphics.Rectangle bounds)
      Parameters:
      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)
      Parameters:
      x -
      y -
    • setLocation

      public void setLocation​(org.eclipse.swt.graphics.Point location)
      Parameters:
      location -
    • setSize

      public void setSize​(int width, int height)
      Parameters:
      width -
      height -
    • setSize

      public void setSize​(org.eclipse.swt.graphics.Point size)
      Parameters:
      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)
      Parameters:
      focus -
    • isHover

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

      public void setHover​(boolean hover)
      Parameters:
      hover -
    • 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)
      Parameters:
      mouseDown -
    • isSelected

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

      public void setSelected​(boolean selected)
      Parameters:
      selected -
    • 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.
      Parameters:
      expanded - The expanded to set.