public MediaSize(float x,float y,int units,MediaSizeName media){
  super(x,y,units);
  if (x > y) {
    throw new IllegalArgumentException("X dimension > Y dimension");
  }
  if (media != null && mediaMap.get(media) == null) {
    mediaName=media;
    mediaMap.put(mediaName,this);
  }
  sizeVector.add(this);
}

public MediaSize ( float x , float y , int units , MediaSizeName media ) { super ( x , y , units ) ; if ( x > y ) { throw new IllegalArgumentException ( "X dimension > Y dimension" ) ; } if ( media != null && mediaMap . get ( media ) == null ) { mediaName = media ; mediaMap . put ( mediaName , this ) ; } sizeVector . add ( this ) ; }
construct a new media size attribute from the given floating - point values .
