public class PaintedShape extends AbstractPaintedGraphic
| Modifier and Type | Field and Description |
|---|---|
Paint |
fillPaint
Deprecated.
The paint for the fill.
|
shape, stroke, strokePaint| Constructor and Description |
|---|
PaintedShape(Shape shape)
Deprecated.
Create a painted shape on the given Shape.
|
PaintedShape(Shape shape,
float lineWidth)
Deprecated.
Create a painted shape on the given Shape.
|
PaintedShape(Shape shape,
float lineWidth,
Paint strokePaint)
Deprecated.
Create a painted shape on the given Shape.
|
PaintedShape(Shape shape,
Paint fillPaint)
Deprecated.
Create a painted shape on the given Shape.
|
PaintedShape(Shape shape,
Paint fillPaint,
float lineWidth)
Deprecated.
Create a painted shape on the given Shape.
|
PaintedShape(Shape shape,
Paint fillPaint,
float lineWidth,
Paint strokePaint)
Deprecated.
Create a painted shape on the given Shape.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getLineWidth()
Deprecated.
Get the line width
|
boolean |
hit(Rectangle2D r)
Deprecated.
Test if this shape is hit by the given rectangle.
|
boolean |
intersects(Rectangle2D r)
Deprecated.
Test if this shape intersects the given rectangle.
|
void |
paint(Graphics2D g)
Deprecated.
Paint the shape.
|
void |
setFillPaint(Paint fillPaint)
Deprecated.
Set the fill paint for this shape (its fill if it is closed).
|
void |
setLineWidth(float lineWidth)
Deprecated.
Set the line width.
|
void |
setStrokePaint(Paint strokePaint)
Deprecated.
Set the stroke paint for this shape (its outline if it is closed).
|
getBounds, getStroke, getStroke, getStrokepublic Paint fillPaint
public PaintedShape(Shape shape)
public PaintedShape(Shape shape, Paint fillPaint)
public PaintedShape(Shape shape, float lineWidth)
public PaintedShape(Shape shape, Paint fillPaint, float lineWidth)
public PaintedShape(Shape shape, float lineWidth, Paint strokePaint)
public float getLineWidth()
getLineWidth in interface PaintedGraphicgetLineWidth in class AbstractPaintedGraphicpublic boolean hit(Rectangle2D r)
hit in interface PaintedGraphichit in class AbstractPaintedGraphicpublic boolean intersects(Rectangle2D r)
public void paint(Graphics2D g)
public void setLineWidth(float lineWidth)
setLineWidth in interface PaintedGraphicsetLineWidth in class AbstractPaintedGraphicpublic void setStrokePaint(Paint strokePaint)
public void setFillPaint(Paint fillPaint)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.