Class RenderingAttributeFactory
- java.lang.Object
-
- ca.cgjennings.apps.arkham.deck.item.RenderingAttributeFactory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.Stroke
createLineStroke(LineStyle style)
Create a stroke for drawing lines and other path elements.static java.awt.Stroke
createOutlineStroke(OutlineStyle style)
Create a stroke for drawing shape outlines.static java.awt.Stroke
createStroke(float width, LineCap cap, LineJoin join, DashPattern dashPattern)
Create a stroke from the specified drawing attributes.
-
-
-
Method Detail
-
createLineStroke
public static java.awt.Stroke createLineStroke(LineStyle style)
Create a stroke for drawing lines and other path elements.- Parameters:
style
- the style to create a stroke for- Returns:
- a suitable
Stroke
for drawing
-
createOutlineStroke
public static java.awt.Stroke createOutlineStroke(OutlineStyle style)
Create a stroke for drawing shape outlines.- Parameters:
style
- the style to create a stroke for- Returns:
- a suitable
Stroke
for drawing
-
createStroke
public static java.awt.Stroke createStroke(float width, LineCap cap, LineJoin join, DashPattern dashPattern)
Create a stroke from the specified drawing attributes.- Parameters:
width
- the stroke widthcap
- the line cap stylejoin
- the line join styledashPattern
- the dash pattern style- Returns:
- a stroke for the specified attributes
-
-