Point function ( Rectangle arg0 , Point arg1 ) { double loc0 = Math . min ( ( double ) arg0 . height / arg1 . y , ( double ) arg0 . width / arg1 . x ) ; int loc1 = ( int ) Math . ceil ( arg1 . y * loc0 ) ; int loc2 = ( int ) Math . ceil ( arg1 . x * loc0 ) ; return new Point ( loc2 , loc1 ) ; }
the object to print should be scaled up or down to fit horizontally and vertically the available space . concode_field_sep String jobName concode_elem_sep double BORDER concode_field_sep void print concode_elem_sep Rectangle getPrintableArea concode_elem_sep void printComposite concode_elem_sep void startPrintJob