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 | Description |
---|---|
AbstractRenderer() |
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) |
public abstract void paint(org.eclipse.swt.graphics.GC gc, java.lang.Object value)
public org.eclipse.swt.graphics.Rectangle getBounds()
public void setBounds(int x, int y, int width, int height)
public void setBounds(org.eclipse.swt.graphics.Rectangle bounds)
public org.eclipse.swt.graphics.Point getSize()
public void setLocation(int x, int y)
public void setLocation(org.eclipse.swt.graphics.Point location)
public void setSize(int width, int height)
public void setSize(org.eclipse.swt.graphics.Point size)
public boolean isFocus()
public void setFocus(boolean focus)
public boolean isHover()
public void setHover(boolean hover)
public boolean isMouseDown()
public void setMouseDown(boolean mouseDown)
public boolean isSelected()
public void setSelected(boolean selected)
public boolean isExpanded()
public void setExpanded(boolean expanded)
expanded
- The expanded to set.