/** * Creates a StrokeSample for the specified stroke. * * @param stroke the sample stroke (<code>null</code> permitted). */ public StrokeSample(final Stroke stroke) { this.stroke = stroke; this.preferredSize = new Dimension(80, 18); setPreferredSize(this.preferredSize); }
/** * Creates a StrokeSample for the specified stroke. * * @param stroke the sample stroke (<code>null</code> permitted). */ public StrokeSample(final Stroke stroke) { this.stroke = stroke; this.preferredSize = new Dimension(80, 18); setPreferredSize(this.preferredSize); }