|
|||||||||||
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
de.uni_paderborn.fujaba.fsa.swing.JArrowedBendLine
A JBendLine with arrows at the ends. Only the arrow at the ending end is implmented.
Nested Class Summary |
Nested classes inherited from class de.uni_paderborn.fujaba.fsa.swing.JBendLine |
|
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 |
CLOSED
Closed arrow, not filled. |
private java.awt.Point |
endArrowLeftPoint
Arrow's point "to the left of the line". |
private double |
endArrowLength
Length of end arrow. |
private java.awt.Point |
endArrowRightPoint
Arrow's point "to the right of the line". |
private int |
endArrowStyle
End arrow style, see Arrow Styles. |
private double |
endArrowWidth
Width of end arrow. |
static int |
FILLED
Closed and filled arrow. |
static int |
NONE
Plain line endings, no arrow. |
static int |
OPEN
Open arrow, not closed, not filled. |
private double |
startArrowLength
Length of start arrow. |
private int |
startArrowStyle
Start arrow style, see Arrow Styles. |
private double |
startArrowWidth
Width of start arrow. |
Fields inherited from class de.uni_paderborn.fujaba.fsa.swing.JBendLine |
endTransform, startTransform |
Fields inherited from class de.uni_paderborn.fujaba.fsa.swing.JLine |
|
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.Container |
|
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 | |
JArrowedBendLine()
Constructor for class JArrowedBendLine |
|
JArrowedBendLine(JBend start,
JBend end)
|
|
JArrowedBendLine(java.awt.Point start,
java.awt.Point end)
|
Method Summary | |
private void |
computeArrows()
Computes coordinates for the arrows. |
java.awt.Rectangle |
getPreferredBounds()
Get the preferredBounds attribute of the JArrowedBendLine object |
void |
paintComponent(java.awt.Graphics g)
No comment provided by developer, please add a comment to improve documentation. |
void |
setEndArrowLength(int length)
Sets the endArrowLength attribute of the JArrowedBendLine object |
void |
setEndArrowStyle(int style)
Sets the endArrowStyle attribute of the JArrowedBendLine object |
void |
setEndArrowWidth(int width)
Sets the endArrowWidth attribute of the JArrowedBendLine object |
void |
setStartArrowLength(int length)
Sets the startArrowLength attribute of the JArrowedBendLine object |
void |
setStartArrowStyle(int style)
Sets the startArrowStyle attribute of the JArrowedBendLine object |
void |
setStartArrowWidth(int width)
Sets the startArrowWidth attribute of the JArrowedBendLine object |
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.JBendLine |
contains, endPointChanged, getAncestorListener, getClosestCommonAncestor, getEndBend, getEndPoint, getEndTransform, getFromBends, getIndexFromBends, getNextFromBends, getOtherBend, getPrevFromBends, getStartBend, getStartPoint, getStartTransform, hasInBends, invalidateEndTransform, invalidateStartTransform, iteratorOfBends, iteratorOfBends, iteratorOfBends, propertyChange, registerEndBend, registerStartBend, removeYou, setBendAt, setEndBend, setEndPoint, setStartBend, setStartPoint, sizeOfBends, startPointChanged, unregisterEndBend, unregisterStartBend |
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.JLine |
adjustBounds, computeCoeffs, 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, getPreferredSize, getPrevFromPoints, getPrevFromPoints, getStartPoint, getStartToEndDistance, getStroke, getThickness, getUI, hasInPoints, hasInPoints, invalidateCoeffs, isCoeffsDirty, isLineDashed, isOptimizedDrawingEnabled, iteratorOfPoints, iteratorOfPoints, iteratorOfPoints, linePointsChanged, 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, 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 |
Field Detail |
public static final int NONE
public static final int OPEN
public static final int CLOSED
public static final int FILLED
private double startArrowLength
private double startArrowWidth
private int startArrowStyle
private double endArrowLength
private double endArrowWidth
private java.awt.Point endArrowLeftPoint
private java.awt.Point endArrowRightPoint
private int endArrowStyle
Constructor Detail |
public JArrowedBendLine()
public JArrowedBendLine(java.awt.Point start, java.awt.Point end)
start
- start of lineend
- end of linepublic JArrowedBendLine(JBend start, JBend end)
start
- the start Bendend
- the end BendMethod Detail |
public void setStartArrowLength(int length)
length
- The new startArrowLength valuepublic void setStartArrowWidth(int width)
width
- The new startArrowWidth valuepublic void setStartArrowStyle(int style)
style
- The new startArrowStyle valuepublic void setEndArrowLength(int length)
length
- The new endArrowLength valuepublic void setEndArrowWidth(int width)
width
- The new endArrowWidth valuepublic void setEndArrowStyle(int style)
style
- The new endArrowStyle valuepublic java.awt.Rectangle getPreferredBounds()
getPreferredBounds
in class JLine
JLine.getDelta()
,
JLine.getStartPoint()
,
JLine.getEndPoint()
,
JLine.adjustBounds()
public void paintComponent(java.awt.Graphics g)
g
- No description providedprivate void computeArrows()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |