public class LineCache extends Object
Constructor and Description |
---|
LineCache(Stroke solidStroke,
Stroke dashedStroke)
Creates a new LineCache.
|
Modifier and Type | Method and Description |
---|---|
void |
addPath(Path2D path,
boolean solid)
Adds a path to this cache.
|
void |
draw(Graphics2D g)
Draws the paths in this cache.
|
public void addPath(Path2D path, boolean solid)
path
- the path to addsolid
- true
to add to the solid paths, false
to add
to the dashed pathspublic void draw(Graphics2D g)
g
- the graphics context in which to draw the pathsCopyright © 2022. All rights reserved.