001 /** 002 * 003 */ 004 package nl.cwi.sen1.util; 005 006 import java.awt.Insets; 007 008 public class StudioStatusBarConstraints { 009 Insets insets; 010 011 double weight; 012 013 public StudioStatusBarConstraints(Insets insets) { 014 this.insets = insets; 015 this.weight = 0.0; 016 } 017 018 public StudioStatusBarConstraints(double weight) { 019 this.insets = new Insets(0, 0,0,0); 020 this.weight = weight; 021 } 022 023 public double getWeight() { 024 return weight; 025 } 026 027 public Insets getInsets() { 028 return new Insets(insets.top, insets.left, insets.bottom, insets.right); 029 } 030 }