类 Draw


  • public class Draw
    extends Object
    Draw class with some drawing methods
    作者:
    Yaqiang Wang
    • 构造器详细资料

      • Draw

        public Draw()
    • 方法详细资料

      • 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 - String
        g - Graphics2D
        isLaTeX - Is LaTeX or not
        返回:
        String dimension
      • getStringDimension

        public static Dimension getStringDimension​(String str,
                                                   float angle,
                                                   Graphics2D g,
                                                   boolean isLaTeX)
        Get string dimension
        参数:
        str - String
        angle - Angle
        g - Graphics2D
        isLaTeX - Is LaTeX or not
        返回:
        String dimension
      • getStringDimension

        public static Dimension getStringDimension​(String str,
                                                   Graphics2D g)
        Get string dimension
        参数:
        str - String
        g - Graphics2D
        返回:
        String dimension
      • getStringDimension

        public static Dimension getStringDimension​(String str,
                                                   float angle,
                                                   Graphics2D g)
        Get string dimension
        参数:
        str - String
        angle - Angle
        g - Graphics2D
        返回:
        String dimension
      • getStringDimension

        public static Dimension getStringDimension​(List<String> text,
                                                   int lineSpace,
                                                   Graphics2D g)
        Get dimension of the string list
        参数:
        text - The string list
        lineSpace - Line space
        g - Graphics2D
        返回:
        Dimension
      • drawString

        public static void drawString​(Graphics2D g,
                                      String str,
                                      float x,
                                      float y)
        Draw string
        参数:
        g - Graphics2D
        str - String
        x - X
        y - Y
      • drawString

        public static void drawString​(Graphics2D g,
                                      String str,
                                      double x,
                                      double y)
        Draw string
        参数:
        g - Graphics2D
        str - String
        x - X
        y - Y
      • drawString

        public static void drawString​(Graphics2D g,
                                      String str,
                                      float x,
                                      float y,
                                      boolean useExternalFont)
        Draw string
        参数:
        g - Graphics2D
        str - String
        x - X
        y - Y
        useExternalFont - If use external font
      • drawString

        public static void drawString​(Graphics2D g,
                                      String str,
                                      double x,
                                      double y,
                                      boolean useExternalFont)
        Draw string
        参数:
        g - Graphics2D
        str - String
        x - X
        y - Y
        useExternalFont - If use external font
      • drawLaTeX

        public static void drawLaTeX​(Graphics2D g,
                                     String str,
                                     float x,
                                     float y,
                                     boolean useExternalFont)
        Draw LaTeX string
        参数:
        g - Graphics2D
        str - String
        x - X
        y - Y
        useExternalFont - 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 - Graphics2D
        str - String
        size - Size
        x - X
        y - Y
        useExternalFont - 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 direction
        windSpeed - Wind speed
        value - Value
        size - Size
        sPoint - 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 direction
        windSpeed - Wind speed
        value - Value
        size - Size
        sPoint - Location point
        weather - Weather
        temp - Temperature
        dewPoint - Dew point
        pressure - Pressure
        cloudCover - Cloud cover
        返回:
        Station model shape
      • getArrawBorder

        public static Rectangle2D getArrawBorder​(PointF sP,
                                                 WindArrow aArraw,
                                                 Graphics2D g,
                                                 double zoom)
        Draw wind arrow
        参数:
        sP - Start point
        aArraw - The arrow
        g - Graphics2D
        zoom - Zoom
        返回:
        Border rectangle
      • drawArrow

        public static void drawArrow​(PointF[] points,
                                     PointBreak pb,
                                     int arrowSize,
                                     Graphics2D g)
        Draw arrow line
        参数:
        points - Line points
        pb - Legend
        arrowSize - ArrowSize
        g - Graphics2D
      • drawArraw

        public static Rectangle2D drawArraw​(Color aColor,
                                            PointF sP,
                                            WindArrow aArraw,
                                            Graphics2D g,
                                            double zoom)
        Draw wind arrow
        参数:
        aColor - The color
        sP - Start point
        aArraw - The arrow
        g - Graphics2D
        zoom - Zoom
        返回:
        Border rectangle
      • drawArrow

        public static Rectangle2D drawArrow​(PointF sP,
                                            WindArrow arrow,
                                            ArrowBreak pb,
                                            Graphics2D g,
                                            double zoom)
        Draw wind arrow
        参数:
        sP - Start point
        arrow - The arrow
        pb - PointBreak
        g - Graphics2D
        zoom - Zoom
        返回:
        Border rectangle
      • drawArrow

        public static void drawArrow​(Graphics2D g,
                                     PointF sP,
                                     double angle)
        Draw arrow
        参数:
        g - Graphics2D
        sP - Start point
        angle - Angle
      • drawArraw

        public static void drawArraw​(Graphics2D g,
                                     PointF sP,
                                     double angle,
                                     int size)
        Draw arraw
        参数:
        g - Graphics2D
        sP - Start point
        angle - Angle
        size - Arrow size
      • drawArraw

        public static void drawArraw​(Graphics2D g,
                                     PointF sP,
                                     double angle,
                                     float length,
                                     float width,
                                     float overhang)
        Draw arraw
        参数:
        g - Graphics2D
        sP - Start point
        angle - Angle
        length - Arrow length
        width - Arrow width
        overhang - 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 - Graphics2D
        sP - Start point
        angle - Angle
        length - Arrow length
        width - Arrow width
        overhang - Overhang
        fillColor - Arrow fill color
        outlineColor - Arrow outline color
      • drawWindBarb

        public static void drawWindBarb​(Color aColor,
                                        PointF sP,
                                        WindBarb aWB,
                                        Graphics2D g,
                                        float size)
        Draw wind barb
        参数:
        aColor - Color
        sP - Point
        aWB - WindBarb
        g - Grahics2D
        size - Size
      • drawWindBarb

        public static void drawWindBarb​(PointF sP,
                                        WindBarb aWB,
                                        PointBreak pb,
                                        Graphics2D g)
        Draw wind barb
        参数:
        sP - Point
        aWB - WindBarb
        pb - PointBreak
        g - Grahics2D
      • drawWindBarb

        public static void drawWindBarb​(Color aColor,
                                        PointF sP,
                                        WindBarb aWB,
                                        Graphics2D g,
                                        float size,
                                        float cut)
        Draw wind barb
        参数:
        aColor - Color
        sP - Point
        aWB - WindBarb
        g - Grahics2D
        size - Size
        cut - 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 style
        aP - The point position
        color - The color
        outlineColor - Outline color
        aSize - size
        drawOutline - If draw outline
        drawFill - If draw fill
        g - Graphics2D
      • drawPoint

        public static void drawPoint​(PointF aP,
                                     PointBreak aPB,
                                     Graphics2D g)
        Draw point
        参数:
        aP - Position
        aPB - Point break
        g - Graphics
      • drawMapPoint

        public static void drawMapPoint​(PointF aP,
                                        PointBreak aPB,
                                        Graphics2D g)
        Draw point
        参数:
        aP - Position
        aPB - Point break
        g - 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 draw
        x - the x coordinate
        y - the y coordinate
        s - the string to draw
        x_align - the alignment in x direction
        y_align - the alignment in y direction
        useExternalFont - 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 draw
        x - the x coordinate
        y - the y coordinate
        s - the string to draw
        x_align - the alignment in x direction
        y_align - the alignment in y direction
        useExternalFont - 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 - Graphics2D
        x - X location
        y - Y location
        s - String
        x_align - X align
        y_align - Y align
        angle - Angle
        useExternalFont - 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 - Graphics2D
        x - X location
        y - Y location
        s - String
        x_align - X align
        y_align - Y align
        angle - Angle
        useExternalFont - 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 - Graphics2D
        x - X location
        y - Y location
        s - String
        x_align - X align
        y_align - Y align
        angle - 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 - Graphics2D
        x - X location
        y - Y location
        s - String
        x_align - X align
        y_align - Y align
        angle - 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 - Graphics2D
        x - X location
        y - Y location
        s - String
        x_align - X align
        y_align - Y align
        angle - Angle
        返回:
        AffineTransform
      • drawLabelPoint

        public static void drawLabelPoint​(PointF aPoint,
                                          LabelBreak aLB,
                                          Graphics2D g,
                                          Rectangle rect)
        Draw label point
        参数:
        aPoint - The screen point
        aLB - The label break
        g - Graphics2D
        rect - 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 - X
        y - Y
        font - Font
        text - Text
        color - Color
        g - Graphics2D
        rect - The extent rectangle
        angle - 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 - X
        y - Y
        font - Font
        text - Text
        color - Color
        g - Graphics2D
        rect - The extent rectangle
        angle - Angle
        useExternalFont - 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 - X
        y - Y
        font - Font
        text - Text
        color - Color
        g - Graphics2D
        angle - 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 - X
        y - Y
        font - Font
        text - Text
        color - Color
        g - Graphics2D
        angle - 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 - X
        y - Y
        font - Font
        text - Text
        color - Color
        g - Graphics2D
        angle - 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 - Color
        foreColor - Foreground color
        sP - Start point
        aSM - Station model shape
        g - Graphics2D
        size - Size
        cut - Cut
      • drawGraphic

        public static void drawGraphic​(PointF[] points,
                                       Graphic aGraphic,
                                       Graphics2D g,
                                       boolean isEditingVertices)
        Draw graphic
        参数:
        points - The points
        aGraphic - The graphic
        g - Graphics2D
        isEditingVertices - Is editing vertices
      • drawPolyline

        public static void drawPolyline​(List<PointF> points,
                                        Graphics2D g)
        Draw polyline
        参数:
        points - Points list
        g - Graphics2D
      • drawPolyline

        public static void drawPolyline​(PointF[] points,
                                        Graphics2D g)
        Draw polyline
        参数:
        points - The points array
        g - Graphics2D
      • drawPolyline

        public static void drawPolyline​(PointD[] points,
                                        Graphics2D g)
        Draw polyline
        参数:
        points - The points array
        g - Graphics2D
      • drawPolyline

        public static void drawPolyline​(PointF[] points,
                                        Graphics2D g,
                                        List<Integer> mvIdx)
        Draw polyline
        参数:
        points - The points array
        g - Graphics2D
        mvIdx - Missing value index list
      • fillPolygon

        public static void fillPolygon​(PointF[] points,
                                       Graphics2D g,
                                       PolygonBreak aPGB)
        Fill polygon
        参数:
        points - The points array
        g - Graphics2D
        aPGB - Polygon break
      • fillPolygon

        public static void fillPolygon​(PointD[] points,
                                       Graphics2D g,
                                       PolygonBreak aPGB)
        Fill polygon
        参数:
        points - The points array
        g - Graphics2D
        aPGB - Polygon break
      • drawPolygonShape

        public static void drawPolygonShape​(PolygonShape pgs,
                                            PolygonBreak pgb,
                                            Graphics2D g)
        Draw polygon shape with screen coordinates
        参数:
        pgs - Polygon shape
        pgb - Polygon break
        g - Graphics2D
      • drawPolygon

        public static void drawPolygon​(Polygon aPG,
                                       PolygonBreak aPGB,
                                       Graphics2D g)
        Draw polygon with screen coordinate
        参数:
        aPG - Polygon shape
        aPGB - Polygon break
        g - Graphics2D
      • drawPolygon

        public static void drawPolygon​(PointF[] points,
                                       PolygonBreak aPGB,
                                       Graphics2D g)
        Draw polygon
        参数:
        points - The points
        aPGB - The polygon break
        g - Graphics2D
      • drawPolygon

        public static void drawPolygon​(PointD[] points,
                                       PolygonBreak aPGB,
                                       Graphics2D g)
        Draw polygon
        参数:
        points - The points
        aPGB - The polygon break
        g - Graphics2D
      • drawPolygon

        public static void drawPolygon​(PointF[] points,
                                       Color aColor,
                                       Color outlineColor,
                                       boolean drawFill,
                                       boolean drawOutline,
                                       Graphics2D g)
        Draw polygon
        参数:
        points - The points
        aColor - Fill oclor
        outlineColor - Outline color
        drawFill -
        drawOutline -
        g -
      • drawPolygon

        public static void drawPolygon​(PointD[] points,
                                       Color aColor,
                                       Color outlineColor,
                                       boolean drawFill,
                                       boolean drawOutline,
                                       Graphics2D g)
        Draw polygon
        参数:
        points - The points
        aColor - Fill oclor
        outlineColor - Outline color
        drawFill -
        drawOutline -
        g -
      • getHatchImage

        public static BufferedImage getHatchImage​(HatchStyle style,
                                                  int size,
                                                  Color stripeColor,
                                                  Color backColor,
                                                  float lineWidth)
        Get hatch style image
        参数:
        style - Hatch style
        size -
        stripeColor - Stripe color
        backColor - Background color
        lineWidth - 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 points
        alb - The arrow line break
        g - Graphics2D
      • drawStreamline

        public static void drawStreamline​(PointF[] points,
                                          StreamlineBreak alb,
                                          Graphics2D g)
        Draw streamline
        参数:
        points - The points
        alb - The streamline break
        g - Graphics2D
      • drawStreamline

        public static void drawStreamline​(PointF[] points,
                                          ColorBreakCollection cbc,
                                          Graphics2D g)
        Draw streamline
        参数:
        points - The points
        cbc - The streamline breaks
        g - Graphics2D
      • drawPolyline

        public static void drawPolyline​(PointF[] points,
                                        PolylineBreak aPLB,
                                        Graphics2D g)
        Draw polyline
        参数:
        points - The points
        aPLB - The polyline break
        g - Graphics2D
      • drawPolyline

        public static void drawPolyline​(PointF[] points,
                                        ColorBreakCollection pbc,
                                        Graphics2D g)
        Draw polyline
        参数:
        points - The points
        pbc - The polyline break collection
        g - Graphics2D
      • drawPolyline

        public static void drawPolyline​(PointF[] points,
                                        PolylineBreak aPLB,
                                        Graphics2D g,
                                        List<Integer> mvIdx)
        Draw polyline
        参数:
        points - The points
        aPLB - The polyline break
        g - Graphics2D
        mvIdx - Missing value index list
      • drawPolylineSymbol

        public static void drawPolylineSymbol​(PointF aP,
                                              float width,
                                              float height,
                                              PolylineBreak aPLB,
                                              Graphics2D g)
        Draw polyline symbol
        参数:
        aP - The point
        width - The width
        height - The height
        aPLB - The polyline break
        g - Graphics2D
      • drawPolylineSymbol_S

        public static void drawPolylineSymbol_S​(PointF aP,
                                                float width,
                                                float height,
                                                PolylineBreak aPLB,
                                                Graphics2D g)
        Draw polyline symbol
        参数:
        aP - The point
        width - The width
        height - The height
        aPLB - The polyline break
        g - Graphics2D
      • drawPolygonSymbol

        public static void drawPolygonSymbol​(double x,
                                             double y,
                                             double width,
                                             double height,
                                             PolygonBreak aPGB,
                                             Graphics2D g)
        Draw polygon symbol
        参数:
        x - X
        y - Y
        width - The width
        height - The height
        aPGB - The polygon break
        g - Graphics2D
      • drawPolygonSymbol

        public static void drawPolygonSymbol​(PointF aP,
                                             float width,
                                             float height,
                                             PolygonBreak aPGB,
                                             Graphics2D g)
        Draw polygon symbol
        参数:
        aP - The center point
        width - The width
        height - The height
        aPGB - The polygon break
        g - 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 - X
        y - Y
        aColor - Fill color
        outlineColor - Outline color
        width - Width
        height - Height
        drawFill - If draw fill
        drawOutline - If draw outline
        g - 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 point
        aColor - Fill color
        outlineColor - Outline color
        width - Width
        height - Height
        drawFill - If draw fill
        drawOutline - If draw outline
        g - Grahics2D
      • drawRectangle

        public static void drawRectangle​(PointF aPoint,
                                         float width,
                                         float height,
                                         PolygonBreak aPGB,
                                         Graphics2D g)
        Draw rectangle
        参数:
        aPoint - Start point
        width - Width
        height - Height
        aPGB - Polygon break
        g - 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 point
        width - Width
        height - Height
        startAngle - Start angle
        sweepAngle - Sweep angle
        aPGB - Polygon break
        g - Graphics2D
        type - 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 point
        width - Width
        height - Height
        startAngle - Start angle
        sweepAngle - Sweep angle
        aPGB - Polygon break
        g - 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 point
        width - Width
        height - Height
        startAngle - Start angle
        sweepAngle - Sweep angle
        aPGB - Polygon break
        wedgeWidth - Wedge width
        g - Graphics2D
      • drawCurveLine

        public static void drawCurveLine​(PointF[] points,
                                         PolylineBreak aPLB,
                                         Graphics2D g)
        Draw curve line
        参数:
        points - The points
        aPLB - The polyline break
        g - Graphics2D
      • drawCurveLine

        public static void drawCurveLine​(List<PointF> points,
                                         Graphics2D g)
        Draw curve line
        参数:
        points - The points list
        g - Graphics2D
      • drawCurveLine

        public static void drawCurveLine​(PointF[] points,
                                         Graphics2D g)
        Draw curve line
        参数:
        points - The points
        g - Graphics2D
      • drawCurvePolygon

        public static void drawCurvePolygon​(PointF[] points,
                                            PolygonBreak aPGB,
                                            Graphics2D g)
        Draw curve polygon
        参数:
        points - The points
        aPGB - Polygon break
        g - Graphics2D
      • drawCircle

        public static void drawCircle​(PointF[] points,
                                      PolygonBreak aPGB,
                                      Graphics2D g)
        Draw circle
        参数:
        points - The points
        aPGB - The polygon break
        g - Graphics2D
      • drawEllipse

        public static void drawEllipse​(PointF[] points,
                                       float angle,
                                       PolygonBreak aPGB,
                                       Graphics2D g)
        Draw ellipse
        参数:
        points - The points
        angle - The angle
        aPGB - The polygon break
        g - Graphics2D
      • drawEllipse

        public static void drawEllipse​(PointF[] points,
                                       PolygonBreak aPGB,
                                       Graphics2D g)
        Draw ellipse
        参数:
        points - The points
        aPGB - The polygon break
        g - Graphics2D
      • drawArc

        public static void drawArc​(PointF[] points,
                                   float angle,
                                   float startAngle,
                                   float sweepAngle,
                                   PolygonBreak aPGB,
                                   Graphics2D g)
        Draw Arc
        参数:
        points - The points
        angle - The angle
        aPGB - The polygon break
        g - Graphics2D
      • drawArc

        public static void drawArc​(PointF[] points,
                                   float angle,
                                   float startAngle,
                                   float sweepAngle,
                                   PolygonBreak aPGB,
                                   Graphics2D g,
                                   int type)
        Draw Arc
        参数:
        points - The points
        angle - The angle
        startAngle - Arc start angle
        sweepAngle - Arc sweep angle
        aPGB - The polygon break
        g - Graphics2D
        type - Closure type
      • drawArc

        public static void drawArc​(PointF[] points,
                                   ArcShape arcShape,
                                   PolygonBreak legend,
                                   Graphics2D g)
        Draw Arc
        参数:
        points - The points
        angle - The angle
        startAngle - Arc start angle
        sweepAngle - Arc sweep angle
        aPGB - The polygon break
        g - Graphics2D
        type - Closure type
      • drawSelectedVertices

        public static void drawSelectedVertices​(Graphics2D g,
                                                PointF[] points)
        Draw selected vertices rectangles
        参数:
        g - Graphics2D
        points - The points
      • drawSelectedVertices

        public static void drawSelectedVertices​(Graphics2D g,
                                                PointF[] points,
                                                float size,
                                                Color outlineColor,
                                                Color fillColor)
        Draw selected vertices rectangles
        参数:
        g - Graphics2D
        points - The points
        size - The size
        outlineColor - Outline coloe
        fillColor - Fill color
      • drawSelectedVertice

        public static void drawSelectedVertice​(Graphics2D g,
                                               PointF point,
                                               float size,
                                               Color outlineColor,
                                               Color fillColor)
        Draw selected vertice rectangles
        参数:
        g - Graphics2D
        point - The point
        size - The size
        outlineColor - Outline coloe
        fillColor - Fill color
      • drawSelectedCorners

        public static void drawSelectedCorners​(Graphics2D g,
                                               Rectangle gRect)
        Draw selected four corner rectangles
        参数:
        g - Graphics2D
        gRect - The rectangle
      • drawSelectedEdgeCenters

        public static void drawSelectedEdgeCenters​(Graphics2D g,
                                                   Rectangle gRect)
        Draw selected four bouder edge center rectangles
        参数:
        g - Graphics2D
        gRect - The rectangle
      • drawChartPoint

        public static void drawChartPoint​(PointF aPoint,
                                          ChartBreak aCB,
                                          Graphics2D g)
        Draw chart point
        参数:
        aPoint - Screen point
        aCB - Chart break
        g - Graphics2D
      • drawBarChartSymbol

        public static void drawBarChartSymbol​(PointF aPoint,
                                              ChartBreak aCB,
                                              Graphics2D g)
        Draw bar chart symbol
        参数:
        aPoint - Start point
        aCB - Chart break
        g - Graphics2D
      • drawBarChartSymbol

        public static void drawBarChartSymbol​(PointF aPoint,
                                              ChartBreak aCB,
                                              Graphics2D g,
                                              boolean drawValue)
        Draw bar chart symbol
        参数:
        aPoint - Start point
        aCB - Chart break
        g - Graphics2D
        drawValue - If draw value
      • drawBarChartSymbol

        public static void drawBarChartSymbol​(PointF sPoint,
                                              ChartBreak aCB,
                                              Graphics2D g,
                                              boolean drawValue,
                                              Font font)
        Draw bar chart symbol
        参数:
        sPoint - Start point
        aCB - Chart break
        g - Graphics2D
        drawValue - If draw value
        font - 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 point
        width - Width
        height - Height
        g - Graphics2D
        aPGB - Polygon beak
        isView3D - Is view as 3D
        thickness - 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 point
        width - Width
        height - Height
        g - Graphics2D
        aPGB - Polygon beak
        isView3D - Is view as 3D
        thickness - 3D thickness
      • drawPieChartSymbol

        public static void drawPieChartSymbol​(PointF aPoint,
                                              ChartBreak aCB,
                                              Graphics2D g,
                                              List<String> labels)
        Draw pie chart symbol
        参数:
        aPoint - Start point
        aCB - Chart break
        g - Graphics2D
        labels - Labels
      • getPieLabelPoint

        public static PointF getPieLabelPoint​(PointF sPoint,
                                              float r,
                                              float angle)
        Get pie wedge label point
        参数:
        sPoint - Center point
        r - Radius
        angle - Angle
        返回:
        Label point