Class ShapeRenderer
java.lang.Object
de.gurkenlabs.litiengine.graphics.ShapeRenderer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrender(Graphics2D g, Shape shape) Renders the specifiedShapeto the givenGraphics2Dobject.static voidrender(Graphics2D g, Shape shape, double x, double y) Renders the specifiedShapeto the givenGraphics2Dobject at the specified coordinates.static voidrender(Graphics2D g, Shape shape, Point2D location) Renders the specifiedShapeto the givenGraphics2Dobject at the specified location.static voidrenderOutline(Graphics2D g, Shape shape) Renders the outline of the specifiedShapeto the givenGraphics2Dobject.static voidrenderOutline(Graphics2D g, Shape shape, float stroke) Renders the outline of the specifiedShapeto the givenGraphics2Dobject with the specified stroke width.static voidrenderOutline(Graphics2D g, Shape shape, Stroke stroke) Renders the outline of the specifiedShapeto the givenGraphics2Dobject with the specified stroke.static voidrenderOutlineTransformed(Graphics2D g, Shape shape, AffineTransform transform) Renders the outline of the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation.static voidrenderOutlineTransformed(Graphics2D g, Shape shape, AffineTransform transform, float stroke) Renders the outline of the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation and stroke width.static voidrenderOutlineTransformed(Graphics2D g, Shape shape, AffineTransform transform, Stroke stroke) Renders the outline of the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation and stroke.static voidrenderTransformed(Graphics2D g, Shape shape, AffineTransform transform) Renders the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation.
-
Field Details
-
DEFAULT_STROKE
-
-
Method Details
-
render
Renders the specifiedShapeto the givenGraphics2Dobject.- Parameters:
g- The graphics object to draw on.shape- The shape to be drawn.
-
render
Renders the specifiedShapeto the givenGraphics2Dobject at the specified coordinates.- Parameters:
g- The graphics object to draw on.shape- The shape to be drawn.x- The x-coordinate of the shape.y- The y-coordinate of the shape.
-
render
Renders the specifiedShapeto the givenGraphics2Dobject at the specified location.- Parameters:
g- The graphics object to draw on.shape- The shape to be drawn.location- The location where the shape will be drawn.
-
renderOutline
Renders the outline of the specifiedShapeto the givenGraphics2Dobject.- Parameters:
g- The graphics object to draw on.shape- The shape whose outline is to be drawn.
-
renderOutline
Renders the outline of the specifiedShapeto the givenGraphics2Dobject with the specified stroke width.- Parameters:
g- The graphics object to draw on.shape- The shape whose outline is to be drawn.stroke- The stroke width for the outline.
-
renderOutline
Renders the outline of the specifiedShapeto the givenGraphics2Dobject with the specified stroke.- Parameters:
g- The graphics object to draw on.shape- The shape whose outline is to be drawn.stroke- The stroke for the outline.
-
renderTransformed
Renders the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation.- Parameters:
g- The graphics object to draw on.shape- The shape to be drawn.transform- The affine transformation to be applied to the shape.
-
renderOutlineTransformed
Renders the outline of the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation.- Parameters:
g- The graphics object to draw on.shape- The shape whose outline is to be drawn.transform- The affine transformation to be applied to the shape.
-
renderOutlineTransformed
public static void renderOutlineTransformed(Graphics2D g, Shape shape, AffineTransform transform, float stroke) Renders the outline of the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation and stroke width.- Parameters:
g- The graphics object to draw on.shape- The shape whose outline is to be drawn.transform- The affine transformation to be applied to the shape.stroke- The stroke width for the outline.
-
renderOutlineTransformed
public static void renderOutlineTransformed(Graphics2D g, Shape shape, AffineTransform transform, Stroke stroke) Renders the outline of the specifiedShapeto the givenGraphics2Dobject with a custom affine transformation and stroke.- Parameters:
g- The graphics object to draw on.shape- The shape whose outline is to be drawn.transform- The affine transformation to be applied to the shape.stroke- The stroke for the outline.
-