y.view
Class Graph2DPrinter.DefaultFooterDrawable

java.lang.Object
  extended by y.view.Graph2DPrinter.DefaultFooterDrawable
All Implemented Interfaces:
Drawable, Graph2DPrinter.FooterDrawable
Enclosing class:
Graph2DPrinter

public static class Graph2DPrinter.DefaultFooterDrawable
extends Object
implements Graph2DPrinter.FooterDrawable

Default footer drawable implementation.

 

Constructor Summary
Graph2DPrinter.DefaultFooterDrawable()
           
 
Method Summary
 Rectangle getBounds()
          returns the bounds of this drawable.
 Font getFont()
           
 Color getFooterColor()
           
 Graph2DPrinter.PrintContext getPrintContext()
           
 String getText()
           
 Color getTextColor()
           
 void paint(Graphics2D gfx)
          Paints itself on the given graphics context.
 void setContext(Graph2DPrinter.PrintContext printContext)
          This method will be invoked by the surrounding class to set the PrintContext used for drawing the footer.
 void setFont(Font font)
           
 void setFooterColor(Color footerColor)
           
 void setPrintContext(Graph2DPrinter.PrintContext printContext)
           
 void setText(String text)
           
 void setTextColor(Color textColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph2DPrinter.DefaultFooterDrawable

public Graph2DPrinter.DefaultFooterDrawable()
Method Detail

setContext

public void setContext(Graph2DPrinter.PrintContext printContext)
Description copied from interface: Graph2DPrinter.FooterDrawable
This method will be invoked by the surrounding class to set the PrintContext used for drawing the footer.

Specified by:
setContext in interface Graph2DPrinter.FooterDrawable

paint

public void paint(Graphics2D gfx)
Description copied from interface: Drawable
Paints itself on the given graphics context.

Specified by:
paint in interface Drawable

getBounds

public Rectangle getBounds()
Description copied from interface: Drawable
returns the bounds of this drawable.

Specified by:
getBounds in interface Drawable

getFont

public Font getFont()
Returns:
Returns the font.

setFont

public void setFont(Font font)
Parameters:
font - The font to set.

getPrintContext

public Graph2DPrinter.PrintContext getPrintContext()
Returns:
Returns the printContext.

setPrintContext

public void setPrintContext(Graph2DPrinter.PrintContext printContext)
Parameters:
printContext - The printContext to set.

getText

public String getText()
Returns:
Returns the text.

setText

public void setText(String text)
Parameters:
text - The text to set.

getTextColor

public Color getTextColor()
Returns:
Returns the textColor.

setTextColor

public void setTextColor(Color textColor)
Parameters:
textColor - The textColor to set.

getFooterColor

public Color getFooterColor()
Returns:
Returns the background color of the footer.

setFooterColor

public void setFooterColor(Color footerColor)
Parameters:
footerColor - The background color of the footer to set.

© Copyright 2000-2008,
yWorks GmbH.
All rights reserved.