public class NoGroupRenderer extends AbstractGridGroupRenderer
Alternate group renderer for the Gallery widget. This group renderer does not draw group titles. Only items are displayed. All groups are considered as expanded.
The visual aspect is the same as the first version of the gallery widget.
NOTE: THIS WIDGET AND ITS API ARE STILL UNDER DEVELOPMENT.
H_COUNT, V_COUNT
Constructor | Description |
---|---|
NoGroupRenderer() |
Modifier and Type | Method | Description |
---|---|---|
void |
draw(org.eclipse.swt.graphics.GC gc,
GalleryItem group,
int x,
int y,
int clipX,
int clipY,
int clipWidth,
int clipHeight) |
Group size informations can be retrieved from group.
|
GalleryItem |
getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords) |
Returns the item at coords relative to the parent group.
|
org.eclipse.swt.graphics.Rectangle |
getSize(GalleryItem item) |
Returns the size of a group.
|
void |
layout(org.eclipse.swt.graphics.GC gc,
GalleryItem group) |
This method is called on each root item when the Gallery changes (resize,
item addition or removal) in order to update the gallery size.
|
boolean |
mouseDown(GalleryItem group,
org.eclipse.swt.events.MouseEvent e,
org.eclipse.swt.graphics.Point coords) |
This method can be implemented to handle mouse down events at the group
level.
|
getGallery, getScrollBarIncrement, isExpanded, postDraw, postLayout, preDraw, setExpanded, setGallery
dispose, getItemHeight, getItemWidth, getMinMargin, getNextItem, isAlwaysExpanded, isAutoMargin, preLayout, setAlwaysExpanded, setAutoMargin, setItemHeight, setItemSize, setItemWidth, setMinMargin
public void draw(org.eclipse.swt.graphics.GC gc, GalleryItem group, int x, int y, int clipX, int clipY, int clipWidth, int clipHeight)
AbstractGalleryGroupRenderer
draw
in class AbstractGridGroupRenderer
public void layout(org.eclipse.swt.graphics.GC gc, GalleryItem group)
AbstractGalleryGroupRenderer
layout
in class AbstractGridGroupRenderer
public GalleryItem getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
AbstractGalleryGroupRenderer
getItem
in class AbstractGridGroupRenderer
public boolean mouseDown(GalleryItem group, org.eclipse.swt.events.MouseEvent e, org.eclipse.swt.graphics.Point coords)
AbstractGalleryGroupRenderer
mouseDown
in class AbstractGridGroupRenderer
group
- The group on which the mouse click occurede
- The original mouse eventcoords
- The pointer coordinates relative to the grouppublic org.eclipse.swt.graphics.Rectangle getSize(GalleryItem item)
AbstractGalleryGroupRenderer
getSize
in class AbstractGridGroupRenderer