wt.clients.tools.transfer
Class ExportGraphViewLinkRenderer

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

public class ExportGraphViewLinkRenderer
extends Component
implements Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected static int AMPLITUDE
           
protected static int ARROW_ANGLE
           
protected static int ARROW_LENGTH
           
private  Point center
           
(package private) static float[] dash1
           
(package private) static BasicStroke dashed
           
 Color descriptionBackgroundColor
           
private  Point descriptionLocation
           
 Color excludedColor
           
 Font f
           
 Font f1
           
 Font f2
           
 Font f4
           
 Font f6
           
static int FONT_SIZE
           
private  Point fromPoint
           
private  ExportGraphLink graphLink
           
private  ExportGraphView graphView
           
static int ICON_HEIGHT
           
static int ICON_WIDTH
           
 Color lineColor
           
 Color lineSelectedColor
           
private  int linkTotal
           
private  int[] linkX
           
private  int[] linkY
           
static int MARGIN
           
private  Point midPoint
           
private static int NUMBER_OF_POINTS_IN_CIRCLE
           
static int PAD_HEIGHT
           
static int PAD_WIDTH
           
private  double radius
           
protected static int SELECTION_MARGIN
           
(package private) static BasicStroke stroke
           
 Color textColor
           
private  Point textPoint
           
private  Point toPoint
           
 
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
ExportGraphViewLinkRenderer()
           
 
Method Summary
protected  Point computePoint(Point from, Point to)
           
 void findCircle(double angle)
           
protected  Point fromPoint()
           
 Color getDescriptionBackgroundColor()
          Gets the value of the attribute: descriptionBackgroundColor.
 Point getDescriptionLocation()
          Gets the value of the attribute: descriptionLocation.
 ExportGraphLink getExportGraphLink()
          Gets the value of the attribute: graphLink.
 Point getFromPoint()
          Gets the value of the attribute: fromPoint.
 ExportGraphLink getGraphLink()
           
protected  ExportGraphView getGraphView()
           
 Component getGraphViewLinkRendererComponent(ExportGraphView pGraphView, GraphLink pLink)
           
 Color getLineColor()
          Gets the value of the attribute: lineColor.
 Color getLineSelectedColor()
          Gets the value of the attribute: lineSelectedColor.
 int getLinkTotal()
          Gets the value of the attribute: linkTotal.
 int[] getLinkX()
          Gets the value of the attribute: linkX.
 int[] getLinkY()
          Gets the value of the attribute: linkY.
 Polygon getSelectionZone()
           
 Point getToPoint()
          Gets the value of the attribute: toPoint.
 int getXFromCircle(int y)
           
 int getYFromCircle(int x)
           
 void paint(Graphics g)
           
 void paintDescription(Graphics2D g)
           
 void setArrowPolygon()
           
 void setArrowPolygon2()
           
 void setDescriptionBackgroundColor(Color a_DescriptionBackgroundColor)
          Sets the value of the attribute: descriptionBackgroundColor.
 void setDescriptionLocation()
           
 void setDescriptionLocation(Point a_DescriptionLocation)
          Sets the value of the attribute: descriptionLocation.
(package private)  int setFont(Graphics2D g, String text, int font_size)
           
 void setFromPoint(Point a_FromPoint)
          Sets the value of the attribute: fromPoint.
 void setGraphLink(ExportGraphLink a_GraphLink)
          Sets the value of the attribute: graphLink.
protected  void setGraphView(ExportGraphView a_GraphView)
          Sets the value of the attribute: GRAPH_VIEW.
 void setLineColor(Color a_LineColor)
          Sets the value of the attribute: lineColor.
 void setLineSelectedColor(Color a_LineSelectedColor)
          Sets the value of the attribute: lineSelectedColor.
 void setLink(ExportGraphLink pLink)
           
 void setLinkPolygon()
           
 void setLinkTotal(int a_LinkTotal)
          Sets the value of the attribute: linkTotal.
 void setLinkX(int[] a_LinkX)
          Sets the value of the attribute: linkX.
 void setLinkY(int[] a_LinkY)
          Sets the value of the attribute: linkY.
protected  Point toPoint()
           
 
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, getBackground, 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, 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, setBackground, 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

graphLink

private ExportGraphLink graphLink

fromPoint

private Point fromPoint

toPoint

private Point toPoint

midPoint

private Point midPoint

textPoint

private Point textPoint

center

private Point center

radius

private double radius

SELECTION_MARGIN

protected static final int SELECTION_MARGIN
See Also:
Constant Field Values

linkX

private int[] linkX

linkY

private int[] linkY

linkTotal

private int linkTotal

lineColor

public Color lineColor

lineSelectedColor

public Color lineSelectedColor

descriptionBackgroundColor

public Color descriptionBackgroundColor

excludedColor

public Color excludedColor

textColor

public Color textColor

descriptionLocation

private Point descriptionLocation

NUMBER_OF_POINTS_IN_CIRCLE

private static final int NUMBER_OF_POINTS_IN_CIRCLE
See Also:
Constant Field Values

AMPLITUDE

protected static final int AMPLITUDE
See Also:
Constant Field Values

ARROW_ANGLE

protected static final int ARROW_ANGLE
See Also:
Constant Field Values

ARROW_LENGTH

protected static final int ARROW_LENGTH
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

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

dash1

static final float[] dash1

dashed

static final BasicStroke dashed

stroke

static final BasicStroke stroke
Constructor Detail

ExportGraphViewLinkRenderer

public ExportGraphViewLinkRenderer()
Method Detail

getExportGraphLink

public ExportGraphLink getExportGraphLink()
Gets the value of the attribute: graphLink.

Returns:
GraphLink

getGraphLink

public ExportGraphLink getGraphLink()

setGraphLink

public void setGraphLink(ExportGraphLink a_GraphLink)
                  throws WTPropertyVetoException
Sets the value of the attribute: graphLink.

Parameters:
a_GraphLink -
Throws:
WTPropertyVetoException

getFromPoint

public Point getFromPoint()
Gets the value of the attribute: fromPoint.

Returns:
Point

setFromPoint

public void setFromPoint(Point a_FromPoint)
                  throws WTPropertyVetoException
Sets the value of the attribute: fromPoint.

Parameters:
a_FromPoint -
Throws:
WTPropertyVetoException

getToPoint

public Point getToPoint()
Gets the value of the attribute: toPoint.

Returns:
Point

getLinkX

public int[] getLinkX()
Gets the value of the attribute: linkX.

Returns:
int[]

setLinkX

public void setLinkX(int[] a_LinkX)
Sets the value of the attribute: linkX.

Parameters:
a_LinkX -

getLinkY

public int[] getLinkY()
Gets the value of the attribute: linkY.

Returns:
int[]

setLinkY

public void setLinkY(int[] a_LinkY)
Sets the value of the attribute: linkY.

Parameters:
a_LinkY -

getLinkTotal

public int getLinkTotal()
Gets the value of the attribute: linkTotal.

Returns:
int

setLinkTotal

public void setLinkTotal(int a_LinkTotal)
Sets the value of the attribute: linkTotal.

Parameters:
a_LinkTotal -

getLineColor

public Color getLineColor()
Gets the value of the attribute: lineColor.

Returns:
Color

setLineColor

public void setLineColor(Color a_LineColor)
                  throws WTPropertyVetoException
Sets the value of the attribute: lineColor.

Parameters:
a_LineColor -
Throws:
WTPropertyVetoException

getLineSelectedColor

public Color getLineSelectedColor()
Gets the value of the attribute: lineSelectedColor.

Returns:
Color

setLineSelectedColor

public void setLineSelectedColor(Color a_LineSelectedColor)
                          throws WTPropertyVetoException
Sets the value of the attribute: lineSelectedColor.

Parameters:
a_LineSelectedColor -
Throws:
WTPropertyVetoException

getDescriptionBackgroundColor

public Color getDescriptionBackgroundColor()
Gets the value of the attribute: descriptionBackgroundColor.

Returns:
Color

setDescriptionBackgroundColor

public void setDescriptionBackgroundColor(Color a_DescriptionBackgroundColor)
                                   throws WTPropertyVetoException
Sets the value of the attribute: descriptionBackgroundColor.

Parameters:
a_DescriptionBackgroundColor -
Throws:
WTPropertyVetoException

getDescriptionLocation

public Point getDescriptionLocation()
Gets the value of the attribute: descriptionLocation.

Returns:
Point

setDescriptionLocation

public void setDescriptionLocation(Point a_DescriptionLocation)
Sets the value of the attribute: descriptionLocation.

Parameters:
a_DescriptionLocation -

paint

public void paint(Graphics g)
Parameters:
g -

setFont

int setFont(Graphics2D g,
            String text,
            int font_size)
Parameters:
g -

paintDescription

public void paintDescription(Graphics2D g)

setArrowPolygon

public void setArrowPolygon()

setArrowPolygon2

public void setArrowPolygon2()

setLink

public void setLink(ExportGraphLink pLink)
Parameters:
pLink -

toPoint

protected Point toPoint()
Returns:
Point

fromPoint

protected Point fromPoint()
Returns:
Point

computePoint

protected Point computePoint(Point from,
                             Point to)
Parameters:
from -
to -
Returns:
Point

setLinkPolygon

public void setLinkPolygon()

findCircle

public void findCircle(double angle)

getYFromCircle

public int getYFromCircle(int x)

getXFromCircle

public int getXFromCircle(int y)

setDescriptionLocation

public void setDescriptionLocation()

getGraphViewLinkRendererComponent

public Component getGraphViewLinkRendererComponent(ExportGraphView pGraphView,
                                                   GraphLink pLink)
Parameters:
pGraphView -
pLink -
Returns:
Component

getSelectionZone

public Polygon getSelectionZone()
Returns:
Polygon

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