|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
de.jaret.util.ui.ColorSpot
public class ColorSpot
Custom widget showing a colored spot.
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Control |
---|
handle |
Constructor Summary | |
---|---|
ColorSpot(org.eclipse.swt.widgets.Composite parent,
int style)
Construct a spot. |
Method Summary | |
---|---|
org.eclipse.swt.graphics.Point |
computeSize(int whint,
int hhint)
Uses the hint if set and the preferred size. |
org.eclipse.swt.graphics.Point |
computeSize(int hint,
int hint2,
boolean changed)
Simply delegates to computeSize(int, int). |
void |
dispose()
Dispose the color. |
int |
getPreferredSize()
Get the preferred size. |
org.eclipse.swt.graphics.RGB |
getSpotRGB()
Get the color of the spot. |
void |
setPreferredSize(int preferredSize)
Set the preferred size. |
void |
setSpotRGB(org.eclipse.swt.graphics.RGB spotRGB)
Set the color of the spot as RGB. |
Methods inherited from class org.eclipse.swt.widgets.Canvas |
---|
drawBackground, getCaret, scroll, setCaret, setFont |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
---|
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColorSpot(org.eclipse.swt.widgets.Composite parent, int style)
parent
- parent compositestyle
- style bitsMethod Detail |
---|
public org.eclipse.swt.graphics.RGB getSpotRGB()
public void setSpotRGB(org.eclipse.swt.graphics.RGB spotRGB)
spotRGB
- color as RGBpublic void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
public org.eclipse.swt.graphics.Point computeSize(int whint, int hhint)
computeSize
in class org.eclipse.swt.widgets.Control
public org.eclipse.swt.graphics.Point computeSize(int hint, int hint2, boolean changed)
computeSize
in class org.eclipse.swt.widgets.Composite
public int getPreferredSize()
public void setPreferredSize(int preferredSize)
preferredSize
- preferred size (width and height)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |