|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.uni_paderborn.fujaba.fsa.swing.JBend
de.uni_paderborn.fujaba.fsa.swing.JGrab
A JGrab is a JBend that is attached to a JComponent. It has a GrabManager that acts as a association object to the JComponent and manages the updating of the grab position when the Component changes or other grabs are added
N 0..1 JGrab ----------------------------- GrabManager grabs manager
JBend
,
JBendLine
,
GrabManager
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
static int |
BOTTOM
Deprecated. |
static int |
LEFT
Deprecated. |
static int |
RIGHT
Deprecated. |
static int |
TOP
Deprecated. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JGrab()
Constructor for class JGrab |
|
JGrab(GrabManager manager)
Constructor for class JGrab |
|
JGrab(javax.swing.JComponent target)
Constructor for class JGrab |
Method Summary | |
protected java.awt.Point |
calculatePoint()
Default is the center of that side of the bounds that is defined by getOrientation() |
double |
getAlignment()
|
int |
getAlignmentOffset()
Get the alignmentOffset attribute of the JGrab object |
GrabManager |
getManager()
Get the manager attribute of the JGrab object |
Direction |
getOrientation()
|
int |
getPadOffset()
Get the padOffset attribute of the JGrab object |
javax.swing.JComponent |
getTarget()
|
int |
getTouchLength()
Get the touchLength attribute of the JGrab object |
int |
getTouchOffset()
Get the touchOffset attribute of the JGrab object |
boolean |
isAutoAlignment()
get the autoAlignment property |
boolean |
isAutoOrientation()
get the autoOrientation property |
void |
setAlignment(double align)
Set the alignment of the Grab at its target component. |
void |
setAutoAlignment(boolean auto)
set the autoOrientation property if set to true the orientation is determined by the GrabLayouter otherwise the value of getOrientation() is used |
void |
setAutoOrientation(boolean auto)
set the autoOrientation property if set to true the orientation is determined by the GrabLayouter otherwise the value of getOrientation() is used |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the bounds attribute of the JGrab object |
void |
setLayoutAlignment(double align)
Set the Alignment without notifying the GrabManager or resetting the autoAlignment property |
void |
setLayoutOrientation(Direction orientation)
Set the Orientation without notifying the GrabManager or resetting the autoOrientation property |
boolean |
setManager(GrabManager value)
Sets the manager attribute of the JGrab object |
void |
setOrientation(Direction orientation)
Set the orientation of the Grab at its target component. |
void |
setPoint(int x,
int y)
Does nothing. |
void |
setTarget(javax.swing.JComponent target)
Only a Comfort Operation. |
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.JBend |
addToIncomingLines, addToOutgoingLines, firePropertyChange, getFirstFromLines, getMaximumSize, getMinimumSize, getPoint, getPoint, getPreferredSize, getUI, hasInIncomingLines, hasInLines, hasInOutgoingLines, iteratorOfIncomingLines, iteratorOfLines, iteratorOfOutgoingLines, removeAllFromIncomingLines, removeAllFromLines, removeAllFromOutgoingLines, removeFromIncomingLines, removeFromLines, removeFromOutgoingLines, resetPoint, setPoint, setUI, sizeOfIncomingLines, sizeOfLines, sizeOfOutgoingLines |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TOP
public static final int RIGHT
public static final int BOTTOM
public static final int LEFT
Constructor Detail |
public JGrab()
public JGrab(GrabManager manager)
manager
- No description providedpublic JGrab(javax.swing.JComponent target)
target
- No description providedMethod Detail |
public void setOrientation(Direction orientation)
Resets the autoOrientation property if set.
orientation
- one of JGrab.TOP,
JGrab.BOTTOM,
JGrab.LEFTor >pre>JGrab.RIGHT
setLayoutOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
getOrientation()
,
setAutoOrientation(boolean)
,
setAlignment(double)
,
TOP
,
BOTTOM
,
LEFT
,
RIGHT
public Direction getOrientation()
setOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
setLayoutOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
setAutoOrientation(boolean)
,
isAutoOrientation()
,
TOP
,
BOTTOM
,
LEFT
,
RIGHT
public void setLayoutOrientation(Direction orientation)
orientation
- setOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
public void setAutoOrientation(boolean auto)
if set to true the orientation is determined by the GrabLayouter otherwise the value of
getOrientation()is used
auto
- The new autoOrientation valuesetOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
setLayoutOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
getOrientation()
,
GrabLayouter
public boolean isAutoOrientation()
setAutoOrientation(boolean)
,
setOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
setLayoutOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
getOrientation()
,
GrabLayouter
public void setAlignment(double align)
Calls setLayoutAlignment to set the orientation and then calls the GrabManager to revalidate the Grabs. Resets the autoAlignment property if set.
align
- The new alignment valuesetLayoutAlignment(double)
,
getAlignment()
,
setAutoAlignment(boolean)
,
setOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
public void setLayoutAlignment(double align)
align
- The new layoutAlignment valuesetOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
public double getAlignment()
setAlignment(double)
,
setLayoutAlignment(double)
,
setAutoAlignment(boolean)
,
isAutoAlignment()
public void setAutoAlignment(boolean auto)
if set to true the orientation is determined by the GrabLayouter otherwise the value of
getOrientation()is used
auto
- The new autoAlignment valuesetOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
setLayoutOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
getOrientation()
,
GrabLayouter
public boolean isAutoAlignment()
setAutoAlignment(boolean)
,
setAlignment(double)
,
setLayoutAlignment(double)
,
getAlignment()
,
GrabLayouter
public int getTouchOffset()
public int getTouchLength()
public int getAlignmentOffset()
public int getPadOffset()
public void setPoint(int x, int y)
Positioning is done by
setOrientationand
setAlignment
setPoint
in class JBend
x
- y
- setOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
setAlignment(double)
protected java.awt.Point calculatePoint()
getOrientation()
calculatePoint
in class JBend
getOrientation()
public void setBounds(int x, int y, int width, int height)
setBounds
in class JBend
x
- The new bounds valuey
- The new bounds valuewidth
- The new bounds valueheight
- The new bounds valueJBend.setPoint(java.awt.Point)
,
JBend.setPoint(int, int)
,
JBend.resetPoint()
public boolean setManager(GrabManager value)
value
- The new manager value
public GrabManager getManager()
public void setTarget(javax.swing.JComponent target)
The association to the target JComponent is implemented by the GrabManager.
So if the target does not have a GrabManager yet, a new one is added. Then this grab
is added to the GrabManager.
target
- The JComponent to connect togetTarget()
,
setManager(de.uni_paderborn.fujaba.fsa.swing.GrabManager)
,
GrabManager
public javax.swing.JComponent getTarget()
setTarget(javax.swing.JComponent)
,
getManager()
,
GrabManager.getTarget()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |