public class CBanner extends Composite
Note that although this class is a subclass of Composite
,
it does not make sense to set a layout on it.
IMPORTANT: This class is not intended to be subclassed.
Modifier and Type | Field and Description |
---|---|
(package private) static int |
BEZIER_LEFT |
(package private) static int |
BEZIER_RIGHT |
(package private) static int |
BORDER_BOTTOM |
(package private) static int |
BORDER_STRIPE |
(package private) static int |
BORDER_TOP |
(package private) static int |
BORDER1 |
(package private) Control |
bottom |
(package private) int[] |
curve |
(package private) int |
curve_indent |
(package private) static int |
CURVE_TAIL |
(package private) int |
curve_width |
(package private) Rectangle |
curveRect |
(package private) int |
curveStart |
(package private) boolean |
dragging |
(package private) Control |
left |
(package private) Listener |
listener |
(package private) static int |
MIN_LEFT |
(package private) static int |
OFFSCREEN |
(package private) Cursor |
resizeCursor |
(package private) Control |
right |
(package private) int |
rightDragDisplacement |
(package private) int |
rightMinHeight |
(package private) int |
rightMinWidth |
(package private) int |
rightWidth |
(package private) boolean |
simple |
Constructor and Description |
---|
CBanner(Composite parent,
int style)
Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
|
Modifier and Type | Method and Description |
---|---|
(package private) static int[] |
bezier(int x0,
int y0,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3,
int count) |
(package private) static int |
checkStyle(int style) |
Control |
getBottom()
Returns the Control that appears on the bottom side of the banner.
|
Rectangle |
getClientArea()
Returns a rectangle which describes the area of the
receiver which is capable of displaying data (that is,
not covered by the "trimmings").
|
Control |
getLeft()
Returns the Control that appears on the left side of the banner.
|
Control |
getRight()
Returns the Control that appears on the right side of the banner.
|
Point |
getRightMinimumSize()
Returns the minimum size of the control that appears on the right of the banner.
|
int |
getRightWidth()
Returns the width of the control that appears on the right of the banner.
|
boolean |
getSimple()
Returns
true if the CBanner is rendered
with a simple, traditional shape. |
(package private) void |
onDispose(Event event) |
(package private) void |
onMouseDown(int x,
int y) |
(package private) void |
onMouseExit() |
(package private) void |
onMouseMove(int x,
int y) |
(package private) void |
onMouseUp() |
(package private) void |
onPaint(GC gc) |
(package private) void |
onResize() |
void |
setBottom(Control control)
Set the control that appears on the bottom side of the banner.
|
void |
setLayout(Layout layout)
Sets the layout which is associated with the receiver to be
the argument which may be null.
|
void |
setLeft(Control control)
Set the control that appears on the left side of the banner.
|
void |
setRight(Control control)
Set the control that appears on the right side of the banner.
|
void |
setRightMinimumSize(Point size)
Set the minimum height of the control that appears on the right side of the banner.
|
void |
setRightWidth(int width)
Set the width of the control that appears on the right side of the banner.
|
void |
setSimple(boolean simple)
Sets the shape that the CBanner will use to render itself.
|
(package private) void |
updateCurve(int height) |
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList
computeTrim, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
Control left
Control right
Control bottom
boolean simple
int[] curve
int curveStart
Rectangle curveRect
int curve_width
int curve_indent
int rightWidth
int rightMinWidth
int rightMinHeight
Cursor resizeCursor
boolean dragging
int rightDragDisplacement
Listener listener
static final int OFFSCREEN
static final int BORDER_BOTTOM
static final int BORDER_TOP
static final int BORDER_STRIPE
static final int CURVE_TAIL
static final int BEZIER_RIGHT
static final int BEZIER_LEFT
static final int MIN_LEFT
static int BORDER1
public CBanner(Composite parent, int style)
The style value is either one of the style constants defined in
class SWT
which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int
"|" operator) two or more
of those SWT
style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
parent
- a widget which will be the parent of the new instance (cannot be null)style
- the style of widget to constructjava.lang.IllegalArgumentException
- SWTException
- static int[] bezier(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3, int count)
static int checkStyle(int style)
public Control getBottom()
SWTException
- public Rectangle getClientArea()
Scrollable
getClientArea
in class Scrollable
Scrollable.computeTrim(int, int, int, int)
public Control getLeft()
SWTException
- public Control getRight()
SWTException
- public Point getRightMinimumSize()
public int getRightWidth()
public boolean getSimple()
true
if the CBanner is rendered
with a simple, traditional shape.true
if the CBanner is rendered with a simple shapevoid onDispose(Event event)
void onMouseDown(int x, int y)
void onMouseExit()
void onMouseMove(int x, int y)
void onMouseUp()
void onPaint(GC gc)
void onResize()
public void setBottom(Control control)
control
- the control to be displayed on the bottom or nullSWTException
- public void setLayout(Layout layout)
Note: No Layout can be set on this Control because it already manages the size and position of its children.
setLayout
in class Composite
layout
- the receiver's new layout or nullSWTException
- public void setLeft(Control control)
control
- the control to be displayed on the left or nullSWTException
- public void setRight(Control control)
control
- the control to be displayed on the right or nullSWTException
- public void setRightMinimumSize(Point size)
size
- the minimum size of the control on the rightSWTException
- public void setRightWidth(int width)
width
- the width of the control on the rightSWTException
- public void setSimple(boolean simple)
simple
- true
if the CBanner should render itself in a simple, traditional styleSWTException
- void updateCurve(int height)