public MediaSize(int x,int y,int units){
  super(x,y,units);
  if (x > y) {
    throw new IllegalArgumentException("X dimension > Y dimension");
  }
  sizeVector.add(this);
}

public MediaSize ( int x , int y , int units ) { super ( x , y , units ) ; if ( x > y ) { throw new IllegalArgumentException ( "X dimension > Y dimension" ) ; } sizeVector . add ( this ) ; }
construct a new media size attribute from the given integer values .
