y.view
Class Graph2DPrinter.DefaultTitleDrawable

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

public static class Graph2DPrinter.DefaultTitleDrawable
extends Object
implements Graph2DPrinter.TitleDrawable

Default title drawable implementation.

 
Your browser does not support SVG content.

Constructor Summary
Graph2DPrinter.DefaultTitleDrawable()
           
 
Method Summary
 Rectangle getBounds()
          returns the bounds of this drawable.
 Font getFont()
           
 Graph2DPrinter.PrintContext getPrintContext()
           
 String getText()
           
 Color getTextColor()
           
 Color getTitleBarColor()
           
 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 title.
 void setFont(Font font)
           
 void setPrintContext(Graph2DPrinter.PrintContext printContext)
           
 void setText(String text)
           
 void setTextColor(Color textColor)
           
 void setTitleBarColor(Color titleBarColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph2DPrinter.DefaultTitleDrawable

public Graph2DPrinter.DefaultTitleDrawable()
Method Detail

setContext

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

Specified by:
setContext in interface Graph2DPrinter.TitleDrawable

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.

getTitleBarColor

public Color getTitleBarColor()
Returns:
Returns the titleBarColor.

setTitleBarColor

public void setTitleBarColor(Color titleBarColor)
Parameters:
titleBarColor - The titleBarColor to set.

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