All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.part.Blip

java.lang.Object
   |
   +----pinball.part.Blip

public class Blip
extends Object
implements Serializable
These are the objects found in the image. It contains where to object was found and it's size.


Variable Index

 o alias
The alias for the blip, which blip is it part of.
 o end
End Points.
 o foundX
Last X location ball was found.
 o foundY
Last Y location ball was found.
 o maxX
Max x value for the blip.
 o maxY
Max y value for the blip.
 o minX
Min x value for the blip.
 o minY
Min y value for the blip.
 o start
End Points.
 o total
Total pixels it takes up.
 o totalX
Total x values for the blip.
 o totalY
Total y values for the blip.
 o x
X location of ball.
 o y
Y location of ball.

Constructor Index

 o Blip()
Create a blank blip.
 o Blip(int, int)
Create blip with the location seen.
 o Blip(int, int, int)
Create blip with the location seen.

Method Index

 o alias()
Get the alias for this blip.
 o alias(int)
Set the alias for this blip.
 o end()
Get the end location.
 o end(int, int)
Set the end location.
 o foundX()
Last found x location of blip.
 o foundY()
Last found y location of blip.
 o height()
Get the height of the blip.
 o maxX()
maximum x location of blip.
 o maxY()
maximum y location of blip.
 o merge(Blip)
Merge two blips together.
 o minX()
minimum x location of blip.
 o minY()
minimum y location of blip.
 o readObject(ObjectInputStream)
Read object from disk.
 o start()
Get the start location.
 o start(int, int)
Set the start location.
 o total()
Get the total pixels used by this blip.
 o totalX()
Get the total x.
 o totalY()
Get the total y.
 o width()
Get the width of the blip.
 o writeObject(ObjectOutputStream)
Save the object to disk.
 o x()
Get the x location of this blip.
 o x(int)
Set the x location.
 o xinc(int)
Add to the x location, find the min & max x, and increment the total pixels used up by this blip.
 o xLocation()
Get the x location of this blip.
 o y()
Get the x location of this blip.
 o y(int)
Set the y location.
 o yinc(int)
Add to the y location, find the min & max y.
 o yLocation()
Get the y location of this blip.

Variables

 o x
 protected int x
X location of ball.

 o y
 protected int y
Y location of ball.

 o foundX
 protected int foundX
Last X location ball was found.

 o foundY
 protected int foundY
Last Y location ball was found.

 o totalX
 protected int totalX
Total x values for the blip.

 o totalY
 protected int totalY
Total y values for the blip.

 o total
 protected int total
Total pixels it takes up.

 o maxX
 protected int maxX
Max x value for the blip.

 o maxY
 protected int maxY
Max y value for the blip.

 o minX
 protected int minX
Min x value for the blip.

 o minY
 protected int minY
Min y value for the blip.

 o alias
 protected int alias
The alias for the blip, which blip is it part of.

 o start
 protected Point start
End Points.

 o end
 protected Point end
End Points.

Constructors

 o Blip
 public Blip(int x,
             int y)
Create blip with the location seen.

Parameters:
x - the x location.
y - the y location.
 o Blip
 public Blip(int x,
             int y,
             int total)
Create blip with the location seen.

Parameters:
x - the x location.
y - the y location.
total - the total blips used by the blip.
 o Blip
 public Blip()
Create a blank blip.

Methods

 o merge
 public void merge(Blip merger)
Merge two blips together.

Parameters:
merger - the blip to merge with.
 o alias
 public void alias(int a)
Set the alias for this blip.

Parameters:
a - the alias for this blip.
 o alias
 public int alias()
Get the alias for this blip.

Returns:
blip's alias.
 o start
 public void start(int x,
                   int y)
Set the start location.

Parameters:
x - the x location
y - the y location
 o start
 public Point start()
Get the start location.

Returns:
the start location.
 o end
 public void end(int x,
                 int y)
Set the end location.

Parameters:
x - the x location
y - the y location
 o end
 public Point end()
Get the end location.

Returns:
the end location.
 o xinc
 public void xinc(int x)
Add to the x location, find the min & max x, and increment the total pixels used up by this blip.

Parameters:
x - the x location found.
 o yinc
 public void yinc(int y)
Add to the y location, find the min & max y.

Parameters:
y - the y location found.
 o total
 public int total()
Get the total pixels used by this blip.

Returns:
The total about of pixels used by this blip.
 o x
 public void x(int x)
Set the x location.

Parameters:
x - the location.
 o y
 public void y(int y)
Set the y location.

Parameters:
y - the location.
 o totalX
 public int totalX()
Get the total x.

Returns:
the total x values for all the pixel locations this blips occupies.
 o totalY
 public int totalY()
Get the total y.

Returns:
the total y values for all the pixel locations this blips occupies.
 o xLocation
 public int xLocation()
Get the x location of this blip.

Returns:
s x location.
 o yLocation
 public int yLocation()
Get the y location of this blip.

Returns:
s y location.
 o x
 public int x()
Get the x location of this blip.

Returns:
s x location.
 o y
 public int y()
Get the x location of this blip.

Returns:
s x location.
 o foundX
 public int foundX()
Last found x location of blip.

Returns:
last x location.
 o foundY
 public int foundY()
Last found y location of blip.

Returns:
last y location.
 o minX
 public int minX()
minimum x location of blip.

Returns:
minimum x location.
 o minY
 public int minY()
minimum y location of blip.

Returns:
minimum y location.
 o maxX
 public int maxX()
maximum x location of blip.

Returns:
maximum x location.
 o maxY
 public int maxY()
maximum y location of blip.

Returns:
maximum y location.
 o width
 public int width()
Get the width of the blip.

Returns:
width.
 o height
 public int height()
Get the height of the blip.

Returns:
height.
 o writeObject
 protected void writeObject(ObjectOutputStream s) throws IOException
Save the object to disk.

Parameters:
s - the stream to write to.
 o readObject
 protected void readObject(ObjectInputStream s) throws IOException
Read object from disk.

Parameters:
the - stream to read from.

All Packages  Class Hierarchy  This Package  Previous  Next  Index