public abstract class AbstractRenderer extends java.lang.Object implements IRenderer
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 and Description |
|---|
AbstractRenderer() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.graphics.Rectangle |
getBounds()
Returns the bounds.
|
org.eclipse.swt.widgets.Display |
getDisplay()
Sets the display for the renderer.
|
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.
|
void |
setBounds(int x,
int y,
int width,
int height)
Sets the bounds of the drawing.
|
void |
setBounds(org.eclipse.swt.graphics.Rectangle bounds)
Sets the bounds of the drawing.
|
void |
setDisplay(org.eclipse.swt.widgets.Display display)
Sets the display.
|
void |
setExpanded(boolean expanded)
Sets the expansion state of this renderer.
|
void |
setFocus(boolean focus)
Sets focus state.
|
void |
setHover(boolean hover)
Sets the hover state.
|
void |
setLocation(int x,
int y)
Sets the location of the drawing.
|
void |
setLocation(org.eclipse.swt.graphics.Point location)
Sets the location of the drawing.
|
void |
setMouseDown(boolean mouseDown)
Sets the hover state.
|
void |
setSelected(boolean selected)
Sets the selected state.
|
void |
setSize(int width,
int height)
Sets the area of the drawing.
|
void |
setSize(org.eclipse.swt.graphics.Point size)
Sets the area of the drawing.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputeSize, paintpublic 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)
setLocation in interface IRendererx - X.y - Y.public void setLocation(org.eclipse.swt.graphics.Point location)
setLocation in interface IRendererlocation - 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)
setMouseDown in interface IRenderermouseDown - Mouse state.public boolean isSelected()
public void setSelected(boolean selected)
setSelected in interface IRendererselected - Selection state.public boolean isExpanded()
public void setExpanded(boolean expanded)
setExpanded in interface IRendererexpanded - The expanded to set.public org.eclipse.swt.widgets.Display getDisplay()
public void setDisplay(org.eclipse.swt.widgets.Display display)
setDisplay in interface IRendererdisplay - Display.