|
||||||||||
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
ARoad0.Gui2.GraphicView
public class GraphicView
This class is responsible for displaying a view and its graphical objects (nodes, links, arrows, rights) in the desktop.
The main work is done at the initialization of the instance, so that painting actions are very fast. The constructor calls initialize() which builds up the map of node pairs, each linked by none, one or many displayable links, in calling gWork.RightsFactory_Facade.detectXXXRights(). Then, initialize() sets the JPanel size, its GraphicNodes, sets its columns and defines the GraphicNode locations to obtain a clearer graphic representation. The constructor then calls buildUpArrowsAndRights() which sets the links and the visible rights in the view, as shapes or as strings which will be drawn in paintComponents() when the GraphicView is displayed.
The user may provide a drag&drop operation for moving a node in the view, and/or to permute two nodes. The user may also click on a node to select its BaseObject in the explorer. When he adds a new node in the view, it is put on the top left coin of the graphic view. Any updating is done by resetGraphicView and resetRights methods. When the nodes set changes, the method resetGraphicView() is called. When a right changes, the method resetRights() is called. No layout manager is used, because they do not allow to get the absolute position of a GraphicNode, that is necessary to draw the links between the nodes.
This class is directly used only for the 'Architecture' view. Its subclasses are GraphicEPRView and GraphicNoThanView, and they provide most of the work. However, this class is a strong support for all the subclasses methods, and should be well understood.
This class is designed to be updated, as any JComponent, by the event dispatch thread for most of the operations, but it allows the rights updating in a worker thread, through the call of resetRights(). For a presentation of the view threads, see GraphicViewBaseListernerImpl. A main design principle is that each view is independant, so it can be processed in any thread. On the other hand, it is not possible to reuse the access paths of a view in another view.
ViewInBaseImpl
,
GraphicViewBaseListenerImpl
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected static float |
ARROW_HEAD_ANGLE
angle in the arrow head |
protected static float |
ARROW_HEAD_LENGTH
length of the arrow head |
protected static java.awt.BasicStroke |
BASIC_STROKE
stroke generally used for drawing and filling the shapes |
protected static int |
BORDER
border of the graphic view panel |
protected static java.awt.BasicStroke |
DASHED_DOUBLEWIDTH_STROKE
dashed stroke for arrows or lines |
protected static java.awt.BasicStroke |
DASHED_STROKE
dashed stroke for arrows or lines |
protected static java.awt.BasicStroke |
DOUBLEWIDTH_STROKE
double-width stroke for arrows |
protected ImmutableName |
dragSourceNodeName_
in a drag&drop operation, the name of the source node to move. |
protected ImmutableName |
dragTargetNodeName_
in a drag&drop operation to move a node, the target node name, if the target is not empty. |
protected static int |
INITIAL_CAPACITY
initial capacity used for List and Map initialization the default value for Map is 101 |
protected java.util.Set<BaseObject> |
l_allNodesInLinks_
Set of all the implied BaseObjects that are nodes, displayable or not, in the GraphicView DisplayableLinkImpls |
protected java.lang.Object[] |
l_currentArrowsAndRightsStarts_
image of l_LinksAndRights_, but with a Point2D at the rights place, to give to drawArrowsAndRights() the position of the rights to draw |
protected java.lang.Object[] |
l_LinksAndRights_
array of objects ready to be drawn, as Shapes and associated Strings. |
protected java.util.HashSet<BaseObject> |
l_rightsRelatedBaseObjects_
Set of all the BaseObjects implied in gWork to define the rights. |
protected java.util.Map<ImmutableName,GraphicNode> |
m_GraphicNodes_
map of GraphicNodes, the associated BaseObject name is the key, sometimes extended by |
protected java.util.Map<ImmutableName,java.awt.geom.Rectangle2D> |
m_GraphicNodesBounds_
map of the GraphicNode absolute cordinates in this panel Graphics2D, the associated BaseObject name is the key, Rectangle2D is the value type; get through GraphicNode.getShape(). |
protected java.util.Map<ImmutableName,java.util.List<DisplayableLinkImpl>> |
m_l_DisplayableLinks_
map of DisplayableLinkImpls; the compound name constructed with the two base objects names (eligible party first) is the key; the value is a List of DisplayableLinkImpls for getting all the visible or hiden links between two view base objects. |
protected boolean |
mouseDragged_
true when there is a drag&drop operation. |
protected static int |
NODE_DISTANCE
distance to select the arrow construction algorithm in setPoint2DForArrowAndRights() |
protected int |
nodesNumber_
number of nodes in the view. |
protected static java.lang.Object[] |
NULL_SHAPE_ARRAY
null shape array used to test the return value from buildUpArrows() |
protected static int |
PRIME
|
protected static int |
RIGHTS_SHIFT
shift along the y axis to display a second line for rights. |
protected ViewInBase |
viewInBase_
ViewInBase associated to this GraphicView |
protected static java.lang.String |
WAITING_TEXT
|
protected javax.swing.JTextPane |
whyText_
JTextPane displayed through the button "See why" in the view frame |
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 | |
---|---|
GraphicView()
This constructor is only for the subclasses. |
|
GraphicView(ViewInBase _view,
java.util.Map _m_positionIndex)
This constructor add all the _view objects in this panel, each associated to a GraphicNode. |
Method Summary | |
---|---|
void |
addWaitingMessage()
Display at the top left corner of the view, the user message 'Please wait...' in green, as a GraphicText. |
protected java.lang.Object[] |
buildUpArrowsAndRights(java.util.Map _m_l_DisplayableLinks,
java.util.Map _m_gNodeBoundsModel)
Sets the property l_LinksAndRights_ which contains the links and rights as Shapes, to be painted by drawArrowsAndRights() in this GraphicView. |
protected void |
drawArrowsAndRights(java.awt.Graphics2D _g2)
Draws the arrows and the rights in Serif 11 from the values in l_LinksAndRights_ and l_currentArrowsAndRightsStarts_. |
void |
finalizeForGui()
Invoked by resetGraphicView() and ViewTreeBaseListenerImpl to finalize the instance, or to set it as a new object before the initialization, with the exception of whyText_ that is set to null to indicate the finalizing operation. |
java.util.Set |
getAllNodesInLinks()
|
ViewInBase |
getEorDataModel()
|
java.awt.image.BufferedImage |
getExportImage()
Provides the image to be exported, as a PNG image for instance. |
java.util.Set |
getHiddenNodesInLinks()
Called by InternalFrame.showViewFrame() for building up the extended view. |
java.util.Map |
getIndexesOfNodeLocations()
Get the relative positions of nodes, for the GUI saving. |
int |
getLinksHashCode()
|
java.awt.Dimension |
getMaximumSize()
|
java.awt.Dimension |
getMinimumSize()
|
java.awt.Dimension |
getPreferredSize()
|
java.util.HashSet |
getRightsRelatedBaseObjects()
Gets the set of all the BaseObjects implied in gWork to define the rights. |
protected BaseObject |
getSelectedObjectOnMouseClicked(java.awt.event.MouseEvent _e)
Called by mouseClicked() to find the BaseObject in the view on which the user has clicked. |
java.lang.String |
getWhyText()
Get the current comments that the program has generated to explain the current view rights. |
protected void |
initialize()
Initializes nodesNumber_, m_l_DisplayableLinks_, l_allNodesInLinks_, and set the GraphicNodes locations. |
void |
mouseClicked(java.awt.event.MouseEvent _e)
Through a click on a view object, select the object in the explorer and the beamer. |
void |
mouseDragged(java.awt.event.MouseEvent _e)
If the mouse is dragged from a view node position to another view node position, the two nodes are permutted. |
void |
mouseEntered(java.awt.event.MouseEvent _e)
No action. |
void |
mouseExited(java.awt.event.MouseEvent _e)
No action. |
void |
mouseMoved(java.awt.event.MouseEvent _e)
No action. |
void |
mousePressed(java.awt.event.MouseEvent _e)
No action. |
void |
mouseReleased(java.awt.event.MouseEvent _e)
If the mouse has been dragged from a view node position to another view node position, the two nodes are permutted when the mouse is released. |
protected void |
paintComponent(java.awt.Graphics _g)
Paint the GraphicView. |
void |
removeWaitingMessage()
Removes at the top left corner of the view, the user message 'Please wait...' in green. |
void |
resetGraphicView()
This central method resets the view after a view nodes changing. |
void |
resetRights()
Draws the new arrows and rights after a change in the rights, with no change in GraphicNodes. |
protected void |
setGraphicNodeLocations(ImmutableName _newNodeName,
java.util.Map _m_GraphicNodesPosition)
Add/remove to the graphic view a base object and its location, if non-null, and restores the old locations for the old objects. |
protected void |
setGraphicNodes()
Sets the GraphicNodes in a 16, 25, 49 or 100 nodes layout in the JPanel, with their absolute coordinates. |
protected java.awt.Point[] |
setGraphicNodesPositions(int _nodesNumber,
boolean _initial)
Sets the space of all the allowed positions for the nodes in the view, while the method setGraphicNodeLocations provides the effective location of each node. |
void |
setIndexesOfNodeLocations(java.util.Map<ImmutableName,java.lang.Integer> _m_positionIndex)
Sets the relative positions of nodes, after a GUI saving. |
protected static java.awt.geom.Point2D.Float[] |
setPoint2DForArrowAndRights(ImmutableName _end_one,
ImmutableName _end_two,
java.util.Map _m_gNodeBoundsModel,
int _epArrowsCount)
Sets the absolute positions of the line or arrow for a pair of GraphicNodes, by the mean of the shape positions for the 2 GraphicRects that are associated to the pair. |
void |
setRightsRelatedBaseObjects(java.util.HashSet _l_baseObjects)
These BaseObjects are provided by the gWork classes. |
protected void |
setViewSize(int _nodesNumber)
Set the size of the JPanel when the view contains less than 47 elements. |
javax.swing.JTextPane |
setWhyText()
Sets the comments that the gWork package generates to explain the view rights. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, 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 |
---|
protected static final int PRIME
protected static final int INITIAL_CAPACITY
protected static final int RIGHTS_SHIFT
protected static final int BORDER
protected static final float ARROW_HEAD_LENGTH
protected static final float ARROW_HEAD_ANGLE
protected static final java.awt.BasicStroke DASHED_STROKE
protected static final java.awt.BasicStroke DOUBLEWIDTH_STROKE
protected static final java.awt.BasicStroke DASHED_DOUBLEWIDTH_STROKE
protected static final java.awt.BasicStroke BASIC_STROKE
protected static final java.lang.Object[] NULL_SHAPE_ARRAY
protected static final int NODE_DISTANCE
protected static final java.lang.String WAITING_TEXT
protected final java.util.Map<ImmutableName,GraphicNode> m_GraphicNodes_
protected final java.util.Map<ImmutableName,java.awt.geom.Rectangle2D> m_GraphicNodesBounds_
protected java.util.Map<ImmutableName,java.util.List<DisplayableLinkImpl>> m_l_DisplayableLinks_
protected java.lang.Object[] l_LinksAndRights_
protected java.lang.Object[] l_currentArrowsAndRightsStarts_
protected ViewInBase viewInBase_
protected javax.swing.JTextPane whyText_
protected java.util.Set<BaseObject> l_allNodesInLinks_
protected java.util.HashSet<BaseObject> l_rightsRelatedBaseObjects_
protected int nodesNumber_
protected ImmutableName dragSourceNodeName_
protected ImmutableName dragTargetNodeName_
protected boolean mouseDragged_
Constructor Detail |
---|
public GraphicView()
public GraphicView(ViewInBase _view, java.util.Map _m_positionIndex) throws ProcessError
_view
- EPRViewInBase to associate to this instance._m_positionIndex
- is the map (name, Integer) of the map returned
by getIndexesOfNodeLocations() at the previous view opening. May be null.
ProcessError
- if there is a loop in the access paths searchingMethod Detail |
---|
protected void initialize() throws ProcessError, java.lang.InterruptedException
InterruptedException,
- ProcessError if there is a loop in the rights search
ProcessError
java.lang.InterruptedException
public final java.awt.image.BufferedImage getExportImage()
public void resetRights() throws ProcessError, java.lang.InterruptedException
ProcessError
- if there is a loop in the rights search
java.lang.InterruptedException
public void resetGraphicView() throws ProcessError, java.lang.InterruptedException
ProcessError
- if there is a loop in the rights search
java.lang.InterruptedException
public final void mouseClicked(java.awt.event.MouseEvent _e)
mouseClicked
in interface java.awt.event.MouseListener
_e
- is the eventprotected BaseObject getSelectedObjectOnMouseClicked(java.awt.event.MouseEvent _e)
_e
- is the event
public final void mouseEntered(java.awt.event.MouseEvent _e)
mouseEntered
in interface java.awt.event.MouseListener
_e
- is the eventpublic final void mouseExited(java.awt.event.MouseEvent _e)
mouseExited
in interface java.awt.event.MouseListener
_e
- is the eventpublic final void mousePressed(java.awt.event.MouseEvent _e)
mousePressed
in interface java.awt.event.MouseListener
_e
- is the eventpublic final void mouseMoved(java.awt.event.MouseEvent _e)
mouseMoved
in interface java.awt.event.MouseMotionListener
_e
- is the eventpublic void mouseReleased(java.awt.event.MouseEvent _e)
Caution: dragSourceNodeName_ is set by mouseDragged() that searches among the node positions. The user has to not be too fast, if there are a big number of nodes.
Overridden method in GraphicSketchView and GraphicNoThanView.
mouseReleased
in interface java.awt.event.MouseListener
_e
- is the eventpublic void mouseDragged(java.awt.event.MouseEvent _e)
mouseDragged
in interface java.awt.event.MouseMotionListener
_e
- is the eventmouseReleased(java.awt.event.MouseEvent)
public final java.util.Map getIndexesOfNodeLocations()
public final void setIndexesOfNodeLocations(java.util.Map<ImmutableName,java.lang.Integer> _m_positionIndex)
_m_positionIndex
- Map of indexes in the GraphicNode Points array,
where the node name is the key. Never null.public ViewInBase getEorDataModel()
public java.util.Set getAllNodesInLinks()
public java.util.Set getHiddenNodesInLinks()
public java.util.HashSet getRightsRelatedBaseObjects()
public void setRightsRelatedBaseObjects(java.util.HashSet _l_baseObjects)
_l_baseObjects
- BaseObject set. May be null.public int getLinksHashCode()
public java.lang.String getWhyText()
public javax.swing.JTextPane setWhyText()
public void finalizeForGui()
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public java.awt.Dimension getMaximumSize()
getMaximumSize
in class javax.swing.JComponent
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public void addWaitingMessage()
The map m_GraphicNodes_ is updated, but not m_GraphicNodesBounds_.
Called by GraphicViewBaseListenerImpl.updateFrameViewRights(), GraphicViewPropertyEditor.propertyChange() just before the call of resetRights(), and resetGraphicView() just before a call to repaint(). After the call of one of this method, the user message has to be removed through a call to removeWaitingMessage(). No use with resetGraphicView().
This method has to be called only in the event dispatch thread, to avoir any thread collision.
public void removeWaitingMessage()
The map m_GraphicNodes_ is updated, but not m_GraphicNodesBounds_.
Called by GraphicViewBaseListenerImpl.changeFrameView() and updateFrameViewRights(), and by GraphicViewPropertyEditor.propertyChange() just before the call to repaint().
Called only in the event dispatch thread, but the method is synchronized to detect any thread collision. No operation if there is no waiting message in the view.
protected void paintComponent(java.awt.Graphics _g)
paintComponent
in class javax.swing.JComponent
_g
- Graphics.protected void setGraphicNodes()
protected final java.awt.Point[] setGraphicNodesPositions(int _nodesNumber, boolean _initial)
one between 8 and 12 nodes (25 positions);
one between 13 and 20 nodes (49 possible positions),
and one for the values from 21 to 46 nodes (100 possible positions).
Each node position is at the top left corner of the node. Must be called always after setViewSize(). Called by setGraphicNodes(), mouseReleased(), setGraphicNodeLocations(), GraphicEPRView.setGraphicNodes() and GraphicNoThanView.setGraphicNodes(). Overridden by the GraphicSketchView method.
_nodesNumber
- is the number of BaseObjects in the view. May be 0.
No operation if it is superior to 46 or negative._initial
- true if it is for the initial view where the nodes are put
on a circle or a scare
protected void setGraphicNodeLocations(ImmutableName _newNodeName, java.util.Map _m_GraphicNodesPosition)
_newNodeName
- name of the base object to add. May be null._m_GraphicNodesPosition
- is the map of the old locations. May be empty.protected void setViewSize(int _nodesNumber)
_nodesNumber
- is the number of BaseObjects in the view.
No operation if it is superior to 47 or negative.protected java.lang.Object[] buildUpArrowsAndRights(java.util.Map _m_l_DisplayableLinks, java.util.Map _m_gNodeBoundsModel)
_m_l_DisplayableLinks
- is the Map of DisplayableLinks lists (one per pair)
associated to the view._m_gNodeBoundsModel
- is the Map of the node bounds for the shapes
in the GraphicView.
protected static final java.awt.geom.Point2D.Float[] setPoint2DForArrowAndRights(ImmutableName _end_one, ImmutableName _end_two, java.util.Map _m_gNodeBoundsModel, int _epArrowsCount)
_end_one
- is the name of a GraphicNode to display_end_two
- is the name of a GraphicNode to display_m_gNodeBoundsModel
- is the Map of the node bounds in the GraphicView,
where the GraphiNode name is the key._epArrowsCount
- is the number of arrows already drawn for the node,
+ 1.
protected void drawArrowsAndRights(java.awt.Graphics2D _g2)
_g2
- is the Graphics2D to draw
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |