public class Bubble
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Bubble()
Creates a new
Bubble object. |
Bubble(double x,
double y)
Creates a new
Bubble object with the given x y value. |
Bubble(double x,
double y,
double value)
Creates a new
Bubble object with a given value and x y value. |
Bubble(java.lang.String text)
Creates a new
Bubble object with a given text. |
Bubble(java.lang.String text,
double x,
double y)
Creates a new
Bubble object with a given text and x y value. |
Bubble(java.lang.String text,
double x,
double y,
double value)
Creates a new
Bubble object with the text and the value and x y value. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Gets the text of the bubble.
|
double |
getValue()
Gets the value of the bubble.
|
double |
getX()
Gets the x value of the bubble.
|
double |
getY()
Gets the y value of the bubble.
|
void |
setText(java.lang.String text)
Sets the text of the bubble.
|
void |
setValue(double value)
Sets the value of the bubble.
|
void |
setX(double x)
Sets the x value of the bubble ,
X value is used to set the position of the bubble along x axis.
|
void |
setY(double y)
Sets the y value of the bubble ,
Y value is used to set the position of the bubble along y axis.
|
public Bubble()
Bubble
object. the default x value is zero
the default y value is zero
the default value is zero
the default text is null
public Bubble(java.lang.String text)
Bubble
object with a given text. the default x value is zero
the default y value is zero
the default value is zero
public Bubble(java.lang.String text, double x, double y)
Bubble
object with a given text and x y value.
the default value is zeropublic Bubble(double x, double y)
Bubble
object with the given x y value. the default value is zero
the default text is null
public Bubble(double x, double y, double value)
Bubble
object with a given value and x y value. the default text is null
public Bubble(java.lang.String text, double x, double y, double value)
Bubble
object with the text and the value and x y value.public double getX()
setX(double)
public void setX(double x)
x
- the x value of the bubble ,getX()
public double getY()
setY(double)
public void setY(double y)
y
- the y value of the bubble ,getY()
public double getValue()
setValue(double)
public void setValue(double value)
getValue()
public java.lang.String getText()
setText(String)
public void setText(java.lang.String text)
text
- the text of the bubble.getText()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.