Class Camera

java.lang.Object
  extended by Camera

public class Camera
extends java.lang.Object

A Camera used during the broadcast/recording of a sporting event. Note: (0,0) is the upper-left corner of the screen.


Constructor Summary
Camera()
          Explicit Value Constructor
 
Method Summary
 java.awt.Rectangle getBillboardBounds(int i)
          Get the location and size of a virtual billboard
 java.awt.Color getBillboardColor()
          Gets the Color of the billboard given the current Camera settings and lighting conditions
 java.awt.Point getBot(java.lang.String yard)
          Gets the coordinates of the "bottom" Point (i.e., the point at the bottom of the screen) for the given yard line (based on the current camera position and angle).
 java.awt.Color getFirstDownColor()
          Get the Color to use for the first down line
 java.awt.Color getGrassColor()
          Gets the Color of the grass given the current Camera settings and lighting conditions
 java.awt.Color getLineOfScrimmageColor()
          Get the Color to use for the line of scrimmage
 java.awt.Point getTop(java.lang.String yard)
          Gets the coordinates of the "top" Point (i.e., the Point at the top of the screen) for the given yard line (based on the current camera position and angle).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Camera

public Camera()
Explicit Value Constructor

Method Detail

getBillboardBounds

public java.awt.Rectangle getBillboardBounds(int i)
Get the location and size of a virtual billboard

Parameters:
i - The index of the virtual billboard
Returns:
The position and size

getBillboardColor

public java.awt.Color getBillboardColor()
Gets the Color of the billboard given the current Camera settings and lighting conditions

Returns:
The Color of the billboard

getBot

public java.awt.Point getBot(java.lang.String yard)
Gets the coordinates of the "bottom" Point (i.e., the point at the bottom of the screen) for the given yard line (based on the current camera position and angle).

Parameters:
yard - The yard line of interest

getFirstDownColor

public java.awt.Color getFirstDownColor()
Get the Color to use for the first down line

Returns:
The Color to use

getGrassColor

public java.awt.Color getGrassColor()
Gets the Color of the grass given the current Camera settings and lighting conditions

Returns:
The Color of the grass

getLineOfScrimmageColor

public java.awt.Color getLineOfScrimmageColor()
Get the Color to use for the line of scrimmage

Returns:
The Color to use

getTop

public java.awt.Point getTop(java.lang.String yard)
Gets the coordinates of the "top" Point (i.e., the Point at the top of the screen) for the given yard line (based on the current camera position and angle).

Parameters:
yard - The yard line of interest


PerspecTV