protected void applyToBlock(Block b){
  if (b instanceof Title) {
    applyToTitle((Title)b);
  }
 else   if (b instanceof LabelBlock) {
    LabelBlock lb=(LabelBlock)b;
    lb.setFont(this.regularFont);
    lb.setPaint(this.legendItemPaint);
  }
}

protected void applyToBlock ( Block b ) { if ( b instanceof Title ) { applyToTitle ( ( Title ) b ) ; } else if ( b instanceof LabelBlock ) { LabelBlock lb = ( LabelBlock ) b ; lb . setFont ( this . regularFont ) ; lb . setPaint ( this . legendItemPaint ) ; } }
applies the attributes of this theme to the specified block .
