renderable
Class CommentArrow

java.lang.Object
  extended by renderable.CommentArrow

public class CommentArrow
extends java.lang.Object

Draws an arrow (triangle to make the comment look like a speech bubble) between a comment and its source.


Field Summary
(package private)  renderable.CommentArrow.Arrow arrow
          Internal Timer
(package private)  Comment comment
           
 
Constructor Summary
CommentArrow(Comment comment)
          Constructs this
 
Method Summary
 java.awt.Container getParent()
          This parent for this arrow
(package private)  boolean isActive()
          Returns whether this animation is active
 void setLocation(int x, int y)
          Set new location for arrow
 void setLocation(java.awt.Point p)
          set new location for arrow
 void setVisible(boolean b)
          Sets the visibility of the arrow component
 void updateArrow()
          update arrow properties according to current location of comment and commentSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comment

Comment comment

arrow

renderable.CommentArrow.Arrow arrow
Internal Timer

Constructor Detail

CommentArrow

public CommentArrow(Comment comment)
Constructs this

Method Detail

setLocation

public void setLocation(int x,
                        int y)
Set new location for arrow


setLocation

public void setLocation(java.awt.Point p)
set new location for arrow

Parameters:
p -

updateArrow

public void updateArrow()
update arrow properties according to current location of comment and commentSource


isActive

boolean isActive()
Returns whether this animation is active

Returns:
the active

setVisible

public void setVisible(boolean b)
Sets the visibility of the arrow component


getParent

public java.awt.Container getParent()
This parent for this arrow

Returns: