Class LscElement

    • Constructor Detail

      • LscElement

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

      • getTemperature

        public java.lang.String getTemperature()
      • isHot

        public boolean isHot()
      • getWidth

        public static int getWidth​(java.lang.String string,
                                   java.awt.Font font,
                                   java.awt.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 java.awt.Color lighter​(java.awt.Color color,
                                             float white)
      • getWidth

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

        public java.lang.String getLabelValue()
      • getColor

        public java.awt.Color getColor​(Element element)
      • getAnchors

        public java.util.ArrayList<InstanceLine> getAnchors()
      • getLabel

        public Element getLabel()
        Returns:
        the label element.