Class RedmondShelfRenderer
java.lang.Object
org.eclipse.nebula.widgets.pshelf.AbstractRenderer
org.eclipse.nebula.widgets.pshelf.RedmondShelfRenderer
public class RedmondShelfRenderer extends AbstractRenderer
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.
- 
Constructor SummaryConstructors Constructor Description RedmondShelfRenderer()
- 
Method SummaryModifier and Type Method Description org.eclipse.swt.graphics.PointcomputeSize(org.eclipse.swt.graphics.GC gc, int wHint, int hHint, java.lang.Object value)Returns the size of the given value's visual representation.voiddispose()Disposes of any resources managed by this renderer.org.eclipse.swt.graphics.FontgetFont()org.eclipse.swt.graphics.ColorgetForeground()org.eclipse.swt.graphics.ColorgetGradient1()org.eclipse.swt.graphics.ColorgetGradient2()org.eclipse.swt.graphics.ColorgetHoverForeground()org.eclipse.swt.graphics.ColorgetHoverGradient1()org.eclipse.swt.graphics.ColorgetHoverGradient2()org.eclipse.swt.graphics.ColorgetLineColor()org.eclipse.swt.graphics.FontgetSelectedFont()org.eclipse.swt.graphics.ColorgetSelectedForeground()org.eclipse.swt.graphics.ColorgetSelectedGradient1()org.eclipse.swt.graphics.ColorgetSelectedGradient2()voidinitialize(org.eclipse.swt.widgets.Control control)Performs any initialization logic (such as creating new colors or fonts).voidpaint(org.eclipse.swt.graphics.GC gc, java.lang.Object value)Paints the visual representation of the given value on the given GC.voidsetFont(org.eclipse.swt.graphics.Font font)voidsetForeground(org.eclipse.swt.graphics.Color foreground)Sets text color for non-selected items.voidsetGradient1(org.eclipse.swt.graphics.Color gradient1)voidsetGradient2(org.eclipse.swt.graphics.Color gradient2)voidsetHoverForeground(org.eclipse.swt.graphics.Color hoverForeground)Sets text color for the hovered item.voidsetHoverGradient1(org.eclipse.swt.graphics.Color hoverGradient1)voidsetHoverGradient2(org.eclipse.swt.graphics.Color hoverGradient2)voidsetLineColor(org.eclipse.swt.graphics.Color lineColor)voidsetSelectedFont(org.eclipse.swt.graphics.Font selectedFont)voidsetSelectedForeground(org.eclipse.swt.graphics.Color selectedForeground)Sets text color for the selected item.voidsetSelectedGradient1(org.eclipse.swt.graphics.Color selectedGradient1)voidsetSelectedGradient2(org.eclipse.swt.graphics.Color selectedGradient2)Methods inherited from class org.eclipse.nebula.widgets.pshelf.AbstractRenderergetBounds, getSize, isDisposed, isExpanded, isFocus, isHover, isMouseDown, isSelected, setBounds, setBounds, setDisposed, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
- 
Constructor Details- 
RedmondShelfRendererpublic RedmondShelfRenderer()
 
- 
- 
Method Details- 
computeSizepublic org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.graphics.GC gc, int wHint, int hHint, java.lang.Object value)Returns the size of the given value's visual representation.- Specified by:
- computeSizein class- AbstractRenderer
- Parameters:
- gc- convenience GC for string and text extents
- wHint- given width (or SWT.DEFAULT)
- hHint- given height (or SWT.DEFAULT)
- value- value to be sized
- Returns:
- the size
 
- 
paintpublic void paint(org.eclipse.swt.graphics.GC gc, java.lang.Object value)Description copied from class:AbstractRendererPaints the visual representation of the given value on the given GC. The actual class of the value object is determined by the use of the implementing class.Implementors need to respect the bounds values that may have been specified. The bounds values may affect the x and y values for all drawing operations as well as the width and heights. Implementors may use a Transformto translate the coordinates of all the drawing operations, otherwise they will need to offset each draw.- Specified by:
- paintin class- AbstractRenderer
- Parameters:
- gc- GC to paint with
- value- the value being painted
- See Also:
- AbstractRenderer.paint(org.eclipse.swt.graphics.GC, java.lang.Object)
 
- 
initializepublic void initialize(org.eclipse.swt.widgets.Control control)Description copied from class:AbstractRendererPerforms any initialization logic (such as creating new colors or fonts).- Specified by:
- initializein class- AbstractRenderer
- Parameters:
- control- control that is using the renderer
- See Also:
- AbstractRenderer.initialize(org.eclipse.swt.widgets.Control)
 
- 
disposepublic void dispose()Description copied from class:AbstractRendererDisposes of any resources managed by this renderer.- Overrides:
- disposein class- AbstractRenderer
- See Also:
- AbstractRenderer.dispose()
 
- 
getLineColorpublic org.eclipse.swt.graphics.Color getLineColor()
- 
setLineColorpublic void setLineColor(org.eclipse.swt.graphics.Color lineColor)
- 
getFontpublic org.eclipse.swt.graphics.Font getFont()
- 
setFontpublic void setFont(org.eclipse.swt.graphics.Font font)
- 
getGradient1public org.eclipse.swt.graphics.Color getGradient1()
- 
setGradient1public void setGradient1(org.eclipse.swt.graphics.Color gradient1)
- 
getGradient2public org.eclipse.swt.graphics.Color getGradient2()
- 
setGradient2public void setGradient2(org.eclipse.swt.graphics.Color gradient2)
- 
getHoverGradient1public org.eclipse.swt.graphics.Color getHoverGradient1()
- 
setHoverGradient1public void setHoverGradient1(org.eclipse.swt.graphics.Color hoverGradient1)
- 
getHoverGradient2public org.eclipse.swt.graphics.Color getHoverGradient2()
- 
setHoverGradient2public void setHoverGradient2(org.eclipse.swt.graphics.Color hoverGradient2)
- 
getSelectedFontpublic org.eclipse.swt.graphics.Font getSelectedFont()
- 
setSelectedFontpublic void setSelectedFont(org.eclipse.swt.graphics.Font selectedFont)
- 
getSelectedForegroundpublic org.eclipse.swt.graphics.Color getSelectedForeground()
- 
setSelectedForegroundpublic void setSelectedForeground(org.eclipse.swt.graphics.Color selectedForeground)Sets text color for the selected item.- Parameters:
- selectedForeground- Can be- null, foreground color of the parent is used in that case.
 
- 
getHoverForegroundpublic org.eclipse.swt.graphics.Color getHoverForeground()
- 
setHoverForegroundpublic void setHoverForeground(org.eclipse.swt.graphics.Color hoverForeground)Sets text color for the hovered item.- Parameters:
- hoverForeground- Can be- null, foreground color of the parent is used in that case.
 
- 
getForegroundpublic org.eclipse.swt.graphics.Color getForeground()
- 
setForegroundpublic void setForeground(org.eclipse.swt.graphics.Color foreground)Sets text color for non-selected items.- Parameters:
- foreground- Can be- null, foreground color of the parent is used in that case.
 
- 
getSelectedGradient1public org.eclipse.swt.graphics.Color getSelectedGradient1()
- 
setSelectedGradient1public void setSelectedGradient1(org.eclipse.swt.graphics.Color selectedGradient1)
- 
getSelectedGradient2public org.eclipse.swt.graphics.Color getSelectedGradient2()
- 
setSelectedGradient2public void setSelectedGradient2(org.eclipse.swt.graphics.Color selectedGradient2)
 
-