/** * 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); }
@Override public double getTextHeight() { DrawFactory drawFact = DrawFactory.getInstance(null); DrawTextShape dts = drawFact.getDrawable(this); return dts.getTextHeight(); }