public abstract class IlvPrintableShape extends IlvPrintableObject
IlvPrintableShape
is the base class for printable shapes such
as lines and rectangles.NO_SUCH_PAGE, PAGE_EXISTS
Constructor and Description |
---|
IlvPrintableShape()
Creates a
IlvPrintableShape object that prints in
black with a BasicStroke width of 0 . |
IlvPrintableShape(Color color,
BasicStroke stroke)
Creates a
IlvPrintableShape object that prints with the
specified color and stroke . |
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Returns the color used to print the shape.
|
BasicStroke |
getStroke()
Returns the stroke used to print the shape.
|
void |
setColor(Color color)
Sets the color used to print the shape.
|
void |
setStroke(BasicStroke stroke)
Sets the stroke used to print the shape.
|
getPage
public IlvPrintableShape(Color color, BasicStroke stroke)
IlvPrintableShape
object that prints with the
specified color
and stroke
.color
- The color used to print the shape.stroke
- The stroke used to print the shape.public IlvPrintableShape()
IlvPrintableShape
object that prints in
black with a BasicStroke
width of 0
.public Color getColor()
setColor(java.awt.Color)
public void setColor(Color color)
color
- The color used to print the shape.getColor()
public BasicStroke getStroke()
setStroke(java.awt.BasicStroke)
public void setStroke(BasicStroke stroke)
stroke
- The stroke used to print the shape.getStroke()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.