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.
-
alias
- The alias for the blip, which blip is it part of.
-
end
- End Points.
-
foundX
- Last X location ball was found.
-
foundY
- Last Y location ball was found.
-
maxX
- Max x value for the blip.
-
maxY
- Max y value for the blip.
-
minX
- Min x value for the blip.
-
minY
- Min y value for the blip.
-
start
- End Points.
-
total
- Total pixels it takes up.
-
totalX
- Total x values for the blip.
-
totalY
- Total y values for the blip.
-
x
- X location of ball.
-
y
- Y location of ball.
-
Blip()
- Create a blank blip.
-
Blip(int, int)
-
Create blip with the location seen.
-
Blip(int, int, int)
-
Create blip with the location seen.
-
alias()
- Get the alias for this blip.
-
alias(int)
- Set the alias for this blip.
-
end()
-
Get the end location.
-
end(int, int)
-
Set the end location.
-
foundX()
- Last found x location of blip.
-
foundY()
- Last found y location of blip.
-
height()
- Get the height of the blip.
-
maxX()
- maximum x location of blip.
-
maxY()
- maximum y location of blip.
-
merge(Blip)
- Merge two blips together.
-
minX()
- minimum x location of blip.
-
minY()
- minimum y location of blip.
-
readObject(ObjectInputStream)
- Read object from disk.
-
start()
-
Get the start location.
-
start(int, int)
-
Set the start location.
-
total()
- Get the total pixels used by this blip.
-
totalX()
-
Get the total x.
-
totalY()
-
Get the total y.
-
width()
- Get the width of the blip.
-
writeObject(ObjectOutputStream)
- Save the object to disk.
-
x()
-
Get the x location of this blip.
-
x(int)
- Set the x location.
-
xinc(int)
-
Add to the x location, find the min & max x, and increment the
total pixels used up by this blip.
-
xLocation()
-
Get the x location of this blip.
-
y()
-
Get the x location of this blip.
-
y(int)
- Set the y location.
-
yinc(int)
-
Add to the y location, find the min & max y.
-
yLocation()
-
Get the y location of this blip.
x
protected int x
- X location of ball.
y
protected int y
- Y location of ball.
foundX
protected int foundX
- Last X location ball was found.
foundY
protected int foundY
- Last Y location ball was found.
totalX
protected int totalX
- Total x values for the blip.
totalY
protected int totalY
- Total y values for the blip.
total
protected int total
- Total pixels it takes up.
maxX
protected int maxX
- Max x value for the blip.
maxY
protected int maxY
- Max y value for the blip.
minX
protected int minX
- Min x value for the blip.
minY
protected int minY
- Min y value for the blip.
alias
protected int alias
- The alias for the blip, which blip is it part of.
start
protected Point start
- End Points.
end
protected Point end
- End Points.
Blip
public Blip(int x,
int y)
- Create blip with the location seen.
- Parameters:
- x - the x location.
- y - the y location.
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.
Blip
public Blip()
- Create a blank blip.
merge
public void merge(Blip merger)
- Merge two blips together.
- Parameters:
- merger - the blip to merge with.
alias
public void alias(int a)
- Set the alias for this blip.
- Parameters:
- a - the alias for this blip.
alias
public int alias()
- Get the alias for this blip.
- Returns:
- blip's alias.
start
public void start(int x,
int y)
- Set the start location.
- Parameters:
- x - the x location
- y - the y location
start
public Point start()
- Get the start location.
- Returns:
- the start location.
end
public void end(int x,
int y)
- Set the end location.
- Parameters:
- x - the x location
- y - the y location
end
public Point end()
- Get the end location.
- Returns:
- the end location.
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.
yinc
public void yinc(int y)
- Add to the y location, find the min & max y.
- Parameters:
- y - the y location found.
total
public int total()
- Get the total pixels used by this blip.
- Returns:
- The total about of pixels used by this blip.
x
public void x(int x)
- Set the x location.
- Parameters:
- x - the location.
y
public void y(int y)
- Set the y location.
- Parameters:
- y - the location.
totalX
public int totalX()
- Get the total x.
- Returns:
- the total x values for all the pixel locations this blips occupies.
totalY
public int totalY()
- Get the total y.
- Returns:
- the total y values for all the pixel locations this blips occupies.
xLocation
public int xLocation()
- Get the x location of this blip.
- Returns:
- s x location.
yLocation
public int yLocation()
- Get the y location of this blip.
- Returns:
- s y location.
x
public int x()
- Get the x location of this blip.
- Returns:
- s x location.
y
public int y()
- Get the x location of this blip.
- Returns:
- s x location.
foundX
public int foundX()
- Last found x location of blip.
- Returns:
- last x location.
foundY
public int foundY()
- Last found y location of blip.
- Returns:
- last y location.
minX
public int minX()
- minimum x location of blip.
- Returns:
- minimum x location.
minY
public int minY()
- minimum y location of blip.
- Returns:
- minimum y location.
maxX
public int maxX()
- maximum x location of blip.
- Returns:
- maximum x location.
maxY
public int maxY()
- maximum y location of blip.
- Returns:
- maximum y location.
width
public int width()
- Get the width of the blip.
- Returns:
- width.
height
public int height()
- Get the height of the blip.
- Returns:
- height.
writeObject
protected void writeObject(ObjectOutputStream s) throws IOException
- Save the object to disk.
- Parameters:
- s - the stream to write to.
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