Example #1
0
 /**
  * Render this sheet into the supplied graphics object
  *
  * @param graphics
  */
 @Override
 public void draw(Graphics2D graphics) {
   DrawFactory drawFact = DrawFactory.getInstance(graphics);
   Drawable draw = drawFact.getDrawable(this);
   draw.draw(graphics);
 }
Example #2
0
 @Override
 public double getTextHeight() {
   DrawFactory drawFact = DrawFactory.getInstance(null);
   DrawTextShape dts = drawFact.getDrawable(this);
   return dts.getTextHeight();
 }