| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_201) on Thu Jul 23 15:59:01 CEST 2020 --> |
| <title>DefaultGalleryItemRenderer</title> |
| <meta name="date" content="2020-07-23"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="DefaultGalleryItemRenderer"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/DefaultGalleryItemRenderer.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryGroupRenderer.html" title="class in org.eclipse.nebula.widgets.gallery"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/eclipse/nebula/widgets/gallery/Gallery.html" title="class in org.eclipse.nebula.widgets.gallery"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html" target="_top">Frames</a></li> |
| <li><a href="DefaultGalleryItemRenderer.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.nebula.widgets.gallery</div> |
| <h2 title="Class DefaultGalleryItemRenderer" class="title">Class DefaultGalleryItemRenderer</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html" title="class in org.eclipse.nebula.widgets.gallery">org.eclipse.nebula.widgets.gallery.AbstractGalleryItemRenderer</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.nebula.widgets.gallery.DefaultGalleryItemRenderer</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">DefaultGalleryItemRenderer</span> |
| extends <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html" title="class in org.eclipse.nebula.widgets.gallery">AbstractGalleryItemRenderer</a></pre> |
| <div class="block"><p> |
| Default item renderer used by the Gallery widget. Supports single line text, |
| image, drop shadows and decorators. |
| </p> |
| <p> |
| Decorator images can be set with <code>Widget.setData(String, Object)</code> |
| by using the following keys : |
| </p> |
| <ul> |
| <li>org.eclipse.nebula.widget.gallery.bottomLeftOverlay</li> |
| <li>org.eclipse.nebula.widget.gallery.bottomRightOverlay</li> |
| <li>org.eclipse.nebula.widget.gallery.topLeftOverlay</li> |
| <li>org.eclipse.nebula.widget.gallery.topRightOverlay</li> |
| </ul> |
| <p> |
| Supported types are org.eclipse.swt.Image for one single decorator and |
| org.eclipse.swt.Image[] for multiple decorators. |
| </p> |
| <p> |
| NOTE: THIS WIDGET AND ITS API ARE STILL UNDER DEVELOPMENT. |
| </p></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#backgroundColor">backgroundColor</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>(package private) boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#dropShadows">dropShadows</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#dropShadowsAlphaStep">dropShadowsAlphaStep</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected java.util.ArrayList<org.eclipse.swt.graphics.Color></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#dropShadowsColors">dropShadowsColors</a></span></code> |
| <div class="block">Stores colors used in drop shadows</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#dropShadowsSize">dropShadowsSize</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>(package private) org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#foregroundColor">foregroundColor</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#selectionBackgroundColor">selectionBackgroundColor</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>(package private) org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#selectionForegroundColor">selectionForegroundColor</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#selectionRadius">selectionRadius</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>(package private) boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#showLabels">showLabels</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#showRoundedSelectionCorners">showRoundedSelectionCorners</a></span></code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.eclipse.nebula.widgets.gallery.AbstractGalleryItemRenderer"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.eclipse.nebula.widgets.gallery.<a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html" title="class in org.eclipse.nebula.widgets.gallery">AbstractGalleryItemRenderer</a></h3> |
| <code><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#EMPTY_STRING">EMPTY_STRING</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#gallery">gallery</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#galleryBackgroundColor">galleryBackgroundColor</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#galleryForegroundColor">galleryForegroundColor</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#OVERLAY_BOTTOM_LEFT">OVERLAY_BOTTOM_LEFT</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#OVERLAY_BOTTOM_RIGHT">OVERLAY_BOTTOM_RIGHT</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#OVERLAY_TOP_LEFT">OVERLAY_TOP_LEFT</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#OVERLAY_TOP_RIGHT">OVERLAY_TOP_RIGHT</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#selected">selected</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#DefaultGalleryItemRenderer--">DefaultGalleryItemRenderer</a></span>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#dispose--">dispose</a></span>()</code> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#draw-org.eclipse.swt.graphics.GC-org.eclipse.nebula.widgets.gallery.GalleryItem-int-int-int-int-int-">draw</a></span>(org.eclipse.swt.graphics.GC gc, |
| <a href="../../../../../org/eclipse/nebula/widgets/gallery/GalleryItem.html" title="class in org.eclipse.nebula.widgets.gallery">GalleryItem</a> item, |
| int index, |
| int x, |
| int y, |
| int width, |
| int height)</code> |
| <div class="block">Draws an item.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#getBackgroundColor--">getBackgroundColor</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#getDropShadowsSize--">getDropShadowsSize</a></span>()</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>org.eclipse.swt.graphics.Font</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#getFont--">getFont</a></span>()</code> |
| <div class="block">Returns the font used for drawing all item labels or <tt>null</tt> if |
| system font is used.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#getForegroundColor--">getForegroundColor</a></span>()</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#getSelectionBackgroundColor--">getSelectionBackgroundColor</a></span>()</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>org.eclipse.swt.graphics.Color</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#getSelectionForegroundColor--">getSelectionForegroundColor</a></span>()</code> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#isDropShadows--">isDropShadows</a></span>()</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#isShowLabels--">isShowLabels</a></span>()</code> |
| <div class="block">Returns current label state : enabled or disabled</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#isShowRoundedSelectionCorners--">isShowRoundedSelectionCorners</a></span>()</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setBackgroundColor-org.eclipse.swt.graphics.Color-">setBackgroundColor</a></span>(org.eclipse.swt.graphics.Color backgroundColor)</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setDropShadows-boolean-">setDropShadows</a></span>(boolean dropShadows)</code> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setDropShadowsSize-int-">setDropShadowsSize</a></span>(int dropShadowsSize)</code> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setFont-org.eclipse.swt.graphics.Font-">setFont</a></span>(org.eclipse.swt.graphics.Font font)</code> |
| <div class="block">Set the font for drawing all item labels or <tt>null</tt> to use system |
| font.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setForegroundColor-org.eclipse.swt.graphics.Color-">setForegroundColor</a></span>(org.eclipse.swt.graphics.Color foregroundColor)</code> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setSelectionBackgroundColor-org.eclipse.swt.graphics.Color-">setSelectionBackgroundColor</a></span>(org.eclipse.swt.graphics.Color selectionBackgroundColor)</code> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setSelectionForegroundColor-org.eclipse.swt.graphics.Color-">setSelectionForegroundColor</a></span>(org.eclipse.swt.graphics.Color selectionForegroundColor)</code> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setShowLabels-boolean-">setShowLabels</a></span>(boolean showLabels)</code> |
| <div class="block">Enables / disables labels at the bottom of each item.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setShowRoundedSelectionCorners-boolean-">setShowRoundedSelectionCorners</a></span>(boolean showRoundedSelectionCorners)</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.nebula.widgets.gallery.AbstractGalleryItemRenderer"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.nebula.widgets.gallery.<a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html" title="class in org.eclipse.nebula.widgets.gallery">AbstractGalleryItemRenderer</a></h3> |
| <code><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#drawAllOverlays-org.eclipse.swt.graphics.GC-org.eclipse.nebula.widgets.gallery.GalleryItem-int-int-org.eclipse.swt.graphics.Point-int-int-">drawAllOverlays</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#drawOverlayImages-org.eclipse.swt.graphics.GC-int-int-double-org.eclipse.swt.graphics.Image:A-">drawOverlayImages</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#getBackground-org.eclipse.nebula.widgets.gallery.GalleryItem-">getBackground</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#getFont-org.eclipse.nebula.widgets.gallery.GalleryItem-">getFont</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#getForeground-org.eclipse.nebula.widgets.gallery.GalleryItem-">getForeground</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#getGallery--">getGallery</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#getImageOverlay-org.eclipse.nebula.widgets.gallery.GalleryItem-java.lang.String-">getImageOverlay</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#getOverlayRatio-org.eclipse.swt.graphics.Point-org.eclipse.swt.graphics.Point-org.eclipse.swt.graphics.Point-org.eclipse.swt.graphics.Point-org.eclipse.swt.graphics.Point-">getOverlayRatio</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#getOverlaySize-org.eclipse.swt.graphics.Image:A-">getOverlaySize</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#isSelected--">isSelected</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#postDraw-org.eclipse.swt.graphics.GC-">postDraw</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#preDraw-org.eclipse.swt.graphics.GC-">preDraw</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#setGallery-org.eclipse.nebula.widgets.gallery.Gallery-">setGallery</a>, <a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#setSelected-boolean-">setSelected</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="dropShadowsColors"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dropShadowsColors</h4> |
| <pre>protected java.util.ArrayList<org.eclipse.swt.graphics.Color> dropShadowsColors</pre> |
| <div class="block">Stores colors used in drop shadows</div> |
| </li> |
| </ul> |
| <a name="dropShadows"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dropShadows</h4> |
| <pre>boolean dropShadows</pre> |
| </li> |
| </ul> |
| <a name="dropShadowsSize"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dropShadowsSize</h4> |
| <pre>int dropShadowsSize</pre> |
| </li> |
| </ul> |
| <a name="dropShadowsAlphaStep"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dropShadowsAlphaStep</h4> |
| <pre>int dropShadowsAlphaStep</pre> |
| </li> |
| </ul> |
| <a name="selectionForegroundColor"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>selectionForegroundColor</h4> |
| <pre>org.eclipse.swt.graphics.Color selectionForegroundColor</pre> |
| </li> |
| </ul> |
| <a name="selectionBackgroundColor"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>selectionBackgroundColor</h4> |
| <pre>org.eclipse.swt.graphics.Color selectionBackgroundColor</pre> |
| </li> |
| </ul> |
| <a name="foregroundColor"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>foregroundColor</h4> |
| <pre>org.eclipse.swt.graphics.Color foregroundColor</pre> |
| </li> |
| </ul> |
| <a name="backgroundColor"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>backgroundColor</h4> |
| <pre>org.eclipse.swt.graphics.Color backgroundColor</pre> |
| </li> |
| </ul> |
| <a name="showLabels"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>showLabels</h4> |
| <pre>boolean showLabels</pre> |
| </li> |
| </ul> |
| <a name="showRoundedSelectionCorners"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>showRoundedSelectionCorners</h4> |
| <pre>boolean showRoundedSelectionCorners</pre> |
| </li> |
| </ul> |
| <a name="selectionRadius"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>selectionRadius</h4> |
| <pre>int selectionRadius</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="DefaultGalleryItemRenderer--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DefaultGalleryItemRenderer</h4> |
| <pre>public DefaultGalleryItemRenderer()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="isShowLabels--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isShowLabels</h4> |
| <pre>public boolean isShowLabels()</pre> |
| <div class="block">Returns current label state : enabled or disabled</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if labels are enabled.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#setShowLabels-boolean-"><code>setShowLabels(boolean)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setShowLabels-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setShowLabels</h4> |
| <pre>public void setShowLabels(boolean showLabels)</pre> |
| <div class="block">Enables / disables labels at the bottom of each item.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>showLabels</code> - </dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html#isShowLabels--"><code>isShowLabels()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="draw-org.eclipse.swt.graphics.GC-org.eclipse.nebula.widgets.gallery.GalleryItem-int-int-int-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>draw</h4> |
| <pre>public void draw(org.eclipse.swt.graphics.GC gc, |
| <a href="../../../../../org/eclipse/nebula/widgets/gallery/GalleryItem.html" title="class in org.eclipse.nebula.widgets.gallery">GalleryItem</a> item, |
| int index, |
| int x, |
| int y, |
| int width, |
| int height)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#draw-org.eclipse.swt.graphics.GC-org.eclipse.nebula.widgets.gallery.GalleryItem-int-int-int-int-int-">AbstractGalleryItemRenderer</a></code></span></div> |
| <div class="block">Draws an item.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#draw-org.eclipse.swt.graphics.GC-org.eclipse.nebula.widgets.gallery.GalleryItem-int-int-int-int-int-">draw</a></code> in class <code><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html" title="class in org.eclipse.nebula.widgets.gallery">AbstractGalleryItemRenderer</a></code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.eclipse.nebula.widgets.gallery.AbstractGalleryItemRenderer#draw(org |
| .eclipse.swt.graphics.GC, |
| org.eclipse.nebula.widgets.gallery.GalleryItem, int, int, int, int, |
| int)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setDropShadowsSize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDropShadowsSize</h4> |
| <pre>public void setDropShadowsSize(int dropShadowsSize)</pre> |
| </li> |
| </ul> |
| <a name="isDropShadows--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDropShadows</h4> |
| <pre>public boolean isDropShadows()</pre> |
| </li> |
| </ul> |
| <a name="setDropShadows-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDropShadows</h4> |
| <pre>public void setDropShadows(boolean dropShadows)</pre> |
| </li> |
| </ul> |
| <a name="getDropShadowsSize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDropShadowsSize</h4> |
| <pre>public int getDropShadowsSize()</pre> |
| </li> |
| </ul> |
| <a name="getFont--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFont</h4> |
| <pre>public org.eclipse.swt.graphics.Font getFont()</pre> |
| <div class="block">Returns the font used for drawing all item labels or <tt>null</tt> if |
| system font is used.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the font</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Gallery#getFont()} for setting font for a specific |
| GalleryItem.</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setFont-org.eclipse.swt.graphics.Font-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFont</h4> |
| <pre>public void setFont(org.eclipse.swt.graphics.Font font)</pre> |
| <div class="block">Set the font for drawing all item labels or <tt>null</tt> to use system |
| font.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>font</code> - the font to set</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Gallery#setFont(Font)} for setting font for a specific |
| GalleryItem.</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="dispose--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dispose</h4> |
| <pre>public void dispose()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html#dispose--">dispose</a></code> in class <code><a href="../../../../../org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.html" title="class in org.eclipse.nebula.widgets.gallery">AbstractGalleryItemRenderer</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getForegroundColor--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getForegroundColor</h4> |
| <pre>public org.eclipse.swt.graphics.Color getForegroundColor()</pre> |
| </li> |
| </ul> |
| <a name="setForegroundColor-org.eclipse.swt.graphics.Color-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setForegroundColor</h4> |
| <pre>public void setForegroundColor(org.eclipse.swt.graphics.Color foregroundColor)</pre> |
| </li> |
| </ul> |
| <a name="getSelectionForegroundColor--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSelectionForegroundColor</h4> |
| <pre>public org.eclipse.swt.graphics.Color getSelectionForegroundColor()</pre> |
| </li> |
| </ul> |
| <a name="setSelectionForegroundColor-org.eclipse.swt.graphics.Color-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSelectionForegroundColor</h4> |
| <pre>public void setSelectionForegroundColor(org.eclipse.swt.graphics.Color selectionForegroundColor)</pre> |
| </li> |
| </ul> |
| <a name="getSelectionBackgroundColor--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSelectionBackgroundColor</h4> |
| <pre>public org.eclipse.swt.graphics.Color getSelectionBackgroundColor()</pre> |
| </li> |
| </ul> |
| <a name="setSelectionBackgroundColor-org.eclipse.swt.graphics.Color-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSelectionBackgroundColor</h4> |
| <pre>public void setSelectionBackgroundColor(org.eclipse.swt.graphics.Color selectionBackgroundColor)</pre> |
| </li> |
| </ul> |
| <a name="getBackgroundColor--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBackgroundColor</h4> |
| <pre>public org.eclipse.swt.graphics.Color getBackgroundColor()</pre> |
| </li> |
| </ul> |
| <a name="setBackgroundColor-org.eclipse.swt.graphics.Color-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setBackgroundColor</h4> |
| <pre>public void setBackgroundColor(org.eclipse.swt.graphics.Color backgroundColor)</pre> |
| </li> |
| </ul> |
| <a name="isShowRoundedSelectionCorners--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isShowRoundedSelectionCorners</h4> |
| <pre>public boolean isShowRoundedSelectionCorners()</pre> |
| </li> |
| </ul> |
| <a name="setShowRoundedSelectionCorners-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setShowRoundedSelectionCorners</h4> |
| <pre>public void setShowRoundedSelectionCorners(boolean showRoundedSelectionCorners)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/DefaultGalleryItemRenderer.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-files/index-1.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/eclipse/nebula/widgets/gallery/DefaultGalleryGroupRenderer.html" title="class in org.eclipse.nebula.widgets.gallery"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/eclipse/nebula/widgets/gallery/Gallery.html" title="class in org.eclipse.nebula.widgets.gallery"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/nebula/widgets/gallery/DefaultGalleryItemRenderer.html" target="_top">Frames</a></li> |
| <li><a href="DefaultGalleryItemRenderer.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |