|
|||||||||
| 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.HairTab
public class HairTab
Instances of this class represents a tab that can be used to draw an hair style over the drawing's area image
| Field Summary | |
|---|---|
protected boolean |
doQualityScale
flag to indicate whether the scaling should do a quality (slower) scale or a fast one |
| 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 | |
|---|---|
HairTab(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 |
void |
setHairIsVisible(boolean value)
Indicate whether the hair tab should draw it's hair image in the drawing area |
| 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 doQualityScale
| Constructor Detail |
|---|
public HairTab(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 void clear()
TabContainer
clear in class TabContainerpublic void drawCurrentLayer(java.awt.Graphics2D g2d)
TabContainer
drawCurrentLayer in class TabContainerg2d - DrawingContainer's Graphics2Dpublic java.lang.Object getCurrentState()
TabContainer
getCurrentState in class TabContainerpublic java.awt.image.BufferedImage getLayerImage()
TabContainer
getLayerImage 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 setHairIsVisible(boolean value)
value - true for drawing the hair image, false otherwisepublic 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 | ||||||||