|
|||||||||
| 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
tabs.TabContainer
tabs.BlushTab
public class BlushTab
Instances of this class represents a tab that can be used to do blush to a person's face
| Field Summary | |
|---|---|
protected boolean |
imageAreaRedrawAllowed
flag to indicate whether the tab has or not access to call for redrawing the image area |
protected boolean |
mouseOverLeftCheek
|
protected boolean |
mouseOverRightCheek
|
protected java.awt.Point |
oldLeftCheekPoint
|
protected java.awt.Point |
oldRightCheekPoint
|
protected int |
startX
|
protected int |
startY
|
| Fields inherited from class tabs.TabContainer |
|---|
tabsContainer |
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|---|
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|---|
handle |
| Constructor Summary | |
|---|---|
BlushTab(TabsContainer parent,
int style,
int tabLayerPosition)
Constructs a new instance of this class given its parent, a style value describing its behavior and appearance and this instance's position in the TabsContainer array |
|
| Method Summary | |
|---|---|
void |
clear()
Abstract method to be implemented by every tab that clears the tab's image in the drawing area |
void |
createBottomComposite()
This method initializes bottomComposite |
void |
disposeData()
|
void |
drawCurrentLayer(java.awt.Graphics2D g2d)
Abstract method to be implemented by every tab that draws the resulting image on the DrawingContainer using is't g2d |
java.lang.Object |
getCurrentState()
Abstract method to be implemented by every tab that returns an Object containing the tab's current state |
java.awt.image.BufferedImage |
getLayerImage()
Abstract method to be implemented by every tab that returns the resulting image which will be drawn above original image |
java.awt.event.MouseListener |
mouseListener()
Abstract method to be implemented by every tab which returns a mouse listener that is notified when the mouse is in the project's drawing area |
java.awt.event.MouseMotionListener |
mouseMotionListener()
Abstract method to be implemented by every tab which returns a mouse motion listener that is notified when the mouse is in the project's drawing area |
void |
originalImageChanged()
Abstract method to be implemented by every tab that is notified whenever the original drawing area's image has changed it's position, size or rotation |
void |
setCurrentState(java.lang.Object o)
Abstract method to be implemented by every tab that changes the current tab state to the new given tab state |
| Methods inherited from class tabs.TabContainer |
|---|
compareTo, dispose, getTabImage, getTabLayerPosition, getTabToolTipText, setTabImage, setTabToolTipText |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, 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, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, 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 |
| Field Detail |
|---|
protected boolean mouseOverLeftCheek
protected boolean mouseOverRightCheek
protected int startX
protected int startY
protected java.awt.Point oldLeftCheekPoint
protected java.awt.Point oldRightCheekPoint
protected boolean imageAreaRedrawAllowed
| Constructor Detail |
|---|
public BlushTab(TabsContainer parent,
int style,
int tabLayerPosition)
TabsContainer array
parent - a TabsContainer which will be the parent of the new instancestyle - the style of the tabtabLayerPosition - the tab's position in the TabsContainer array| Method Detail |
|---|
public void createBottomComposite()
public java.awt.image.BufferedImage getLayerImage()
TabContainer
getLayerImage in class TabContainerpublic void drawCurrentLayer(java.awt.Graphics2D g2d)
TabContainer
drawCurrentLayer in class TabContainerg2d - DrawingContainer's Graphics2Dpublic void clear()
TabContainer
clear in class TabContainerpublic java.lang.Object getCurrentState()
TabContainer
getCurrentState in class TabContainerpublic void setCurrentState(java.lang.Object o)
TabContainer
setCurrentState in class TabContainerpublic java.awt.event.MouseListener mouseListener()
TabContainer
mouseListener in class TabContainerpublic java.awt.event.MouseMotionListener mouseMotionListener()
TabContainer
mouseMotionListener in class TabContainerpublic void originalImageChanged()
TabContainer
originalImageChanged in class TabContainerpublic void disposeData()
disposeData in class TabContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||