Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. package com.reaganmcf.parse;
  2.  
  3. public class Rectangle {
  4.  
  5.     int xPos;
  6.     int yPos;
  7.     int width;
  8.     int height;
  9.     int xOffset;
  10.    
  11.     public Rectangle(int xPos, int yPos, int width, int height, int xOffset) {
  12.         this.xPos = xPos;
  13.         this.yPos = yPos;
  14.         this.width = width;
  15.         this.height = height;
  16.         this.xOffset = xOffset;
  17.     }
  18.    
  19.     public int getXPos() {
  20.         return xPos;
  21.     }
  22.    
  23.     public int getYPos() {
  24.         return yPos;
  25.     }
  26.    
  27.     public int getWidth() {
  28.         return width;
  29.     }
  30.    
  31.     public int getHeight() {
  32.         return height;
  33.     }
  34.    
  35.     public int getXOffset() {
  36.         return xOffset;
  37.     }
  38.    
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement