/* * Pehr Hovey * pehr.hovey@gmail.com * MAT259 Data Visualization * Winter 2009 * * BalanceBeam.java * * This is an object with mass, labels, etc that connects two BalanceObjects */ public class BalanceBeam { double mass; long count; //this is the number that this object represents. Will cause mass and size to change proportionally float size; //size of object to render float x1,y1; //current coordinates of this object float x2,y2; float cx,cy; //centerpt int beam_stroke; int beam_fill; int center_fill; BalanceBeam( float _x1, float _y1, float _x2, float _y2,float _cy, float _cx){ count = 100; //default x1=_x1; y1=_y1; x2=_x2; y2=_y2; } public void update(float _x1, float _y1, float _x2, float _y2){ x1=_x1; y1=_y1; x2=_x2; y2=_y2; } }