Class PageLegend
- java.lang.Object
-
- com.aspose.tasks.PageLegend
-
public class PageLegend extends Object
Represents a page legend which is used for project printing.
-
-
Constructor Summary
Constructors Constructor Description PageLegend()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagegetCenteredImage()Gets the centered image to be displayed in the page legend.StringgetCenteredText()Gets the centered text to display in the page legend.ImagegetLeftImage()Gets the left aligned image to be displayed in the page legend.StringgetLeftText()Gets the left aligned text to display in the page legend.intgetLegendOn()Gets the pages on which the legend appears.ImagegetRightImage()Gets the right aligned image to be displayed in the page legend.StringgetRightText()Gets the right aligned text to display in the page legend.doublegetWidth()Gets the width of the legend.voidsetCenteredImage(Image value)Sets the centered image to be displayed in the page legend.voidsetCenteredText(String value)Sets the centered text to display in the page legend.voidsetLeftImage(Image value)Sets the left aligned image to be displayed in the page legend.voidsetLeftText(String value)Sets the left aligned text to display in the page legend.voidsetLegendOn(int value)Sets the pages on which the legend appears.voidsetRightImage(Image value)Sets the right aligned image to be displayed in the page legend.voidsetRightText(String value)Sets the right aligned text to display in the page legend.voidsetWidth(double value)Sets the width of the legend.
-
-
-
Method Detail
-
getCenteredImage
public final Image getCenteredImage()
Gets the centered image to be displayed in the page legend.
- Returns:
- the centered image to be displayed in the page legend.
-
setCenteredImage
public final void setCenteredImage(Image value)
Sets the centered image to be displayed in the page legend.
- Parameters:
value- the centered image to be displayed in the page legend.
-
getCenteredText
public final String getCenteredText()
Gets the centered text to display in the page legend.
- Returns:
- the centered text to display in the page legend.
-
setCenteredText
public final void setCenteredText(String value)
Sets the centered text to display in the page legend.
- Parameters:
value- the centered text to display in the page legend.
-
getLeftImage
public final Image getLeftImage()
Gets the left aligned image to be displayed in the page legend.
- Returns:
- the left aligned image to be displayed in the page legend.
-
setLeftImage
public final void setLeftImage(Image value)
Sets the left aligned image to be displayed in the page legend.
- Parameters:
value- the left aligned image to be displayed in the page legend.
-
getLeftText
public final String getLeftText()
Gets the left aligned text to display in the page legend.
- Returns:
- the left aligned text to display in the page legend.
-
setLeftText
public final void setLeftText(String value)
Sets the left aligned text to display in the page legend.
- Parameters:
value- the left aligned text to display in the page legend.
-
getLegendOn
public final int getLegendOn()
Gets the pages on which the legend appears. Can be one of the values of the
Legendenumeration.- Returns:
- the pages on which the legend appears.
-
setLegendOn
public final void setLegendOn(int value)
Sets the pages on which the legend appears. Can be one of the values of the
Legendenumeration.- Parameters:
value- the pages on which the legend appears.
-
getRightImage
public final Image getRightImage()
Gets the right aligned image to be displayed in the page legend.
- Returns:
- the right aligned image to be displayed in the page legend.
-
setRightImage
public final void setRightImage(Image value)
Sets the right aligned image to be displayed in the page legend.
- Parameters:
value- the right aligned image to be displayed in the page legend.
-
getRightText
public final String getRightText()
Gets the right aligned text to display in the page legend.
- Returns:
- the right aligned text to display in the page legend.
-
setRightText
public final void setRightText(String value)
Sets the right aligned text to display in the page legend.
- Parameters:
value- the right aligned text to display in the page legend.
-
getWidth
public final double getWidth()
Gets the width of the legend.
- Returns:
- the width of the legend.
-
setWidth
public final void setWidth(double value)
Sets the width of the legend.
- Parameters:
value- the width of the legend.
-
-