Search this API

y.view
Class Graph2DPrinter.AbstractTitleDrawable

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

public abstract static class Graph2DPrinter.AbstractTitleDrawable
extends Graph2DPrinter.AbstractTextBarDrawable

Abstract title drawable that defines the position of the footer on a page and manages the background color.

 
Your browser does not support SVG content.

Constructor Summary
Graph2DPrinter.AbstractTitleDrawable()
           
 
Method Summary
 java.awt.Color getTitleBarColor()
          Returns the title bar color.
 void paint(java.awt.Graphics2D gfx)
          Paints itself on the given graphics context.
 void setTitleBarColor(java.awt.Color titleBarColor)
          Sets the title bar color.
 
Methods inherited from class y.view.Graph2DPrinter.AbstractTextBarDrawable
getBounds, getFont, getPrintContext, getText, getTextColor, setContext, setFont, setPrintContext, setText, setTextColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph2DPrinter.AbstractTitleDrawable

public Graph2DPrinter.AbstractTitleDrawable()
Method Detail

paint

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

Specified by:
paint in interface Drawable
Specified by:
paint in class Graph2DPrinter.AbstractTextBarDrawable

getTitleBarColor

public java.awt.Color getTitleBarColor()
Returns the title bar color.


setTitleBarColor

public void setTitleBarColor(java.awt.Color titleBarColor)
Sets the title bar color.

Parameters:
titleBarColor - The title bar color to set.

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