类 Draw
- java.lang.Object
-
- org.meteoinfo.render.java2d.Draw
-
public class Draw extends Object
Draw class with some drawing methods- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 Draw()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StationModelShapecalStationModel(float windDir, float windSpeed, double value, float size, PointD sPoint, int weather, int temp, int dewPoint, int pressure, int cloudCover)Create station model shapestatic WindBarbcalWindBarb(float windDir, float windSpeed, double value, float size, PointD sPoint)Create wind barb from wind direction/speedstatic voiddrawArc(PointF[] points, float angle, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g)Draw Arcstatic voiddrawArc(PointF[] points, float angle, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g, int type)Draw Arcstatic voiddrawArc(PointF[] points, ArcShape arcShape, PolygonBreak legend, Graphics2D g)Draw Arcstatic voiddrawArc(PointF aPoint, float width, float height, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g, int type)Draw arcstatic Rectangle2DdrawArraw(Color aColor, PointF sP, WindArrow aArraw, Graphics2D g, double zoom)Draw wind arrowstatic voiddrawArraw(Graphics2D g, PointF sP, double angle, float length, float width, float overhang)Draw arrawstatic voiddrawArraw(Graphics2D g, PointF sP, double angle, float length, float width, float overhang, Color fillColor, Color outlineColor)Draw arrawstatic voiddrawArraw(Graphics2D g, PointF sP, double angle, int size)Draw arrawstatic voiddrawArrow(Graphics2D g, PointF sP, double angle)Draw arrowstatic voiddrawArrow(PointF[] points, PointBreak pb, int arrowSize, Graphics2D g)Draw arrow linestatic Rectangle2DdrawArrow(PointF sP, WindArrow arrow, ArrowBreak pb, Graphics2D g, double zoom)Draw wind arrowstatic voiddrawArrowLine(PointF[] points, ArrowLineBreak alb, Graphics2D g)Draw arrow polylinestatic voiddrawBar(PointF aPoint, float width, float height, PolygonBreak aPGB, Graphics2D g, boolean isView3D, int thickness)Draw bar chart symbolstatic voiddrawBar(PointF aPoint, int width, int height, PolygonBreak aPGB, Graphics2D g, boolean isView3D, int thickness)Draw bar chart symbolstatic voiddrawBarChartSymbol(PointF aPoint, ChartBreak aCB, Graphics2D g)Draw bar chart symbolstatic voiddrawBarChartSymbol(PointF aPoint, ChartBreak aCB, Graphics2D g, boolean drawValue)Draw bar chart symbolstatic voiddrawBarChartSymbol(PointF sPoint, ChartBreak aCB, Graphics2D g, boolean drawValue, Font font)Draw bar chart symbolstatic voiddrawChartPoint(PointF aPoint, ChartBreak aCB, Graphics2D g)Draw chart pointstatic voiddrawCircle(PointF[] points, PolygonBreak aPGB, Graphics2D g)Draw circlestatic voiddrawCurveLine(List<PointF> points, Graphics2D g)Draw curve linestatic voiddrawCurveLine(PointF[] points, Graphics2D g)Draw curve linestatic voiddrawCurveLine(PointF[] points, PolylineBreak aPLB, Graphics2D g)Draw curve linestatic voiddrawCurvePolygon(PointF[] points, PolygonBreak aPGB, Graphics2D g)Draw curve polygonstatic voiddrawEllipse(PointF[] points, float angle, PolygonBreak aPGB, Graphics2D g)Draw ellipsestatic voiddrawEllipse(PointF[] points, PolygonBreak aPGB, Graphics2D g)Draw ellipsestatic voiddrawGraphic(PointF[] points, Graphic aGraphic, Graphics2D g, boolean isEditingVertices)Draw graphicstatic voiddrawLabelPoint(float x, float y, Font font, String text, Color color, float angle, Graphics2D g, Rectangle rect)Draw label pointstatic voiddrawLabelPoint(float x, float y, Font font, String text, Color color, float angle, Graphics2D g, Rectangle rect, boolean useExternalFont)Draw label pointstatic voiddrawLabelPoint(PointF aPoint, LabelBreak aLB, Graphics2D g, Rectangle rect)Draw label pointstatic voiddrawLaTeX(Graphics2D g, String str, float x, float y, boolean useExternalFont)Draw LaTeX stringstatic voiddrawLaTeX(Graphics2D g, String str, float size, float x, float y, boolean useExternalFont)Draw LaTeX stringstatic voiddrawMapPoint(PointF aP, PointBreak aPB, Graphics2D g)Draw pointstatic voiddrawPie(PointF aPoint, float width, float height, float startAngle, float sweepAngle, PolygonBreak aPGB, float wedgeWidth, Graphics2D g)Draw piestatic voiddrawPie(PointF aPoint, float width, float height, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g)Draw piestatic voiddrawPieChartSymbol(PointF aPoint, ChartBreak aCB, Graphics2D g, List<String> labels)Draw pie chart symbolstatic voiddrawPoint(PointF aP, PointBreak aPB, Graphics2D g)Draw pointstatic voiddrawPoint(PointStyle aPS, PointF aP, Color color, Color outlineColor, float aSize, Boolean drawOutline, Boolean drawFill, Graphics2D g)Draw pointstatic voiddrawPolygon(PointD[] points, Color aColor, Color outlineColor, boolean drawFill, boolean drawOutline, Graphics2D g)Draw polygonstatic voiddrawPolygon(PointD[] points, PolygonBreak aPGB, Graphics2D g)Draw polygonstatic voiddrawPolygon(PointF[] points, Color aColor, Color outlineColor, boolean drawFill, boolean drawOutline, Graphics2D g)Draw polygonstatic voiddrawPolygon(PointF[] points, PolygonBreak aPGB, Graphics2D g)Draw polygonstatic voiddrawPolygon(Polygon aPG, PolygonBreak aPGB, Graphics2D g)Draw polygon with screen coordinatestatic voiddrawPolygonShape(PolygonShape pgs, PolygonBreak pgb, Graphics2D g)Draw polygon shape with screen coordinatesstatic voiddrawPolygonSymbol(double x, double y, double width, double height, PolygonBreak aPGB, Graphics2D g)Draw polygon symbolstatic voiddrawPolygonSymbol(double x, double y, Color aColor, Color outlineColor, double width, double height, Boolean drawFill, Boolean drawOutline, Graphics2D g)Draw polygon symbolstatic voiddrawPolygonSymbol(PointF aP, float width, float height, PolygonBreak aPGB, Graphics2D g)Draw polygon symbolstatic voiddrawPolygonSymbol(PointF aP, Color aColor, Color outlineColor, float width, float height, Boolean drawFill, Boolean drawOutline, Graphics2D g)Draw polygon symbolstatic voiddrawPolyline(List<PointF> points, Graphics2D g)Draw polylinestatic voiddrawPolyline(PointD[] points, Graphics2D g)Draw polylinestatic voiddrawPolyline(PointF[] points, Graphics2D g)Draw polylinestatic voiddrawPolyline(PointF[] points, Graphics2D g, List<Integer> mvIdx)Draw polylinestatic voiddrawPolyline(PointF[] points, ColorBreakCollection pbc, Graphics2D g)Draw polylinestatic voiddrawPolyline(PointF[] points, PolylineBreak aPLB, Graphics2D g)Draw polylinestatic voiddrawPolyline(PointF[] points, PolylineBreak aPLB, Graphics2D g, List<Integer> mvIdx)Draw polylinestatic voiddrawPolylineSymbol(PointF aP, float width, float height, PolylineBreak aPLB, Graphics2D g)Draw polyline symbolstatic voiddrawPolylineSymbol_S(PointF aP, float width, float height, PolylineBreak aPLB, Graphics2D g)Draw polyline symbolstatic voiddrawRectangle(PointF aPoint, float width, float height, PolygonBreak aPGB, Graphics2D g)Draw rectanglestatic voiddrawSelectedCorners(Graphics2D g, Rectangle gRect)Draw selected four corner rectanglesstatic voiddrawSelectedEdgeCenters(Graphics2D g, Rectangle gRect)Draw selected four bouder edge center rectanglesstatic voiddrawSelectedVertice(Graphics2D g, PointF point, float size, Color outlineColor, Color fillColor)Draw selected vertice rectanglesstatic voiddrawSelectedVertices(Graphics2D g, PointF[] points)Draw selected vertices rectanglesstatic voiddrawSelectedVertices(Graphics2D g, PointF[] points, float size, Color outlineColor, Color fillColor)Draw selected vertices rectanglesstatic voiddrawStationModel(Color aColor, Color foreColor, PointF sP, StationModelShape aSM, Graphics2D g, float size, float cut)Draw station model shapestatic voiddrawStreamline(PointF[] points, ColorBreakCollection cbc, Graphics2D g)Draw streamlinestatic voiddrawStreamline(PointF[] points, StreamlineBreak alb, Graphics2D g)Draw streamlinestatic voiddrawString(Graphics2D g, double x, double y, String s, XAlign x_align, YAlign y_align, boolean useExternalFont)Draws string at the specified coordinates with the specified alignment.static voiddrawString(Graphics2D g, double x, double y, String s, XAlign x_align, YAlign y_align, float angle, boolean useExternalFont)Draw out stringstatic voiddrawString(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, boolean useExternalFont)Draws string at the specified coordinates with the specified alignment.static voiddrawString(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, float angle, boolean useExternalFont)Draw out stringstatic voiddrawString(Graphics2D g, String str, double x, double y)Draw stringstatic voiddrawString(Graphics2D g, String str, double x, double y, boolean useExternalFont)Draw stringstatic voiddrawString(Graphics2D g, String str, float x, float y)Draw stringstatic voiddrawString(Graphics2D g, String str, float x, float y, boolean useExternalFont)Draw stringstatic voiddrawTickLabel(float x, float y, Font font, String text, Color color, float angle, Graphics2D g)Draw label pointstatic voiddrawTickLabel_Y(float x, float y, Font font, String text, Color color, float angle, Graphics2D g)Draw label pointstatic voiddrawTickLabel_YRight(float x, float y, Font font, String text, Color color, float angle, Graphics2D g)Draw label pointstatic voiddrawWindBarb(Color aColor, PointF sP, WindBarb aWB, Graphics2D g, float size)Draw wind barbstatic voiddrawWindBarb(Color aColor, PointF sP, WindBarb aWB, Graphics2D g, float size, float cut)Draw wind barbstatic voiddrawWindBarb(PointF sP, WindBarb aWB, PointBreak pb, Graphics2D g)Draw wind barbstatic voidfillPolygon(PointD[] points, Graphics2D g, PolygonBreak aPGB)Fill polygonstatic voidfillPolygon(PointF[] points, Graphics2D g, PolygonBreak aPGB)Fill polygonstatic Rectangle2DgetArrawBorder(PointF sP, WindArrow aArraw, Graphics2D g, double zoom)Draw wind arrowstatic float[]getDashPattern(LineStyles style)Get dash pattern from LineStylestatic BufferedImagegetHatchImage(HatchStyle style, int size, Color stripeColor, Color backColor, float lineWidth)Get hatch style imagestatic PointFgetPieLabelPoint(PointF sPoint, float r, float angle)Get pie wedge label pointstatic DimensiongetStringDimension(String str, float angle, Graphics2D g)Get string dimensionstatic DimensiongetStringDimension(String str, float angle, Graphics2D g, boolean isLaTeX)Get string dimensionstatic DimensiongetStringDimension(String str, Graphics2D g)Get string dimensionstatic DimensiongetStringDimension(String str, Graphics2D g, boolean isLaTeX)Get string dimensionstatic DimensiongetStringDimension(List<String> text, int lineSpace, Graphics2D g)Get dimension of the string liststatic StringTypegetStringType(String str)Get string type [NORMAL | LATEX | MIXING].static List<String>splitMixingString(String str)Split mixing string by $static AffineTransformtransform(Graphics2D g, double x, double y, String s, XAlign x_align, YAlign y_align, float angle)Graphics transformstatic AffineTransformtransform(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, float angle)Graphics transformstatic AffineTransformtransform_bak(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, float angle)Graphics transform
-
-
-
方法详细资料
-
getStringType
public static StringType getStringType(String str)
Get string type [NORMAL | LATEX | MIXING].- 参数:
str- The string- 返回:
- String type
-
splitMixingString
public static List<String> splitMixingString(String str)
Split mixing string by $- 参数:
str- The mixing string- 返回:
- String list
-
getStringDimension
public static Dimension getStringDimension(String str, Graphics2D g, boolean isLaTeX)
Get string dimension- 参数:
str- Stringg- Graphics2DisLaTeX- Is LaTeX or not- 返回:
- String dimension
-
getStringDimension
public static Dimension getStringDimension(String str, float angle, Graphics2D g, boolean isLaTeX)
Get string dimension- 参数:
str- Stringangle- Angleg- Graphics2DisLaTeX- Is LaTeX or not- 返回:
- String dimension
-
getStringDimension
public static Dimension getStringDimension(String str, Graphics2D g)
Get string dimension- 参数:
str- Stringg- Graphics2D- 返回:
- String dimension
-
getStringDimension
public static Dimension getStringDimension(String str, float angle, Graphics2D g)
Get string dimension- 参数:
str- Stringangle- Angleg- Graphics2D- 返回:
- String dimension
-
getStringDimension
public static Dimension getStringDimension(List<String> text, int lineSpace, Graphics2D g)
Get dimension of the string list- 参数:
text- The string listlineSpace- Line spaceg- Graphics2D- 返回:
- Dimension
-
drawString
public static void drawString(Graphics2D g, String str, float x, float y)
Draw string- 参数:
g- Graphics2Dstr- Stringx- Xy- Y
-
drawString
public static void drawString(Graphics2D g, String str, double x, double y)
Draw string- 参数:
g- Graphics2Dstr- Stringx- Xy- Y
-
drawString
public static void drawString(Graphics2D g, String str, float x, float y, boolean useExternalFont)
Draw string- 参数:
g- Graphics2Dstr- Stringx- Xy- YuseExternalFont- If use external font
-
drawString
public static void drawString(Graphics2D g, String str, double x, double y, boolean useExternalFont)
Draw string- 参数:
g- Graphics2Dstr- Stringx- Xy- YuseExternalFont- If use external font
-
drawLaTeX
public static void drawLaTeX(Graphics2D g, String str, float x, float y, boolean useExternalFont)
Draw LaTeX string- 参数:
g- Graphics2Dstr- Stringx- Xy- YuseExternalFont- If use external font
-
drawLaTeX
public static void drawLaTeX(Graphics2D g, String str, float size, float x, float y, boolean useExternalFont)
Draw LaTeX string- 参数:
g- Graphics2Dstr- Stringsize- Sizex- Xy- YuseExternalFont- If use external font
-
calWindBarb
public static WindBarb calWindBarb(float windDir, float windSpeed, double value, float size, PointD sPoint)
Create wind barb from wind direction/speed- 参数:
windDir- Wind directionwindSpeed- Wind speedvalue- Valuesize- SizesPoint- Start point- 返回:
- WindBarb
-
calStationModel
public static StationModelShape calStationModel(float windDir, float windSpeed, double value, float size, PointD sPoint, int weather, int temp, int dewPoint, int pressure, int cloudCover)
Create station model shape- 参数:
windDir- Wind directionwindSpeed- Wind speedvalue- Valuesize- SizesPoint- Location pointweather- Weathertemp- TemperaturedewPoint- Dew pointpressure- PressurecloudCover- Cloud cover- 返回:
- Station model shape
-
getArrawBorder
public static Rectangle2D getArrawBorder(PointF sP, WindArrow aArraw, Graphics2D g, double zoom)
Draw wind arrow- 参数:
sP- Start pointaArraw- The arrowg- Graphics2Dzoom- Zoom- 返回:
- Border rectangle
-
drawArrow
public static void drawArrow(PointF[] points, PointBreak pb, int arrowSize, Graphics2D g)
Draw arrow line- 参数:
points- Line pointspb- LegendarrowSize- ArrowSizeg- Graphics2D
-
drawArraw
public static Rectangle2D drawArraw(Color aColor, PointF sP, WindArrow aArraw, Graphics2D g, double zoom)
Draw wind arrow- 参数:
aColor- The colorsP- Start pointaArraw- The arrowg- Graphics2Dzoom- Zoom- 返回:
- Border rectangle
-
drawArrow
public static Rectangle2D drawArrow(PointF sP, WindArrow arrow, ArrowBreak pb, Graphics2D g, double zoom)
Draw wind arrow- 参数:
sP- Start pointarrow- The arrowpb- PointBreakg- Graphics2Dzoom- Zoom- 返回:
- Border rectangle
-
drawArrow
public static void drawArrow(Graphics2D g, PointF sP, double angle)
Draw arrow- 参数:
g- Graphics2DsP- Start pointangle- Angle
-
drawArraw
public static void drawArraw(Graphics2D g, PointF sP, double angle, int size)
Draw arraw- 参数:
g- Graphics2DsP- Start pointangle- Anglesize- Arrow size
-
drawArraw
public static void drawArraw(Graphics2D g, PointF sP, double angle, float length, float width, float overhang)
Draw arraw- 参数:
g- Graphics2DsP- Start pointangle- Anglelength- Arrow lengthwidth- Arrow widthoverhang- Overhang
-
drawArraw
public static void drawArraw(Graphics2D g, PointF sP, double angle, float length, float width, float overhang, Color fillColor, Color outlineColor)
Draw arraw- 参数:
g- Graphics2DsP- Start pointangle- Anglelength- Arrow lengthwidth- Arrow widthoverhang- OverhangfillColor- Arrow fill coloroutlineColor- Arrow outline color
-
drawWindBarb
public static void drawWindBarb(Color aColor, PointF sP, WindBarb aWB, Graphics2D g, float size)
Draw wind barb- 参数:
aColor- ColorsP- PointaWB- WindBarbg- Grahics2Dsize- Size
-
drawWindBarb
public static void drawWindBarb(PointF sP, WindBarb aWB, PointBreak pb, Graphics2D g)
Draw wind barb- 参数:
sP- PointaWB- WindBarbpb- PointBreakg- Grahics2D
-
drawWindBarb
public static void drawWindBarb(Color aColor, PointF sP, WindBarb aWB, Graphics2D g, float size, float cut)
Draw wind barb- 参数:
aColor- ColorsP- PointaWB- WindBarbg- Grahics2Dsize- Sizecut- Cut
-
drawPoint
public static void drawPoint(PointStyle aPS, PointF aP, Color color, Color outlineColor, float aSize, Boolean drawOutline, Boolean drawFill, Graphics2D g)
Draw point- 参数:
aPS- Point styleaP- The point positioncolor- The coloroutlineColor- Outline coloraSize- sizedrawOutline- If draw outlinedrawFill- If draw fillg- Graphics2D
-
drawPoint
public static void drawPoint(PointF aP, PointBreak aPB, Graphics2D g)
Draw point- 参数:
aP- PositionaPB- Point breakg- Graphics
-
drawMapPoint
public static void drawMapPoint(PointF aP, PointBreak aPB, Graphics2D g)
Draw point- 参数:
aP- PositionaPB- Point breakg- Graphics
-
drawString
public static void drawString(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, boolean useExternalFont)
Draws string at the specified coordinates with the specified alignment.- 参数:
g- graphics context to drawx- the x coordinatey- the y coordinates- the string to drawx_align- the alignment in x directiony_align- the alignment in y directionuseExternalFont- Use external font or not
-
drawString
public static void drawString(Graphics2D g, double x, double y, String s, XAlign x_align, YAlign y_align, boolean useExternalFont)
Draws string at the specified coordinates with the specified alignment.- 参数:
g- graphics context to drawx- the x coordinatey- the y coordinates- the string to drawx_align- the alignment in x directiony_align- the alignment in y directionuseExternalFont- Use external font or not
-
drawString
public static void drawString(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, float angle, boolean useExternalFont)
Draw out string- 参数:
g- Graphics2Dx- X locationy- Y locations- Stringx_align- X aligny_align- Y alignangle- AngleuseExternalFont- Use external font or not
-
drawString
public static void drawString(Graphics2D g, double x, double y, String s, XAlign x_align, YAlign y_align, float angle, boolean useExternalFont)
Draw out string- 参数:
g- Graphics2Dx- X locationy- Y locations- Stringx_align- X aligny_align- Y alignangle- AngleuseExternalFont- Use external font or not
-
transform_bak
public static AffineTransform transform_bak(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, float angle)
Graphics transform- 参数:
g- Graphics2Dx- X locationy- Y locations- Stringx_align- X aligny_align- Y alignangle- Angle- 返回:
- AffineTransform
-
transform
public static AffineTransform transform(Graphics2D g, float x, float y, String s, XAlign x_align, YAlign y_align, float angle)
Graphics transform- 参数:
g- Graphics2Dx- X locationy- Y locations- Stringx_align- X aligny_align- Y alignangle- Angle- 返回:
- AffineTransform
-
transform
public static AffineTransform transform(Graphics2D g, double x, double y, String s, XAlign x_align, YAlign y_align, float angle)
Graphics transform- 参数:
g- Graphics2Dx- X locationy- Y locations- Stringx_align- X aligny_align- Y alignangle- Angle- 返回:
- AffineTransform
-
drawLabelPoint
public static void drawLabelPoint(PointF aPoint, LabelBreak aLB, Graphics2D g, Rectangle rect)
Draw label point- 参数:
aPoint- The screen pointaLB- The label breakg- Graphics2Drect- The extent rectangle
-
drawLabelPoint
public static void drawLabelPoint(float x, float y, Font font, String text, Color color, float angle, Graphics2D g, Rectangle rect)Draw label point- 参数:
x- Xy- Yfont- Fonttext- Textcolor- Colorg- Graphics2Drect- The extent rectangleangle- Angle
-
drawLabelPoint
public static void drawLabelPoint(float x, float y, Font font, String text, Color color, float angle, Graphics2D g, Rectangle rect, boolean useExternalFont)Draw label point- 参数:
x- Xy- Yfont- Fonttext- Textcolor- Colorg- Graphics2Drect- The extent rectangleangle- AngleuseExternalFont- If use external font
-
drawTickLabel
public static void drawTickLabel(float x, float y, Font font, String text, Color color, float angle, Graphics2D g)Draw label point- 参数:
x- Xy- Yfont- Fonttext- Textcolor- Colorg- Graphics2Dangle- Angle
-
drawTickLabel_Y
public static void drawTickLabel_Y(float x, float y, Font font, String text, Color color, float angle, Graphics2D g)Draw label point- 参数:
x- Xy- Yfont- Fonttext- Textcolor- Colorg- Graphics2Dangle- Angle
-
drawTickLabel_YRight
public static void drawTickLabel_YRight(float x, float y, Font font, String text, Color color, float angle, Graphics2D g)Draw label point- 参数:
x- Xy- Yfont- Fonttext- Textcolor- Colorg- Graphics2Dangle- Angle
-
drawStationModel
public static void drawStationModel(Color aColor, Color foreColor, PointF sP, StationModelShape aSM, Graphics2D g, float size, float cut)
Draw station model shape- 参数:
aColor- ColorforeColor- Foreground colorsP- Start pointaSM- Station model shapeg- Graphics2Dsize- Sizecut- Cut
-
drawGraphic
public static void drawGraphic(PointF[] points, Graphic aGraphic, Graphics2D g, boolean isEditingVertices)
Draw graphic- 参数:
points- The pointsaGraphic- The graphicg- Graphics2DisEditingVertices- Is editing vertices
-
drawPolyline
public static void drawPolyline(List<PointF> points, Graphics2D g)
Draw polyline- 参数:
points- Points listg- Graphics2D
-
drawPolyline
public static void drawPolyline(PointF[] points, Graphics2D g)
Draw polyline- 参数:
points- The points arrayg- Graphics2D
-
drawPolyline
public static void drawPolyline(PointD[] points, Graphics2D g)
Draw polyline- 参数:
points- The points arrayg- Graphics2D
-
drawPolyline
public static void drawPolyline(PointF[] points, Graphics2D g, List<Integer> mvIdx)
Draw polyline- 参数:
points- The points arrayg- Graphics2DmvIdx- Missing value index list
-
fillPolygon
public static void fillPolygon(PointF[] points, Graphics2D g, PolygonBreak aPGB)
Fill polygon- 参数:
points- The points arrayg- Graphics2DaPGB- Polygon break
-
fillPolygon
public static void fillPolygon(PointD[] points, Graphics2D g, PolygonBreak aPGB)
Fill polygon- 参数:
points- The points arrayg- Graphics2DaPGB- Polygon break
-
drawPolygonShape
public static void drawPolygonShape(PolygonShape pgs, PolygonBreak pgb, Graphics2D g)
Draw polygon shape with screen coordinates- 参数:
pgs- Polygon shapepgb- Polygon breakg- Graphics2D
-
drawPolygon
public static void drawPolygon(Polygon aPG, PolygonBreak aPGB, Graphics2D g)
Draw polygon with screen coordinate- 参数:
aPG- Polygon shapeaPGB- Polygon breakg- Graphics2D
-
drawPolygon
public static void drawPolygon(PointF[] points, PolygonBreak aPGB, Graphics2D g)
Draw polygon- 参数:
points- The pointsaPGB- The polygon breakg- Graphics2D
-
drawPolygon
public static void drawPolygon(PointD[] points, PolygonBreak aPGB, Graphics2D g)
Draw polygon- 参数:
points- The pointsaPGB- The polygon breakg- Graphics2D
-
drawPolygon
public static void drawPolygon(PointF[] points, Color aColor, Color outlineColor, boolean drawFill, boolean drawOutline, Graphics2D g)
Draw polygon- 参数:
points- The pointsaColor- Fill ocloroutlineColor- Outline colordrawFill-drawOutline-g-
-
drawPolygon
public static void drawPolygon(PointD[] points, Color aColor, Color outlineColor, boolean drawFill, boolean drawOutline, Graphics2D g)
Draw polygon- 参数:
points- The pointsaColor- Fill ocloroutlineColor- Outline colordrawFill-drawOutline-g-
-
getHatchImage
public static BufferedImage getHatchImage(HatchStyle style, int size, Color stripeColor, Color backColor, float lineWidth)
Get hatch style image- 参数:
style- Hatch stylesize-stripeColor- Stripe colorbackColor- Background colorlineWidth- Hatch line width- 返回:
- Hatch style image
-
getDashPattern
public static float[] getDashPattern(LineStyles style)
Get dash pattern from LineStyle- 参数:
style- The line style- 返回:
- Dash pattern array
-
drawArrowLine
public static void drawArrowLine(PointF[] points, ArrowLineBreak alb, Graphics2D g)
Draw arrow polyline- 参数:
points- The pointsalb- The arrow line breakg- Graphics2D
-
drawStreamline
public static void drawStreamline(PointF[] points, StreamlineBreak alb, Graphics2D g)
Draw streamline- 参数:
points- The pointsalb- The streamline breakg- Graphics2D
-
drawStreamline
public static void drawStreamline(PointF[] points, ColorBreakCollection cbc, Graphics2D g)
Draw streamline- 参数:
points- The pointscbc- The streamline breaksg- Graphics2D
-
drawPolyline
public static void drawPolyline(PointF[] points, PolylineBreak aPLB, Graphics2D g)
Draw polyline- 参数:
points- The pointsaPLB- The polyline breakg- Graphics2D
-
drawPolyline
public static void drawPolyline(PointF[] points, ColorBreakCollection pbc, Graphics2D g)
Draw polyline- 参数:
points- The pointspbc- The polyline break collectiong- Graphics2D
-
drawPolyline
public static void drawPolyline(PointF[] points, PolylineBreak aPLB, Graphics2D g, List<Integer> mvIdx)
Draw polyline- 参数:
points- The pointsaPLB- The polyline breakg- Graphics2DmvIdx- Missing value index list
-
drawPolylineSymbol
public static void drawPolylineSymbol(PointF aP, float width, float height, PolylineBreak aPLB, Graphics2D g)
Draw polyline symbol- 参数:
aP- The pointwidth- The widthheight- The heightaPLB- The polyline breakg- Graphics2D
-
drawPolylineSymbol_S
public static void drawPolylineSymbol_S(PointF aP, float width, float height, PolylineBreak aPLB, Graphics2D g)
Draw polyline symbol- 参数:
aP- The pointwidth- The widthheight- The heightaPLB- The polyline breakg- Graphics2D
-
drawPolygonSymbol
public static void drawPolygonSymbol(double x, double y, double width, double height, PolygonBreak aPGB, Graphics2D g)Draw polygon symbol- 参数:
x- Xy- Ywidth- The widthheight- The heightaPGB- The polygon breakg- Graphics2D
-
drawPolygonSymbol
public static void drawPolygonSymbol(PointF aP, float width, float height, PolygonBreak aPGB, Graphics2D g)
Draw polygon symbol- 参数:
aP- The center pointwidth- The widthheight- The heightaPGB- The polygon breakg- Graphics2D
-
drawPolygonSymbol
public static void drawPolygonSymbol(double x, double y, Color aColor, Color outlineColor, double width, double height, Boolean drawFill, Boolean drawOutline, Graphics2D g)Draw polygon symbol- 参数:
x- Xy- YaColor- Fill coloroutlineColor- Outline colorwidth- Widthheight- HeightdrawFill- If draw filldrawOutline- If draw outlineg- Grahics2D
-
drawPolygonSymbol
public static void drawPolygonSymbol(PointF aP, Color aColor, Color outlineColor, float width, float height, Boolean drawFill, Boolean drawOutline, Graphics2D g)
Draw polygon symbol- 参数:
aP- The center pointaColor- Fill coloroutlineColor- Outline colorwidth- Widthheight- HeightdrawFill- If draw filldrawOutline- If draw outlineg- Grahics2D
-
drawRectangle
public static void drawRectangle(PointF aPoint, float width, float height, PolygonBreak aPGB, Graphics2D g)
Draw rectangle- 参数:
aPoint- Start pointwidth- Widthheight- HeightaPGB- Polygon breakg- Graphics2D
-
drawArc
public static void drawArc(PointF aPoint, float width, float height, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g, int type)
Draw arc- 参数:
aPoint- Start pointwidth- Widthheight- HeightstartAngle- Start anglesweepAngle- Sweep angleaPGB- Polygon breakg- Graphics2Dtype- Closure type
-
drawPie
public static void drawPie(PointF aPoint, float width, float height, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g)
Draw pie- 参数:
aPoint- Start pointwidth- Widthheight- HeightstartAngle- Start anglesweepAngle- Sweep angleaPGB- Polygon breakg- Graphics2D
-
drawPie
public static void drawPie(PointF aPoint, float width, float height, float startAngle, float sweepAngle, PolygonBreak aPGB, float wedgeWidth, Graphics2D g)
Draw pie- 参数:
aPoint- Start pointwidth- Widthheight- HeightstartAngle- Start anglesweepAngle- Sweep angleaPGB- Polygon breakwedgeWidth- Wedge widthg- Graphics2D
-
drawCurveLine
public static void drawCurveLine(PointF[] points, PolylineBreak aPLB, Graphics2D g)
Draw curve line- 参数:
points- The pointsaPLB- The polyline breakg- Graphics2D
-
drawCurveLine
public static void drawCurveLine(List<PointF> points, Graphics2D g)
Draw curve line- 参数:
points- The points listg- Graphics2D
-
drawCurveLine
public static void drawCurveLine(PointF[] points, Graphics2D g)
Draw curve line- 参数:
points- The pointsg- Graphics2D
-
drawCurvePolygon
public static void drawCurvePolygon(PointF[] points, PolygonBreak aPGB, Graphics2D g)
Draw curve polygon- 参数:
points- The pointsaPGB- Polygon breakg- Graphics2D
-
drawCircle
public static void drawCircle(PointF[] points, PolygonBreak aPGB, Graphics2D g)
Draw circle- 参数:
points- The pointsaPGB- The polygon breakg- Graphics2D
-
drawEllipse
public static void drawEllipse(PointF[] points, float angle, PolygonBreak aPGB, Graphics2D g)
Draw ellipse- 参数:
points- The pointsangle- The angleaPGB- The polygon breakg- Graphics2D
-
drawEllipse
public static void drawEllipse(PointF[] points, PolygonBreak aPGB, Graphics2D g)
Draw ellipse- 参数:
points- The pointsaPGB- The polygon breakg- Graphics2D
-
drawArc
public static void drawArc(PointF[] points, float angle, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g)
Draw Arc- 参数:
points- The pointsangle- The angleaPGB- The polygon breakg- Graphics2D
-
drawArc
public static void drawArc(PointF[] points, float angle, float startAngle, float sweepAngle, PolygonBreak aPGB, Graphics2D g, int type)
Draw Arc- 参数:
points- The pointsangle- The anglestartAngle- Arc start anglesweepAngle- Arc sweep angleaPGB- The polygon breakg- Graphics2Dtype- Closure type
-
drawArc
public static void drawArc(PointF[] points, ArcShape arcShape, PolygonBreak legend, Graphics2D g)
Draw Arc- 参数:
points- The pointsangle- The anglestartAngle- Arc start anglesweepAngle- Arc sweep angleaPGB- The polygon breakg- Graphics2Dtype- Closure type
-
drawSelectedVertices
public static void drawSelectedVertices(Graphics2D g, PointF[] points)
Draw selected vertices rectangles- 参数:
g- Graphics2Dpoints- The points
-
drawSelectedVertices
public static void drawSelectedVertices(Graphics2D g, PointF[] points, float size, Color outlineColor, Color fillColor)
Draw selected vertices rectangles- 参数:
g- Graphics2Dpoints- The pointssize- The sizeoutlineColor- Outline coloefillColor- Fill color
-
drawSelectedVertice
public static void drawSelectedVertice(Graphics2D g, PointF point, float size, Color outlineColor, Color fillColor)
Draw selected vertice rectangles- 参数:
g- Graphics2Dpoint- The pointsize- The sizeoutlineColor- Outline coloefillColor- Fill color
-
drawSelectedCorners
public static void drawSelectedCorners(Graphics2D g, Rectangle gRect)
Draw selected four corner rectangles- 参数:
g- Graphics2DgRect- The rectangle
-
drawSelectedEdgeCenters
public static void drawSelectedEdgeCenters(Graphics2D g, Rectangle gRect)
Draw selected four bouder edge center rectangles- 参数:
g- Graphics2DgRect- The rectangle
-
drawChartPoint
public static void drawChartPoint(PointF aPoint, ChartBreak aCB, Graphics2D g)
Draw chart point- 参数:
aPoint- Screen pointaCB- Chart breakg- Graphics2D
-
drawBarChartSymbol
public static void drawBarChartSymbol(PointF aPoint, ChartBreak aCB, Graphics2D g)
Draw bar chart symbol- 参数:
aPoint- Start pointaCB- Chart breakg- Graphics2D
-
drawBarChartSymbol
public static void drawBarChartSymbol(PointF aPoint, ChartBreak aCB, Graphics2D g, boolean drawValue)
Draw bar chart symbol- 参数:
aPoint- Start pointaCB- Chart breakg- Graphics2DdrawValue- If draw value
-
drawBarChartSymbol
public static void drawBarChartSymbol(PointF sPoint, ChartBreak aCB, Graphics2D g, boolean drawValue, Font font)
Draw bar chart symbol- 参数:
sPoint- Start pointaCB- Chart breakg- Graphics2DdrawValue- If draw valuefont- Value font
-
drawBar
public static void drawBar(PointF aPoint, int width, int height, PolygonBreak aPGB, Graphics2D g, boolean isView3D, int thickness)
Draw bar chart symbol- 参数:
aPoint- Start pointwidth- Widthheight- Heightg- Graphics2DaPGB- Polygon beakisView3D- Is view as 3Dthickness- 3D thickness
-
drawBar
public static void drawBar(PointF aPoint, float width, float height, PolygonBreak aPGB, Graphics2D g, boolean isView3D, int thickness)
Draw bar chart symbol- 参数:
aPoint- Start pointwidth- Widthheight- Heightg- Graphics2DaPGB- Polygon beakisView3D- Is view as 3Dthickness- 3D thickness
-
drawPieChartSymbol
public static void drawPieChartSymbol(PointF aPoint, ChartBreak aCB, Graphics2D g, List<String> labels)
Draw pie chart symbol- 参数:
aPoint- Start pointaCB- Chart breakg- Graphics2Dlabels- Labels
-
-