ARoad0.Gui2
Class GraphicNode

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by ARoad0.Gui2.GraphicNode
All Implemented Interfaces:
MVC_View, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
GraphicAccount, GraphicActor, GraphicContainer, GraphicGroup, GraphicResource, GraphicText, GraphicVirtualFolder

public abstract class GraphicNode
extends javax.swing.JComponent
implements MVC_View

This class is responsible for managing the display of one graphic object in a GraphicView. It registers the entity and all its links to other entities in the GraphicView.

See Also:
ViewInBaseImpl, Serialized Form

Nested Class Summary
 
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
static float COLUMN_SPACE
          space between 2 GraphicNodes columns.
static java.awt.Dimension EIGHT_NODES_VIEW_SIZE
          Dimension of a 4x4 positions view for up to 7 nodes
static java.awt.Dimension ELEVEN_NODES_SKETCH_VIEW_SIZE
          Dimension of a 11 positions sketch view
static java.awt.Dimension FORTY_SIX_NODES_VIEW_SIZE
          Dimension of a 10x10 positions view for 46 nodes, using half-spaces between nodes
static java.awt.Dimension FOUR_NODES_VIEW_SIZE
          Dimension of a 9 positions view for 4 nodes.
static int FOURTY_NINE_GRID_HEIGHT
           
static int FOURTY_NINE_GRID_WIDTH
           
static int HUNDRED_GRID_HEIGHT
           
static int HUNDRED_GRID_WIDTH
           
static java.awt.Point[] L_EIGHT_NODES_POINTS
          Array of the nodes locations for a 8 nodes view.
static java.awt.Point[] L_ELEVEN_NODES_SKETCH_GRID
          Array of the node locations for a grid of 11 positions in a rectangular, for a 11-nodes sketch view.
static java.awt.Point[] L_FOUR_NODES_POINTS
          Array of the nodes locations for a 4 nodes view.
static java.awt.Point[] L_FOURTY_NINE_GRID
          Array of the nodes locations for a grid of 7x7 positions in a rectangular, for a 24-nodes view, with half spaces between locations.
static java.awt.Point[] L_NINE_GRID
          Array of the nodes locations for a grid of 9 positions in a rectangular, for a view with less than 5 nodes.
static java.awt.Point[] L_NOTHAN_NINE_GRID
          Array of the nodes locations for a grid of 9 positions in a rectangular, for the Eligible Parties of a NoThan view.
static java.awt.Point[] L_ONE_HUNDRED_GRID
          Array of the nodes locations for a grid of 10x10 positions in a rectangular, for a 48-nodes view, with half spaces between locations.
static java.awt.Point[] L_SEVEN_NODES_SKETCH_GRID
          Array of the node locations for a grid of 7 positions in a rectangular, for a 7-nodes sketch view.
static java.awt.Point[] L_SIXTEEN_GRID
          Array of the nodes locations for a grid of 4x4 positions in a rectangular, for a 7-nodes view
static java.awt.Point[] L_TWELVE_NODES_POINTS
          Array of the 12 nodes locations in a circle.
static java.awt.Point[] L_TWENTY_FIVE_GRID
          Array of the nodes locations for a grid of 5x5 positions in a rectangular, for a 12-nodes view.
static java.awt.Point[] L_TWENTYONE_NODES_SKETCH_GRID
          Array of the node locations for a grid of 21 positions in a rectangular, for a 21-nodes sketch view.
static int NAME_PART
          lenght of the name portion.
static float NODE_SIZE
          size reference for the GraphicNode.
static java.awt.Point POINT_12_0
          Point 0 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_1
          Point 1 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_10
          Point 10 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_11
          Point 11 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_2
          Point 2 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_3
          Point 3 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_4
          Point 4 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_5
          Point 5 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_6
          Point 6 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_7
          Point 7 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_8
          Point 8 in the draw of a view with 12 elements.
static java.awt.Point POINT_12_9
          Point 9 in the draw of a view with 12 elements.
static java.awt.Point POINT_4_0
          Point 0 in the draw of a view with 4 elements.
static java.awt.Point POINT_4_1
          Point 1 in the draw of a view with 4 elements.
static java.awt.Point POINT_4_2
          Point 2 in the draw of a view with 4 elements.
static java.awt.Point POINT_4_3
          Point 3 in the draw of a view with 4 elements.
static java.awt.Point POINT_8_0
          Point 0 in the draw of a view with 8 elements.
static java.awt.Point POINT_8_1
          Point 1 in the draw of a view with 8 elements.
static java.awt.Point POINT_8_2
          Point 2 in the draw of a view with 8 elements.
static java.awt.Point POINT_8_3
          Point 3 in the draw of a view with 8 elements.
static java.awt.Point POINT_8_4
          Point 0 in the draw of a view with 8 elements.
static java.awt.Point POINT_8_5
          Point 0 in the draw of a view with 8 elements.
static java.awt.Point POINT_8_6
          Point 0 in the draw of a view with 8 elements.
static java.awt.Point POINT_8_7
          Point 0 in the draw of a view with 8 elements.
static int RIGHTS_PART
          lenght of the rights string in GraphicView.
static float ROW_SPACE
          space between 2 GraphicNodes rows.
static java.awt.Dimension SEVEN_NODES_SKETCH_VIEW_SIZE
          Dimension of a 7 positions sketch view
static java.awt.Dimension TAB_SIZE
          Dimension of a 'See why' JTextPane
static java.awt.Dimension THREE_NODES_VIEW_SIZE
          Dimension of a 9 positions view for 3 nodes.
static java.awt.Dimension TWELVE_NODES_VIEW_SIZE
          Dimension of a 5x5 positions view for up to 12 nodes
static int TWENTY_FIVE_GRID_HEIGHT
           
static int TWENTY_FIVE_GRID_WIDTH
           
static java.awt.Dimension TWENTY_FOUR_NODES_VIEW_SIZE
          Dimension of a 7x7 positions view for up to 24 nodes, using half-spaces between nodes
static java.awt.Dimension TWENTYONE_NODES_SKETCH_VIEW_SIZE
          Dimension of a 21 positions sketch view - like the previous one
static java.awt.Dimension VIEW_INTAB_SIZE
          Dimension for a GraphicView
 
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
GraphicNode()
           
 
Method Summary
 java.lang.String[] getDisplayableName()
          No use.
 BaseObject getEorBaseObject()
          No use.
 java.awt.Shape getShape()
          No use.
 void paintComponentForExport(java.awt.Graphics _g)
          Overridden by the subclasses.
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, updateUI
 
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

NODE_SIZE

public static final float NODE_SIZE
size reference for the GraphicNode.

See Also:
Constant Field Values

COLUMN_SPACE

public static final float COLUMN_SPACE
space between 2 GraphicNodes columns.

See Also:
Constant Field Values

ROW_SPACE

public static final float ROW_SPACE
space between 2 GraphicNodes rows.

See Also:
Constant Field Values

NAME_PART

public static final int NAME_PART
lenght of the name portion.

See Also:
Constant Field Values

RIGHTS_PART

public static final int RIGHTS_PART
lenght of the rights string in GraphicView. in GraphicView, the rights string is cut to the value if its lenght is superior to 4/3 of this value.

See Also:
Constant Field Values

POINT_4_0

public static final java.awt.Point POINT_4_0
Point 0 in the draw of a view with 4 elements.


POINT_4_1

public static final java.awt.Point POINT_4_1
Point 1 in the draw of a view with 4 elements.


POINT_4_2

public static final java.awt.Point POINT_4_2
Point 2 in the draw of a view with 4 elements.


POINT_4_3

public static final java.awt.Point POINT_4_3
Point 3 in the draw of a view with 4 elements.


POINT_8_0

public static final java.awt.Point POINT_8_0
Point 0 in the draw of a view with 8 elements.


POINT_8_1

public static final java.awt.Point POINT_8_1
Point 1 in the draw of a view with 8 elements.


POINT_8_2

public static final java.awt.Point POINT_8_2
Point 2 in the draw of a view with 8 elements.


POINT_8_3

public static final java.awt.Point POINT_8_3
Point 3 in the draw of a view with 8 elements.


POINT_8_4

public static final java.awt.Point POINT_8_4
Point 0 in the draw of a view with 8 elements.


POINT_8_5

public static final java.awt.Point POINT_8_5
Point 0 in the draw of a view with 8 elements.


POINT_8_6

public static final java.awt.Point POINT_8_6
Point 0 in the draw of a view with 8 elements.


POINT_8_7

public static final java.awt.Point POINT_8_7
Point 0 in the draw of a view with 8 elements.


POINT_12_0

public static final java.awt.Point POINT_12_0
Point 0 in the draw of a view with 12 elements.


POINT_12_1

public static final java.awt.Point POINT_12_1
Point 1 in the draw of a view with 12 elements.


POINT_12_2

public static final java.awt.Point POINT_12_2
Point 2 in the draw of a view with 12 elements.


POINT_12_3

public static final java.awt.Point POINT_12_3
Point 3 in the draw of a view with 12 elements.


POINT_12_4

public static final java.awt.Point POINT_12_4
Point 4 in the draw of a view with 12 elements.


POINT_12_5

public static final java.awt.Point POINT_12_5
Point 5 in the draw of a view with 12 elements.


POINT_12_6

public static final java.awt.Point POINT_12_6
Point 6 in the draw of a view with 12 elements.


POINT_12_7

public static final java.awt.Point POINT_12_7
Point 7 in the draw of a view with 12 elements.


POINT_12_8

public static final java.awt.Point POINT_12_8
Point 8 in the draw of a view with 12 elements.


POINT_12_9

public static final java.awt.Point POINT_12_9
Point 9 in the draw of a view with 12 elements.


POINT_12_10

public static final java.awt.Point POINT_12_10
Point 10 in the draw of a view with 12 elements.


POINT_12_11

public static final java.awt.Point POINT_12_11
Point 11 in the draw of a view with 12 elements.


L_FOUR_NODES_POINTS

public static final java.awt.Point[] L_FOUR_NODES_POINTS
Array of the nodes locations for a 4 nodes view. No use.


L_EIGHT_NODES_POINTS

public static final java.awt.Point[] L_EIGHT_NODES_POINTS
Array of the nodes locations for a 8 nodes view. No use.


L_TWELVE_NODES_POINTS

public static final java.awt.Point[] L_TWELVE_NODES_POINTS
Array of the 12 nodes locations in a circle.


L_NINE_GRID

public static final java.awt.Point[] L_NINE_GRID
Array of the nodes locations for a grid of 9 positions in a rectangular, for a view with less than 5 nodes.


L_NOTHAN_NINE_GRID

public static final java.awt.Point[] L_NOTHAN_NINE_GRID
Array of the nodes locations for a grid of 9 positions in a rectangular, for the Eligible Parties of a NoThan view.


L_SIXTEEN_GRID

public static final java.awt.Point[] L_SIXTEEN_GRID
Array of the nodes locations for a grid of 4x4 positions in a rectangular, for a 7-nodes view


L_TWENTY_FIVE_GRID

public static final java.awt.Point[] L_TWENTY_FIVE_GRID
Array of the nodes locations for a grid of 5x5 positions in a rectangular, for a 12-nodes view. Initialized in a static field.


L_FOURTY_NINE_GRID

public static final java.awt.Point[] L_FOURTY_NINE_GRID
Array of the nodes locations for a grid of 7x7 positions in a rectangular, for a 24-nodes view, with half spaces between locations. Initialized in a static field.


L_ONE_HUNDRED_GRID

public static final java.awt.Point[] L_ONE_HUNDRED_GRID
Array of the nodes locations for a grid of 10x10 positions in a rectangular, for a 48-nodes view, with half spaces between locations. Initialized in a static field.


L_SEVEN_NODES_SKETCH_GRID

public static final java.awt.Point[] L_SEVEN_NODES_SKETCH_GRID
Array of the node locations for a grid of 7 positions in a rectangular, for a 7-nodes sketch view. The index for the center is always (lenght - 1)/2 (3, there).


L_ELEVEN_NODES_SKETCH_GRID

public static final java.awt.Point[] L_ELEVEN_NODES_SKETCH_GRID
Array of the node locations for a grid of 11 positions in a rectangular, for a 11-nodes sketch view. The index for the center is always (lenght - 1)/2 (5, there).


L_TWENTYONE_NODES_SKETCH_GRID

public static final java.awt.Point[] L_TWENTYONE_NODES_SKETCH_GRID
Array of the node locations for a grid of 21 positions in a rectangular, for a 21-nodes sketch view. The index for the center is always (lenght - 1)/2 (10, there).


TAB_SIZE

public static final java.awt.Dimension TAB_SIZE
Dimension of a 'See why' JTextPane


VIEW_INTAB_SIZE

public static final java.awt.Dimension VIEW_INTAB_SIZE
Dimension for a GraphicView


THREE_NODES_VIEW_SIZE

public static final java.awt.Dimension THREE_NODES_VIEW_SIZE
Dimension of a 9 positions view for 3 nodes. Usefull when the view is in a dedicated internal frame. No use.


FOUR_NODES_VIEW_SIZE

public static final java.awt.Dimension FOUR_NODES_VIEW_SIZE
Dimension of a 9 positions view for 4 nodes. No use.


EIGHT_NODES_VIEW_SIZE

public static final java.awt.Dimension EIGHT_NODES_VIEW_SIZE
Dimension of a 4x4 positions view for up to 7 nodes


TWELVE_NODES_VIEW_SIZE

public static final java.awt.Dimension TWELVE_NODES_VIEW_SIZE
Dimension of a 5x5 positions view for up to 12 nodes


TWENTY_FOUR_NODES_VIEW_SIZE

public static final java.awt.Dimension TWENTY_FOUR_NODES_VIEW_SIZE
Dimension of a 7x7 positions view for up to 24 nodes, using half-spaces between nodes


FORTY_SIX_NODES_VIEW_SIZE

public static final java.awt.Dimension FORTY_SIX_NODES_VIEW_SIZE
Dimension of a 10x10 positions view for 46 nodes, using half-spaces between nodes


SEVEN_NODES_SKETCH_VIEW_SIZE

public static final java.awt.Dimension SEVEN_NODES_SKETCH_VIEW_SIZE
Dimension of a 7 positions sketch view


ELEVEN_NODES_SKETCH_VIEW_SIZE

public static final java.awt.Dimension ELEVEN_NODES_SKETCH_VIEW_SIZE
Dimension of a 11 positions sketch view


TWENTYONE_NODES_SKETCH_VIEW_SIZE

public static final java.awt.Dimension TWENTYONE_NODES_SKETCH_VIEW_SIZE
Dimension of a 21 positions sketch view - like the previous one


TWENTY_FIVE_GRID_WIDTH

public static final int TWENTY_FIVE_GRID_WIDTH
See Also:
Constant Field Values

TWENTY_FIVE_GRID_HEIGHT

public static final int TWENTY_FIVE_GRID_HEIGHT
See Also:
Constant Field Values

FOURTY_NINE_GRID_WIDTH

public static final int FOURTY_NINE_GRID_WIDTH
See Also:
Constant Field Values

FOURTY_NINE_GRID_HEIGHT

public static final int FOURTY_NINE_GRID_HEIGHT
See Also:
Constant Field Values

HUNDRED_GRID_WIDTH

public static final int HUNDRED_GRID_WIDTH
See Also:
Constant Field Values

HUNDRED_GRID_HEIGHT

public static final int HUNDRED_GRID_HEIGHT
See Also:
Constant Field Values
Constructor Detail

GraphicNode

public GraphicNode()
Method Detail

getEorBaseObject

public BaseObject getEorBaseObject()
No use. Overridden by the subclasses.

Returns:
the BaseObject associated to the GraphicNode

getShape

public java.awt.Shape getShape()
No use. Overridden by the subclasses.

Returns:
the Shape drawn by the GraphicNode

paintComponentForExport

public void paintComponentForExport(java.awt.Graphics _g)
Overridden by the subclasses.

Parameters:
_g - Graphics to be drawn.

getDisplayableName

public java.lang.String[] getDisplayableName()
No use. Overridden by the subclasses.

Returns:
the node name to display in several parts