Search this API

y.view
Class Graph2DPrinter.AbstractTextBarDrawable

java.lang.Object
  extended by y.view.Graph2DPrinter.AbstractTextBarDrawable
All Implemented Interfaces:
Drawable, Graph2DPrinter.FooterDrawable, Graph2DPrinter.TitleDrawable
Direct Known Subclasses:
Graph2DPrinter.AbstractFooterDrawable, Graph2DPrinter.AbstractTitleDrawable
Enclosing class:
Graph2DPrinter

public abstract static class Graph2DPrinter.AbstractTextBarDrawable
extends java.lang.Object
implements Graph2DPrinter.FooterDrawable, Graph2DPrinter.TitleDrawable

Abstract base drawable for titles and footers.

 
Your browser does not support SVG content.

Constructor Summary
Graph2DPrinter.AbstractTextBarDrawable()
           
 
Method Summary
 java.awt.Rectangle getBounds()
          returns the bounds of this drawable.
 java.awt.Font getFont()
          Returns the font used in the footer.
 Graph2DPrinter.PrintContext getPrintContext()
          Returns the print context of the footer.
 java.lang.String getText()
          Returns the text of the footer.
 java.awt.Color getTextColor()
          Returns the text color used in the footer.
abstract  void paint(java.awt.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(java.awt.Font font)
          Sets the font for the footer.
 void setPrintContext(Graph2DPrinter.PrintContext printContext)
          Sets the print context for the footer.
 void setText(java.lang.String text)
          Sets the text of the footer.
 void setTextColor(java.awt.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.AbstractTextBarDrawable

public Graph2DPrinter.AbstractTextBarDrawable()
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
Specified by:
setContext in interface Graph2DPrinter.TitleDrawable

paint

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

Specified by:
paint in interface Drawable

getBounds

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

Specified by:
getBounds in interface Drawable

getFont

public java.awt.Font getFont()
Returns the font used in the footer.


setFont

public void setFont(java.awt.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 java.lang.String getText()
Returns the text of the footer.


setText

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

Parameters:
text - The text to set.

getTextColor

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


setTextColor

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

Parameters:
textColor - The text color to set.

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