public class PrintSetup extends Object
AbstractGanttChart.setPrintSetup(PrintSetup)
,
DualGanttChart.setSecondaryPrintSetup(PrintSetup)
Constructor and Description |
---|
PrintSetup()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCenterFooter()
Returns the (optional) text that gets displayed in the center of the
footer.
|
Color |
getFooterColor()
Returns the color used for the footer in the printout.
|
Font |
getFooterFont()
Returns the font used for the footer text in the printout.
|
int |
getFooterHeight()
Returns the height of the footer in pixels.
|
int |
getHeaderHeight()
Returns the height of the header in pixels.
|
String |
getLeftFooter()
Returns the (optional) text that gets displayed on the left-hand side of
the footer.
|
Image |
getLogo()
Returns the logo (optional) that will be printed on each page.
|
String |
getRightFooter()
Returns the (optional) text that gets displayed on the right-hand side of
the footer.
|
String |
getTitle()
Returns the print title, which is shown on each page.
|
Color |
getTitleColor()
Returns the color used for the title in the printout.
|
Font |
getTitleFont()
Returns the font used for the title in the printout.
|
int |
getVerticalGap()
Returns the gap (in pixels) between the header and the main print area,
and the main print area and the footer.
|
boolean |
isFooterVisible()
Determines whether a footer will be shown in the printout.
|
boolean |
isHeaderVisible()
Determines whether a header will be shown in the printout.
|
void |
setCenterFooter(String text)
Specifies a text (optional) to be displayed in the center of the footer.
|
void |
setFooterColor(Color color)
Sets the color used for the footer in the printout.
|
void |
setFooterFont(Font font)
Sets the font used for the footer in the printout.
|
void |
setFooterHeight(int height)
Specifies the height of the footer in pixels.
|
void |
setFooterVisible(boolean v)
Specifies whether the printout should show a footer with a title and / or
a logo.
|
void |
setHeaderHeight(int height)
Specifies the height of the header in pixels.
|
void |
setHeaderVisible(boolean v)
Specifies whether the printout should show a header with a title and / or
a logo.
|
void |
setLeftFooter(String text)
Specifies a text (optional) to be displayed on the left-hand side of the
footer.
|
void |
setLogo(Image logo)
An optional logo that will be printed on each page.
|
void |
setRightFooter(String text)
Specifies a text (optional) to be displayed on the right-hand side of the
footer.
|
void |
setTitle(String title)
Specifies a title text to be printed on each page of the printout.
|
void |
setTitleColor(Color color)
Sets the color used for the title in the printout.
|
void |
setTitleFont(Font font)
Sets the font used for the title in the printout.
|
void |
setVerticalGap(int gap)
Sets the gap (in pixels) between the header and the main print area, and
the main print area and the footer.
|
public String getCenterFooter()
public String getLeftFooter()
public Image getLogo()
public String getRightFooter()
public String getTitle()
public boolean isFooterVisible()
public boolean isHeaderVisible()
public void setCenterFooter(String text)
text
- the text shown in the center of the footerpublic void setFooterVisible(boolean v)
v
- if TRUE the FOOTER will be shownpublic void setHeaderVisible(boolean v)
v
- if TRUE the header will be shownpublic void setLeftFooter(String text)
text
- the text shown on the left of the footerpublic void setLogo(Image logo)
logo
- an image that will be printed on each pagepublic void setRightFooter(String text)
text
- the text shown on the right of the footerpublic void setTitle(String title)
title
- the print titlepublic Font getTitleFont()
public void setTitleFont(Font font)
font
- the title fontpublic Color getTitleColor()
public void setTitleColor(Color color)
color
- the title colorpublic Font getFooterFont()
public void setFooterFont(Font font)
font
- the footer fontpublic Color getFooterColor()
public void setFooterColor(Color color)
color
- the footer colorpublic int getHeaderHeight()
public void setHeaderHeight(int height)
height
- the header heightpublic int getFooterHeight()
public void setFooterHeight(int height)
height
- the header heightpublic int getVerticalGap()
public void setVerticalGap(int gap)
gap
- the gap in pixelsCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.