wt.clients.tools.transfer
Class ExportGraphViewCellRenderer

java.lang.Object
  extended byjava.awt.Component
      extended bywt.clients.tools.transfer.ExportGraphViewCellRenderer
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class ExportGraphViewCellRenderer
extends Component
implements Serializable

Befoire using this operation, you should set the Node nd the selection mode to the one that you need in order to be able to get the bounding box.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  Color background
           
private static String CLASSNAME
           
 Color descriptionBackgroundColor
           
(package private)  Image exclude
           
 Color excludedColor
           
 Font f
           
 Font f1
           
 Font f2
           
 Font f4
           
 Font f6
           
static int FONT_SIZE
           
(package private)  Image ghost
           
 Color ghostColor
           
private  ExportGraphNode graphNode
           
private  ExportGraphView graphView
           
static int ICON_HEIGHT
           
static int ICON_WIDTH
           
 Color lineColor
           
static int MARGIN
           
(package private)  Image minus
           
static int PAD_HEIGHT
           
static int PAD_WIDTH
           
(package private)  Image plus
           
private static String RESOURCE
           
 Color selectedColor
           
private static String versionID
           
 
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
ExportGraphViewCellRenderer()
           
 
Method Summary
 Color getBackground()
          Gets the value of the attribute: background;
 ExportGraphNode getGraphNode()
          Gets the value of the attribute: graphNode;
protected  ExportGraphView getGraphView()
           
 Component getGraphViewCellRendererComponent(ExportGraphView pGraphView, GraphNode pNode)
           
 Point getLocation()
           
 Polygon getSelectionZone()
           
 void paint(Graphics g)
           
 void setBackground(Color a_Background)
          Sets the value of the attribute: background;
(package private)  int setFont(Graphics2D g, String text, int font_size)
           
 void setGraphNode(GraphNode a_GraphNode)
          Sets the value of the attribute: graphNode;
protected  void setGraphView(ExportGraphView a_GraphView)
          Sets the value of the attribute: GRAPH_VIEW.
 void setNode(GraphNode pNode)
           
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

graphNode

private ExportGraphNode graphNode

background

private Color background

lineColor

public Color lineColor

selectedColor

public Color selectedColor

descriptionBackgroundColor

public Color descriptionBackgroundColor

excludedColor

public Color excludedColor

ghostColor

public Color ghostColor

plus

Image plus

minus

Image minus

ghost

Image ghost

exclude

Image exclude

graphView

private ExportGraphView graphView

MARGIN

public static final int MARGIN
See Also:
Constant Field Values

ICON_WIDTH

public static final int ICON_WIDTH
See Also:
Constant Field Values

ICON_HEIGHT

public static final int ICON_HEIGHT
See Also:
Constant Field Values

PAD_WIDTH

public static final int PAD_WIDTH
See Also:
Constant Field Values

PAD_HEIGHT

public static final int PAD_HEIGHT
See Also:
Constant Field Values

FONT_SIZE

public static final int FONT_SIZE
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

f

public Font f

f1

public Font f1

f2

public Font f2

f4

public Font f4

f6

public Font f6
Constructor Detail

ExportGraphViewCellRenderer

public ExportGraphViewCellRenderer()
Method Detail

getGraphNode

public ExportGraphNode getGraphNode()
Gets the value of the attribute: graphNode;

Returns:
GraphNode

setGraphNode

public void setGraphNode(GraphNode a_GraphNode)
                  throws WTPropertyVetoException
Sets the value of the attribute: graphNode;

Parameters:
a_GraphNode -
Throws:
WTPropertyVetoException

getBackground

public Color getBackground()
Gets the value of the attribute: background;

Returns:
Color

setBackground

public void setBackground(Color a_Background)
Sets the value of the attribute: background;

Parameters:
a_Background -

paint

public void paint(Graphics g)
Parameters:
g -

getLocation

public Point getLocation()
Returns:
Point

setNode

public void setNode(GraphNode pNode)
Parameters:
pNode -

getGraphViewCellRendererComponent

public Component getGraphViewCellRendererComponent(ExportGraphView pGraphView,
                                                   GraphNode pNode)
Parameters:
pGraphView -
pNode -
Returns:
Component

getSelectionZone

public Polygon getSelectionZone()
Returns:
Polygon

setFont

int setFont(Graphics2D g,
            String text,
            int font_size)

getGraphView

protected ExportGraphView getGraphView()

setGraphView

protected void setGraphView(ExportGraphView a_GraphView)
                     throws WTPropertyVetoException
Sets the value of the attribute: GRAPH_VIEW.

Parameters:
a_GraphView -
Throws:
WTPropertyVetoException