Class GridElement

    • Constructor Detail

      • GridElement

        public GridElement​(int rows,
                           int cols)
        Grid Element Constructor Call setData to initialize content
        Parameters:
        rows - max rows
        cols - max cols
    • Method Detail

      • setData

        public void setData​(int row,
                            int col,
                            String stringData,
                            Font font,
                            Paint foreground)
        Create TextLayout from Data and calculate size. Called from ParameterElement and Location
        Parameters:
        row - row
        col - column
        stringData - info element
        font - font
        foreground - color for foreground
      • setGap

        public void setGap​(int rowGap,
                           int colGap)
        Set Rpw/Column gap
        Parameters:
        rowGap - row gap
        colGap - column gap
      • calculateSize

        protected boolean calculateSize()
        Layout and Calculate Image Size. Set p_width and p_height
        Specified by:
        calculateSize in class PrintElement
        Returns:
        true if calculated
      • paint

        public void paint​(Graphics2D g2D,
                          int pageNo,
                          Point2D pageStart,
                          Properties ctx,
                          boolean isView)
        Paint it
        Specified by:
        paint in class PrintElement
        Parameters:
        g2D - Graphics
        pageStart - top left Location of page
        pageNo - page number for multi page support (0 = header/footer) - ignored
        ctx - print context
        isView - true if online view (IDs are links)