Class MetaPen


  • public class MetaPen
    extends MetaObject
    A Pen object of the WMF format. Holds the color, style and width information of the pen.
    • Constructor Detail

      • MetaPen

        public MetaPen()
        Creates a MetaPen object.
    • Method Detail

      • init

        public void init​(InputMeta in)
                  throws java.io.IOException
        Initializes a MetaPen object.
        Parameters:
        in - the InputMeta object that holds the inputstream of the WMF image
        Throws:
        java.io.IOException - an IOException
      • getStyle

        public int getStyle()
        Get the style of the MetaPen.
        Returns:
        style of the pen
      • getPenWidth

        public int getPenWidth()
        Get the width of the MetaPen.
        Returns:
        width of the pen
      • getColor

        public Color getColor()
        Get the color of the MetaPen.
        Returns:
        color of the pen