@Test public void testGetPreferredSize() { Dimension size = wrapper.getPreferredSize(); assertThat( size, is( equalTo( mockedSize ) ) ); }
public Dimension getPreferredSize() { if ( preferredSize == null ) { preferredSize = barcode.getSize(); } return preferredSize; }
BarcodeWrapper implements ReportDrawable { public Dimension getPreferredSize() { if ( preferredSize == null ) { preferredSize = barcode.getSize(); } return preferredSize; } }
BarcodeWrapper implements ReportDrawable { public Dimension getPreferredSize() { if ( preferredSize == null ) { preferredSize = barcode.getSize(); } return preferredSize; } BarcodeWrapper( final Barcode barcode ); }
BarcodeWrapper implements ReportDrawable { public Dimension getPreferredSize() { if ( preferredSize == null ) { preferredSize = barcode.getSize(); } return preferredSize; } BarcodeWrapper( final Barcode barcode ); Barcode getBarcode(); boolean isPreserveAspectRatio(); Dimension getPreferredSize(); void draw( final Graphics2D g2, final Rectangle2D bounds ); void setConfiguration( final Configuration config ); void setStyleSheet( final StyleSheet style ); void setResourceBundleFactory( final ResourceBundleFactory bundleFactory ); ImageMap getImageMap( final Rectangle2D bounds ); }
BarcodeWrapper implements ReportDrawable { public Dimension getPreferredSize() { if ( preferredSize == null ) { preferredSize = barcode.getSize(); } return preferredSize; } BarcodeWrapper( final Barcode barcode ); Barcode getBarcode(); boolean isPreserveAspectRatio(); Dimension getPreferredSize(); void draw( final Graphics2D g2, final Rectangle2D bounds ); void setConfiguration( final Configuration config ); void setStyleSheet( final StyleSheet style ); void setResourceBundleFactory( final ResourceBundleFactory bundleFactory ); ImageMap getImageMap( final Rectangle2D bounds );  }