001package armyc2.c5isr.renderer.utilities; 002 003public class Modifier { 004 String _modifierID = null; 005 int _yIndex = -999; 006 int _xIndex = -999; 007 double _x = 0; 008 double _y = 0; 009 String _text = ""; 010 boolean _centered = true; 011 012 public Modifier(String id, String text, int indexX, int indexY, boolean centered, double x, double y) 013 { 014 _modifierID = id; 015 if(text != null && !text.isEmpty()) 016 _text = text; 017 _xIndex = indexX; 018 _yIndex = indexY; 019 _x = x; 020 _y = y; 021 _centered = centered; 022 } 023 024 public Modifier(String id, String text, int indexX, int indexY, boolean centered) 025 { 026 _modifierID = id; 027 if(text != null && !text.isEmpty()) 028 _text = text; 029 _xIndex = indexX; 030 _yIndex = indexY; 031 _centered = centered; 032 } 033 034 public String getID(){return _modifierID;} 035 036 public String getText(){return _text;} 037 038 public int getIndexX(){return _xIndex;} 039 040 public int getIndexY(){return _yIndex;} 041 042 public boolean getCentered(){return _centered;} 043 044 public double getX(){return _x;} 045 public void setX(double x){_x = x;} 046 047 public double getY(){return _y;} 048 public void setY(double y){_y = y;} 049}