|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.Graph2DPrinter.DefaultTitleDrawable
public static class Graph2DPrinter.DefaultTitleDrawable
Default title drawable implementation.
![]() |
![]() |
| Constructor Summary | |
|---|---|
Graph2DPrinter.DefaultTitleDrawable()
|
|
| Method Summary | |
|---|---|
Rectangle |
getBounds()
returns the bounds of this drawable. |
Font |
getFont()
Returns the font used in the title. |
Graph2DPrinter.PrintContext |
getPrintContext()
Returns the print context of the title. |
String |
getText()
Returns the text of the title. |
Color |
getTextColor()
Returns the text color used in the title. |
Color |
getTitleBarColor()
Returns the title bar color. |
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)
Sets the font for the title. |
void |
setPrintContext(Graph2DPrinter.PrintContext printContext)
Sets the print context for the title. |
void |
setText(String text)
Sets the text of the title. |
void |
setTextColor(Color textColor)
Sets the text color for the title. |
void |
setTitleBarColor(Color titleBarColor)
Sets the title bar color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Graph2DPrinter.DefaultTitleDrawable()
| Method Detail |
|---|
public void setContext(Graph2DPrinter.PrintContext printContext)
Graph2DPrinter.TitleDrawable
setContext in interface Graph2DPrinter.TitleDrawablepublic void paint(Graphics2D gfx)
Drawable
paint in interface Drawablepublic Rectangle getBounds()
Drawable
getBounds in interface Drawablepublic Font getFont()
public void setFont(Font font)
font - The font to set.public Graph2DPrinter.PrintContext getPrintContext()
public void setPrintContext(Graph2DPrinter.PrintContext printContext)
printContext - The print context to set.public String getText()
public void setText(String text)
text - The text to set.public Color getTextColor()
public void setTextColor(Color textColor)
textColor - The text color to set.public Color getTitleBarColor()
public void setTitleBarColor(Color titleBarColor)
titleBarColor - The title bar color to set.
|
© Copyright 2000-2012, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||