public class IlvPrintableLine extends IlvPrintableShape
IlvPrintableLine
defines a line that can be printed.IlvPage
NO_SUCH_PAGE, PAGE_EXISTS
Constructor and Description |
---|
IlvPrintableLine(IlvUnit.Point from,
IlvUnit.Point to)
Creates a
IlvPrintableLine . |
Modifier and Type | Method and Description |
---|---|
IlvUnit.Point |
getFrom()
Returns the start point of the line.
|
IlvUnit.Point |
getTo()
Returns the end point of the line.
|
int |
print(Graphics dst,
PageFormat format,
int pageIndex)
Implements the
java.awt.print.Printable.print method. |
void |
setFrom(IlvUnit.Point from)
Specifies the start point of the line.
|
void |
setTo(IlvUnit.Point to)
Specifies the end point of the line.
|
getColor, getStroke, setColor, setStroke
getPage
public IlvPrintableLine(IlvUnit.Point from, IlvUnit.Point to)
IlvPrintableLine
.from
- The point that defines the start of the line.to
- The point that defines the end of the line.public IlvUnit.Point getFrom()
setFrom(ilog.views.util.print.IlvUnit.Point)
public void setFrom(IlvUnit.Point from)
from
- The start point of the line.getFrom()
public IlvUnit.Point getTo()
setTo(ilog.views.util.print.IlvUnit.Point)
public void setTo(IlvUnit.Point to)
to
- The end point of the line.getTo()
public int print(Graphics dst, PageFormat format, int pageIndex) throws PrinterException
java.awt.print.Printable.print
method.
This method is called to print the object.dst
- The output device, which must be a Graphics2D
object.format
- The format of the page.pageIndex
- The index of the page.PrinterException
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.