Class RatingTableCellRenderer

    • Constructor Detail

      • RatingTableCellRenderer

        public RatingTableCellRenderer​(Property<Integer> ratingProperty,
                                       Property<Boolean> computedProperty)
        Parameters:
        ratingProperty - rating property
        computedProperty - indicates whether the rating property was computed
    • Method Detail

      • setForeground

        public void setForeground​(Color c)
        Overrides JComponent.setForeground to assign the unselected-foreground color to the specified color.
        Overrides:
        setForeground in class JComponent
        Parameters:
        c - set the foreground color to this value
      • setBackground

        public void setBackground​(Color c)
        Overrides JComponent.setBackground to assign the unselected-background color to the specified color.
        Overrides:
        setBackground in class JComponent
        Parameters:
        c - set the background color to this value
      • updateUI

        public void updateUI()
        Notification from the UIManager that the look and feel [L&F] has changed. Replaces the current UI object with the latest version from the UIManager.
        Overrides:
        updateUI in class Rating
        See Also:
        JComponent.updateUI()
      • getTableCellRendererComponent

        public Component getTableCellRendererComponent​(JTable table,
                                                       Object value,
                                                       boolean isSelected,
                                                       boolean hasFocus,
                                                       int row,
                                                       int column)
        Returns the default table cell renderer.
        Specified by:
        getTableCellRendererComponent in interface TableCellRenderer
        Parameters:
        table - the JTable
        value - the value to assign to the cell at [row, column]
        isSelected - true if cell is selected
        hasFocus - true if cell has focus
        row - the row of the cell to render
        column - the column of the cell to render
        Returns:
        the default table cell renderer
      • paintIssueHighlight

        protected void paintIssueHighlight​(Graphics g)
      • getIssueHighlightBounds

        protected Rectangle getIssueHighlightBounds​(Graphics g)
      • getIssueHighlightWidth

        protected int getIssueHighlightWidth​(Graphics g)
      • repaint

        public void repaint​(long tm,
                            int x,
                            int y,
                            int width,
                            int height)
        Overridden for performance reasons. See the Implementation Note for more information.
        Overrides:
        repaint in class JComponent