|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.util.StrokeUtil
public abstract class StrokeUtil
Title: IJChart
Description: a chart library for the Java(tm) platform.
Nice static helpers for working with Stroke.Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
StrokeUtil()
|
Method Summary | |
---|---|
static float |
getStrokeWidth(java.awt.Stroke stroke)
Returns the width of stroke shape.If stroke instanceof BasicStroke return BasicStroke.getLineWidth(),otherwise return 1. |
static java.awt.Shape |
lineToRectangle(java.awt.geom.Line2D line,
java.awt.Stroke stroke,
double rotate)
Returns the high-precision bounding box of this Line2D. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrokeUtil()
Method Detail |
---|
public static float getStrokeWidth(java.awt.Stroke stroke)
stroke
- Stroke
The Stroke object.
public static java.awt.Shape lineToRectangle(java.awt.geom.Line2D line, java.awt.Stroke stroke, double rotate)
line
- Line2D
The line (null permitted).stroke
- Stroke
The stroke object (null permitted).rotate
- double
The rotate angle.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |