MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / setPaint

Method setPaint

src/org/jibble/epsgraphics/EpsGraphics2D.java:589–595  ·  view source on GitHub ↗

Sets the Paint attribute for the EpsGraphics2D object. Only Paint objects of type Color are respected by EpsGraphics2D.

(Paint paint)

Source from the content-addressed store, hash-verified

587 * objects of type Color are respected by EpsGraphics2D.
588 */
589 @Override
590public void setPaint(Paint paint) {
591 _paint = paint;
592 if(paint instanceof Color) {
593 setColor((Color) paint);
594 }
595 }
596
597 /**
598 * Sets the stroke. Only accepts BasicStroke objects (or subclasses of

Callers 15

EpsGraphics2DMethod · 0.95
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawFixedBoundsMethod · 0.80
drawMethod · 0.80
drawScaledBoundsMethod · 0.80
drawFixedBoundsMethod · 0.80
paintIconMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80

Calls 1

setColorMethod · 0.95

Tested by

no test coverage detected