1 44 45 package org.jfree.chart.block; 46 47 import java.awt.Graphics2D ; 48 import java.awt.geom.Rectangle2D ; 49 import java.io.Serializable ; 50 51 import org.jfree.util.PublicCloneable; 52 53 56 public class EmptyBlock extends AbstractBlock 57 implements Block, Cloneable , PublicCloneable, 58 Serializable { 59 60 61 private static final long serialVersionUID = -4083197869412648579L; 62 63 69 public EmptyBlock(double width, double height) { 70 setWidth(width); 71 setHeight(height); 72 } 73 74 80 public void draw(Graphics2D g2, Rectangle2D area) { 81 } 83 84 94 public Object draw(Graphics2D g2, Rectangle2D area, Object params) { 95 return null; 96 } 97 98 105 public Object clone() throws CloneNotSupportedException { 106 return super.clone(); 107 } 108 109 } 110 | Popular Tags |