|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.Graph2DPrinter.AbstractTextBarDrawable
public abstract static class Graph2DPrinter.AbstractTextBarDrawable
Abstract base drawable for titles and footers.
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 |
---|
public Graph2DPrinter.AbstractTextBarDrawable()
Method Detail |
---|
public void setContext(Graph2DPrinter.PrintContext printContext)
Graph2DPrinter.FooterDrawable
setContext
in interface Graph2DPrinter.FooterDrawable
setContext
in interface Graph2DPrinter.TitleDrawable
public abstract void paint(java.awt.Graphics2D gfx)
Drawable
paint
in interface Drawable
public java.awt.Rectangle getBounds()
Drawable
getBounds
in interface Drawable
public java.awt.Font getFont()
public void setFont(java.awt.Font font)
font
- The font to set.public Graph2DPrinter.PrintContext getPrintContext()
public void setPrintContext(Graph2DPrinter.PrintContext printContext)
printContext
- The print context to set.public java.lang.String getText()
public void setText(java.lang.String text)
text
- The text to set.public java.awt.Color getTextColor()
public void setTextColor(java.awt.Color textColor)
textColor
- The text color to set.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |