Class PaintFrame


  • public class PaintFrame
    extends java.lang.Object
    • Constructor Detail

      • PaintFrame

        public PaintFrame()
        Create a frame with no header.
      • PaintFrame

        public PaintFrame​(java.lang.String title)
        Create a frame with a header.
        Parameters:
        title - the title for the frame header or null for no header
    • Method Detail

      • setTitle

        public FrameHeader setTitle​(java.lang.String title)
      • addLine

        public void addLine​(Seperator seperator)
      • addLine

        public void addLine​(java.lang.String name,
                            java.lang.Object value)
      • addLine

        public void addLine​(java.lang.String name,
                            java.util.function.Function<APIContext,​java.lang.Object> value)
      • addPart

        public void addPart​(FramePart line)
      • draw

        public java.awt.geom.Rectangle2D draw​(java.awt.Graphics2D g2d,
                                              double x,
                                              double y,
                                              APIContext ctx)
      • drawHeader

        protected double drawHeader​(java.awt.Graphics2D g2d,
                                    double x,
                                    double y,
                                    Dimension2D frameSize,
                                    APIContext ctx)
      • drawFrame

        protected void drawFrame​(java.awt.Graphics2D g2d,
                                 double x,
                                 double y,
                                 Dimension2D frameSize)
      • drawParts

        protected void drawParts​(java.awt.Graphics2D g2d,
                                 double x,
                                 double y,
                                 Dimension2D frameSize,
                                 APIContext ctx)
      • determineFrameBounds

        protected Dimension2D determineFrameBounds​(java.awt.Graphics2D g2d,
                                                   APIContext ctx)
      • getLastBounds

        public java.awt.geom.Rectangle2D getLastBounds()
      • setColumnValueSpacing

        public void setColumnValueSpacing​(int columnValueSpacing)
      • getColumnValueSpacing

        public int getColumnValueSpacing()
      • setFramePadding

        public void setFramePadding​(java.awt.Insets framePadding)
      • getFramePadding

        public java.awt.Insets getFramePadding()