tyridge77

GraphicsObject

Feb 20th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1.  
  2.  
  3.  
  4. import java.awt.Color;
  5. import java.awt.Point;
  6. import java.awt.Rectangle;
  7. import java.util.HashMap;
  8.  
  9.  
  10. public class GraphicsObject {
  11.  
  12.  Point center;
  13.  GraphicsObjectConfiguration.config config;
  14.  HashMap<Point, Color> configuration;
  15.  Rectangle boundry;
  16.  String type;
  17.  int sizex;
  18.  int sizey;
  19.  
  20.  // CONFIGURATION HASHMAPS
  21.  // FOR EVERY RELATIVE POINT FOUND RETURN A COLOR
  22.      
  23.  
  24.  public GraphicsObject(GraphicsObjectConfiguration goc,String t,Point centerpoint,int sx,int sy)
  25.  {
  26.      
  27.   goc.AddGraphicsObject(this);
  28.  
  29.   sizex=sx;
  30.   sizey=sy;
  31.  
  32.   type=t;
  33.   center=centerpoint;
  34.   if(!type.equals("StaticParticles"))
  35.   {
  36.    config = goc.get(t);
  37.    configuration = config.configuration;
  38.   }
  39.   else
  40.   {
  41.    
  42.   }
  43.  }
  44. }
Add Comment
Please, Sign In to add comment