com.moneydance.awt.graph
Class BalloonHelp

java.lang.Object
  extended bycom.moneydance.awt.graph.BalloonHelp

public class BalloonHelp
extends java.lang.Object

Description: This is a class that represents and draws information in a little "ballon help" window. ------------------------------------------------------------------------ $Author: sreilly $ $Date: 2001/01/31 19:31:12 $ $Revision: 1.1 $


Field Summary
static int ROUNDED
           
static int SQUARED
           
 
Constructor Summary
BalloonHelp(GraphDataSet dataSet, boolean showShadow, java.awt.Polygon myArea, java.awt.Dimension theCanvasSize)
          Construct a new BalloonHelp object.
BalloonHelp(GraphDataSet dataSet, boolean showShadow, java.awt.Rectangle myArea, java.awt.Dimension theCanvasSize)
          Construct a new BalloonHelp object.
BalloonHelp(GraphDataSet dataSet, java.awt.Polygon myArea, java.awt.Dimension theCanvasSize)
          Construct a new BalloonHelp object.
BalloonHelp(GraphDataSet dataSet, java.awt.Rectangle myArea, java.awt.Dimension theCanvasSize)
          Construct a new BalloonHelp object.
 
Method Summary
 void drawBalloon(java.awt.Graphics g, int x, int y)
          Draw the balloon at the specified location.
 java.awt.Dimension getBallonSize(java.awt.Graphics g)
          Get's the screen size of the balloon.
 void handleMouseInside(java.awt.Graphics g, int x, int y)
          Tells the balloon that the mouse is inside it's area, so it should draw itself on the screen.
 boolean isMouseInside(int x, int y)
          Asks if the mouse is inside the area covered by this help balloon.
 boolean isMouseInside(java.awt.Point p)
          Asks if the mouse is inside the area covered by this help balloon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQUARED

public static final int SQUARED
See Also:
Constant Field Values

ROUNDED

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

BalloonHelp

public BalloonHelp(GraphDataSet dataSet,
                   boolean showShadow,
                   java.awt.Polygon myArea,
                   java.awt.Dimension theCanvasSize)
Construct a new BalloonHelp object.

Parameters:
dataSet - The dataset that the balloon help describes
showShadow - indicates whether or not we should show the shadow
myArea - the area over which the balloon help applies.
theCanvasSize - the size of the graph canvas

BalloonHelp

public BalloonHelp(GraphDataSet dataSet,
                   java.awt.Polygon myArea,
                   java.awt.Dimension theCanvasSize)
Construct a new BalloonHelp object.

Parameters:
dataSet - The dataset that the balloon help describes
myArea - the area over which the balloon help applies.
theCanvasSize - the size of the graph canvas

BalloonHelp

public BalloonHelp(GraphDataSet dataSet,
                   java.awt.Rectangle myArea,
                   java.awt.Dimension theCanvasSize)
Construct a new BalloonHelp object.

Parameters:
dataSet - The dataset that the balloon help describes
myArea - the area over which the balloon help applies.
theCanvasSize - the size of the graph canvas

BalloonHelp

public BalloonHelp(GraphDataSet dataSet,
                   boolean showShadow,
                   java.awt.Rectangle myArea,
                   java.awt.Dimension theCanvasSize)
Construct a new BalloonHelp object.

Parameters:
dataSet - The dataset that the balloon help describes
showShadow - indicates whether or not we should show the shadow
myArea - the area over which the balloon help applies.
theCanvasSize - the size of the graph canvas
Method Detail

getBallonSize

public java.awt.Dimension getBallonSize(java.awt.Graphics g)
Get's the screen size of the balloon.


isMouseInside

public boolean isMouseInside(java.awt.Point p)
Asks if the mouse is inside the area covered by this help balloon.


isMouseInside

public boolean isMouseInside(int x,
                             int y)
Asks if the mouse is inside the area covered by this help balloon.


handleMouseInside

public void handleMouseInside(java.awt.Graphics g,
                              int x,
                              int y)
Tells the balloon that the mouse is inside it's area, so it should draw itself on the screen.


drawBalloon

public void drawBalloon(java.awt.Graphics g,
                        int x,
                        int y)
Draw the balloon at the specified location.