|
|||||||||||
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
de.uni_paderborn.fujaba.fsa.swing.JLine
de.uni_paderborn.fujaba.fsa.swing.JBendLine
A JLine that can have a JBend at each end.
Startpoint and Endpoint are defined by the two Bends if they are attached. Otherwise this does the same as the "classic" JLine.
N 0..1 JBendLine ----------------------------- JBend outgoingLines startBend N 0..1 JBendLine ----------------------------- JBend incomingLines endBend
JLine
,
JBend
,
JGrab
,
Serialized FormNested Class Summary |
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 |
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 | |
JBendLine()
Constructor for class JBendLine |
|
JBendLine(JBend start,
JBend end)
|
|
JBendLine(java.awt.Point start,
java.awt.Point end)
|
Method Summary | |
boolean |
contains(int x,
int y)
No comment provided by developer, please add a comment to improve documentation. |
protected void |
endPointChanged()
No comment provided by developer, please add a comment to improve documentation. |
de.uni_paderborn.fujaba.fsa.swing.JBendLine.AncestorManager |
getAncestorListener()
Get the ancestorListener attribute of the JBendLine object |
static java.awt.Container |
getClosestCommonAncestor(java.awt.Container c1,
java.awt.Container c2)
Get the closestCommonAncestor attribute of the AncestorManager object |
JBend |
getEndBend()
Get the endBend attribute of the JBendLine object |
java.awt.Point |
getEndPoint(java.awt.Point p)
Get the endPoint attribute of the JBendLine object |
protected java.awt.Point |
getEndTransform()
Get the endTransform attribute of the JBendLine object |
JBend |
getFromBends(int index)
Get the fromBends attribute of the JBendLine object |
int |
getIndexFromBends(JBend bend)
|
JBend |
getNextFromBends(JBend bend)
Get the nextFromBends attribute of the JBendLine object |
JBend |
getOtherBend(JBend bend)
Get the partner for the bend |
JBend |
getPrevFromBends(JBend bend)
Get the prevFromBends attribute of the JBendLine object |
JBend |
getStartBend()
Get the startBend attribute of the JBendLine object |
java.awt.Point |
getStartPoint(java.awt.Point p)
Get the startPoint attribute of the JBendLine object |
protected java.awt.Point |
getStartTransform()
Get the startTransform attribute of the JBendLine object |
boolean |
hasInBends(JBend bend)
No comment provided by developer, please add a comment to improve documentation. |
protected void |
invalidateEndTransform()
No comment provided by developer, please add a comment to improve documentation. |
protected void |
invalidateStartTransform()
No comment provided by developer, please add a comment to improve documentation. |
java.util.ListIterator |
iteratorOfBends()
No comment provided by developer, please add a comment to improve documentation. |
java.util.ListIterator |
iteratorOfBends(int start)
No comment provided by developer, please add a comment to improve documentation. |
java.util.ListIterator |
iteratorOfBends(JBend bend)
No comment provided by developer, please add a comment to improve documentation. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
The PropertyChangeListener-Method. |
protected void |
registerEndBend(JBend bend)
No comment provided by developer, please add a comment to improve documentation. |
protected void |
registerStartBend(JBend bend)
No comment provided by developer, please add a comment to improve documentation. |
void |
removeYou()
No comment provided by developer, please add a comment to improve documentation. |
boolean |
setBendAt(int index,
JBend bend)
Sets the bendAt attribute of the JBendLine object |
boolean |
setEndBend(JBend value)
Set the end bend of the Line. |
boolean |
setEndPoint(int x,
int y)
Set the value of endPoint. |
boolean |
setStartBend(JBend value)
Set the start bend of the Line. |
boolean |
setStartPoint(int x,
int y)
Set the value of startPoint. |
int |
sizeOfBends()
No comment provided by developer, please add a comment to improve documentation. |
protected void |
startPointChanged()
No comment provided by developer, please add a comment to improve documentation. |
protected void |
unregisterEndBend(JBend bend)
No comment provided by developer, please add a comment to improve documentation. |
protected void |
unregisterStartBend(JBend bend)
No comment provided by developer, please add a comment to improve documentation. |
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.JLine |
contains, doLayout, getAngle, getAngle, getCx, getCy, getDelta, getDirection, getDirection, getDirection, getDirection, getDistance, getDistance, getEndPoint, getFromPoints, getIndexFromPoints, getIndexFromPoints, getLength, getNextFromPoints, getNextFromPoints, getNormal, getNormal, getNormal, getNormal, getPointAt, getPosition, getPosition, getPreferredBounds, getPreferredSize, getPrevFromPoints, getPrevFromPoints, getStartPoint, getStartToEndDistance, getStroke, getThickness, getUI, hasInPoints, hasInPoints, isLineDashed, isOptimizedDrawingEnabled, iteratorOfPoints, iteratorOfPoints, iteratorOfPoints, setBounds, setDelta, setEndPoint, setLineDashed, setPointAt, setPointAt, setStartPoint, setStroke, setThickness, setUI, sizeOfPoints, toString |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, 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, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JBendLine()
public JBendLine(java.awt.Point start, java.awt.Point end)
start
- start of lineend
- end of linepublic JBendLine(JBend start, JBend end)
start
- the start Bendend
- the end BendMethod Detail |
public de.uni_paderborn.fujaba.fsa.swing.JBendLine.AncestorManager getAncestorListener()
public boolean setStartBend(JBend value)
If the Bend has no Parent yet, it is assigned to the parent of the Line. Furthermore if the parent of the Bend is the same as the parent of the Line, it is changed whenever the parent of the Line changes
value
- the new Bend
getStartBend()
,
setEndBend(de.uni_paderborn.fujaba.fsa.swing.JBend)
,
setStartPoint(int, int)
protected void registerStartBend(JBend bend)
bend
- No description providedprotected void unregisterStartBend(JBend bend)
bend
- No description providedpublic JBend getStartBend()
public boolean setEndBend(JBend value)
If the Bend has no Parent yet, it is assigned to the parent of the Line. Furthermore if the parent of the Bend is the same as the parent of the Line, it is changed whenever the parent of the Line changes
value
- the new Bend
getEndBend()
,
setStartBend(de.uni_paderborn.fujaba.fsa.swing.JBend)
,
setEndPoint(int, int)
protected void registerEndBend(JBend bend)
bend
- No description providedprotected void unregisterEndBend(JBend bend)
bend
- No description providedpublic JBend getEndBend()
public boolean setBendAt(int index, JBend bend)
index
- The new bendAt valuebend
- The new bendAt value
public JBend getFromBends(int index)
index
- No description provided
public final java.util.ListIterator iteratorOfBends()
public final java.util.ListIterator iteratorOfBends(JBend bend)
bend
- No description provided
public java.util.ListIterator iteratorOfBends(int start)
start
- No description provided
public int sizeOfBends()
public boolean hasInBends(JBend bend)
bend
- No description provided
public int getIndexFromBends(JBend bend)
bend
- No description provided
public JBend getNextFromBends(JBend bend)
bend
- No description provided
public JBend getPrevFromBends(JBend bend)
bend
- No description provided
public JBend getOtherBend(JBend bend)
bend
- No description provided
public boolean setStartPoint(int x, int y)
Sets the startPoint value, the position of the startBend and calls the endPoints GrabManager for revalidation.
setStartPoint
in class JLine
x
- x-coordinate to assign to startPointy
- y-coordinate to assign to startPoint
JLine.getStartPoint()
,
setEndPoint(int, int)
protected void startPointChanged()
protected void invalidateStartTransform()
protected java.awt.Point getStartTransform()
public java.awt.Point getStartPoint(java.awt.Point p)
getStartPoint
in class JLine
p
- No description provided
JLine.getStartPoint()
,
JLine.setStartPoint(java.awt.Point)
,
JLine.setStartPoint(int, int)
,
JLine.getEndPoint(java.awt.Point)
,
JLine.getEndPoint()
public boolean setEndPoint(int x, int y)
Sets the endPoint value, the position of the endBend and calls the endPoints GrabManager for revalidation.
setEndPoint
in class JLine
x
- x-coordinate to assign to endPointy
- y-coordinate to assign to endPoint
JLine.getEndPoint()
,
setStartPoint(int, int)
protected void endPointChanged()
protected void invalidateEndTransform()
protected java.awt.Point getEndTransform()
public java.awt.Point getEndPoint(java.awt.Point p)
getEndPoint
in class JLine
p
- No description provided
JLine.getEndPoint()
,
JLine.setEndPoint(java.awt.Point)
,
JLine.setEndPoint(int, int)
,
JLine.getStartPoint(java.awt.Point)
,
JLine.getStartPoint()
public boolean contains(int x, int y)
contains
in class JLine
x
- No description providedy
- No description provided
JLine.contains(java.awt.Point)
,
JLine.getDistance(java.awt.Point)
,
JLine.getDistance(int, int)
public void removeYou()
removeYou
in class JLine
public void propertyChange(java.beans.PropertyChangeEvent e)
Called when the parent of the Line changes to set the parent of the grabs to the new parent if their old parent was the old parent of the line. Or when the point of either of the Bends changes to update the Line.
propertyChange
in interface java.beans.PropertyChangeListener
e
- The eventPropertyChangeListener
,
PropertyChangeEvent
public static java.awt.Container getClosestCommonAncestor(java.awt.Container c1, java.awt.Container c2)
c1
- No description providedc2
- No description provided
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |