Class LscElement

    • Constructor Detail

      • LscElement

        public LscElement​(Element prototype)
        Parameters:
        prototype -
    • Method Detail

      • getTemperature

        public String getTemperature()
      • isHot

        public boolean isHot()
      • getWidth

        public static int getWidth​(String string,
                                   Font font,
                                   Graphics2D g)
        returns the width of the given string, written with the given font
        Parameters:
        string - text to be drawn
        font - the font to be used for drawing
        g - graphical context
        Returns:
        int the width of the text
      • lighter

        public static Color lighter​(Color color,
                                    float white)
      • getWidth

        public int getWidth​(Graphics2D g)
        The width of the drawn element label.
        Parameters:
        g - graphical context.
        Returns:
        width of the label.
      • getLabelValue

        public String getLabelValue()
      • getLabel

        public Element getLabel()
        Returns:
        the label element.