001package polaris.sdk.ui;
002/** Shared logical-unit rhythm. Does not rewrite host-authored absolute coordinates. */
003public final class Spacing {
004 private Spacing(){}
005 public static final float INSET=16f, GAP=12f, COMPACT_INSET=4f, CONTROL_HEIGHT=38f, LABEL_HEIGHT=20f;
006 public static float columnWidth(float width,float inset,float gap,int columns){
007  if(columns<1)throw new IllegalArgumentException("columns");
008  return Math.max(0,(width-2*inset-gap*(columns-1))/columns);
009 }
010}