Class AnimationPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class AnimationPanel extends JPanel
Child class called AnimationPanel that extends from the parent class: JPanel
See Also:
  • Field Details

    • imgBackground

      public BufferedImage imgBackground
      Background image
    • imgCannon

      public BufferedImage imgCannon
      Cannon image
    • imgWheel

      public BufferedImage imgWheel
      Cannon Wheel image
    • imgProjectile

      public BufferedImage imgProjectile
      Projectile image
    • imgBang

      public BufferedImage imgBang
      Bang image (launch explosion effect)
    • dblAng

      public double dblAng
      Start angle
    • dblDeltaX

      public double dblDeltaX
      Change in X
    • dblDeltaY

      public double dblDeltaY
      Change in Y
    • dblProjectileX

      public double dblProjectileX
      X-value of projectile
    • dblProjectileY

      public double dblProjectileY
      Y-Value of projectile
    • dblVX

      public double dblVX
      X-velocity
    • dblVY

      public double dblVY
      Y-velocity
    • dblLift

      public double dblLift
      Lift of the cannon from the ground considering user-modified initial height
    • strProjectile

      public String strProjectile
      Name of projectile being used
    • blnStatus

      public boolean blnStatus
      The status of the projectile (being lauched or not)
    • blnShowVectors

      public boolean blnShowVectors
      Are the vector components being shown
    • blnBoom

      public boolean blnBoom
      Boolean for if boom image (launch explosion effect) should be shown
  • Constructor Details

    • AnimationPanel

      public AnimationPanel()
      Creates an instance of the AnimationPanel class; a object constructor extended from the parent class: JPanel. Objects created under this constructor are AnimationPanels.
  • Method Details

    • paintComponent

      public void paintComponent(Graphics g)
      Calls the paint method to override the default JPanel
      Overrides:
      paintComponent in class JComponent