Class ActivityBarRenderer<A extends Activity>

    • Constructor Detail

      • ActivityBarRenderer

        public ActivityBarRenderer​(GraphicsBase<?> graphics,
                                   String name)
    • Method Detail

      • isTextVisible

        protected boolean isTextVisible​(String text,
                                        ActivityBarRenderer.TextPosition position,
                                        double availableWidth)
        Determines if the given text for the given position will be drawn or not depending on the available width. The default strategy is to not allow the text to show if the available width is less than 10 pixels, the text is null, or the text length multiplied by three is larger than the available width.
        Parameters:
        text - the text to draw
        position - the text position
        availableWidth - the availble width of the entire activity
        Returns:
        true if the text can be drawn
        Since:
        1.5
      • getTextFill

        protected Paint getTextFill​(boolean selected,
                                    boolean hover,
                                    boolean highlighted,
                                    boolean pressed)
      • getBarHeight

        public final double getBarHeight()
      • setBarHeight

        public final void setBarHeight​(double height)
      • setTextGap

        public final void setTextGap​(double gap)
      • getTextGap

        public final double getTextGap()
      • setTextFill

        public final void setTextFill​(Paint fill)
      • getTextFill

        public final Paint getTextFill()
      • setTextFillHover

        public final void setTextFillHover​(Paint fill)
      • getTextFillHover

        public final Paint getTextFillHover()
      • setTextFillHighlight

        public final void setTextFillHighlight​(Paint fill)
      • getTextFillHighlight

        public final Paint getTextFillHighlight()
      • setTextFillPressed

        public final void setTextFillPressed​(Paint fill)
      • getTextFillPressed

        public final Paint getTextFillPressed()
      • setTextFillSelected

        public final void setTextFillSelected​(Paint fill)
      • getTextFillSelected

        public final Paint getTextFillSelected()
      • setFont

        public final void setFont​(Font font)
      • getFont

        public final Font getFont()
      • setGlossy

        public final void setGlossy​(boolean glossy)
      • isGlossy

        public final boolean isGlossy()
      • setAutoFixText

        public final void setAutoFixText​(boolean auto)
      • isAutoFixText

        public final boolean isAutoFixText()