Class BuildQueuePanel.DefaultBuildQueueCellRenderer

  • All Implemented Interfaces:
    javax.swing.ListCellRenderer<BuildableType>
    Enclosing class:
    BuildQueuePanel

    private class BuildQueuePanel.DefaultBuildQueueCellRenderer
    extends java.lang.Object
    implements javax.swing.ListCellRenderer<BuildableType>
    The cell renderer to use for the build queue.
    • Field Detail

      • buildingDimension

        private final java.awt.Dimension buildingDimension
    • Constructor Detail

      • DefaultBuildQueueCellRenderer

        public DefaultBuildQueueCellRenderer()
    • Method Detail

      • getListCellRendererComponent

        public java.awt.Component getListCellRendererComponent​(javax.swing.JList<? extends BuildableType> list,
                                                               BuildableType value,
                                                               int index,
                                                               boolean isSelected,
                                                               boolean cellHasFocus)
        Specified by:
        getListCellRendererComponent in interface javax.swing.ListCellRenderer<BuildableType>