Search this API

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()
          Returns the font used in the footer.
 Color getFooterColor()
          Returns the background color of the footer.
 Graph2DPrinter.PrintContext getPrintContext()
          Returns the print context of the footer.
 String getText()
          Returns the text of the footer.
 Color getTextColor()
          Returns the text color used in the footer.
 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)
          Sets the font for the footer.
 void setFooterColor(Color footerColor)
          Sets the background color of the footer.
 void setPrintContext(Graph2DPrinter.PrintContext printContext)
          Sets the print context for the footer.
 void setText(String text)
          Sets the text of the footer.
 void setTextColor(Color textColor)
          Sets the text color for the footer.
 
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 the font used in the footer.


setFont

public void setFont(Font font)
Sets the font for the footer.

Parameters:
font - The font to set.

getPrintContext

public Graph2DPrinter.PrintContext getPrintContext()
Returns the print context of the footer.


setPrintContext

public void setPrintContext(Graph2DPrinter.PrintContext printContext)
Sets the print context for the footer.

Parameters:
printContext - The print context to set.

getText

public String getText()
Returns the text of the footer.


setText

public void setText(String text)
Sets the text of the footer.

Parameters:
text - The text to set.

getTextColor

public Color getTextColor()
Returns the text color used in the footer.


setTextColor

public void setTextColor(Color textColor)
Sets the text color for the footer.

Parameters:
textColor - The text color to set.

getFooterColor

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


setFooterColor

public void setFooterColor(Color footerColor)
Sets the background color of the footer.

Parameters:
footerColor - The background color to set.

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