public static GraphicInfo createGraphic ( ExternalGraphicInfo graphic , int size ) { GraphicInfo graphicInfo = new GraphicInfo ( ) ; ChoiceInfo choice = new ChoiceInfo ( ) ; choice . setExternalGraphic ( graphic ) ; graphicInfo . getChoiceList ( ) . add ( choice ) ; SizeInfo sizeInfo = new SizeInfo ( ) ; sizeInfo . setValue ( Integer . toString ( size ) ) ; graphicInfo . setSize ( sizeInfo ) ; return graphicInfo ; }
Creates a graphic with the specified external graphic and size .