Class Appearance


  • public final class Appearance
    extends java.lang.Object
    Basic class for appearance parameters.
    Author:
    Pierre Lando
    • Field Detail

      • DEFAULT_LINE_WIDTH

        public static final float DEFAULT_LINE_WIDTH
        The default line width.
        See Also:
        Constant Field Values
      • DEFAULT_LINE_PATTERN

        public static final short DEFAULT_LINE_PATTERN
        The default line pattern (full line). The 16 bits of the pattern represents how lines are drawn.
        See Also:
        Constant Field Values
      • DEFAULT_LINE_COLOR

        public static final Color DEFAULT_LINE_COLOR
        The default line color.
      • DEFAULT_FILL_COLOR

        public static final Color DEFAULT_FILL_COLOR
        The default fill color.
    • Constructor Detail

      • Appearance

        public Appearance()
        Default constructor.
    • Method Detail

      • getDefault

        public static Appearance getDefault()
        Return the default appearance.
        Returns:
        the default appearance.
      • getTexture

        public Texture getTexture()
        Texture getter.
        Returns:
        the current texture if any.
      • setTexture

        public void setTexture​(Texture texture)
        Texture setter.
        Parameters:
        texture - the new texture.
      • getLineWidth

        public float getLineWidth()
        Return the line width.
        Returns:
        the line width.
      • setLineWidth

        public void setLineWidth​(float lineWidth)
        Set the line width.
        Parameters:
        lineWidth - the new line width.
      • getLinePattern

        public short getLinePattern()
        Return the line pattern.
        Returns:
        the line pattern.
      • setLinePattern

        public void setLinePattern​(short linePattern)
        Set the line pattern.
        Parameters:
        linePattern - the new line pattern.
      • getLineColor

        public Color getLineColor()
        Return the line color.
        Returns:
        the line color.
      • setLineColor

        public void setLineColor​(Color lineColor)
        Set the line color.
        Parameters:
        lineColor - the new lne color.
      • getFillColor

        public Color getFillColor()
        Return the fill color.
        Returns:
        the fill color.
      • setFillColor

        public void setFillColor​(Color fillColor)
        Set the fill color.
        Parameters:
        fillColor - the new fill color.