Class GraphicsSetLineType

All Implemented Interfaces:
Streamable, StructuredData

public class GraphicsSetLineType extends AbstractGraphicsDrawingOrder
Sets the value of the current line type attribute when stroking GOCA shapes (structured fields)
  • Field Details

    • DEFAULT

      public static final byte DEFAULT
      the default line type
      See Also:
    • DOTTED

      public static final byte DOTTED
      the default line type
      See Also:
    • SHORT_DASHED

      public static final byte SHORT_DASHED
      short dashed line type
      See Also:
    • DASH_DOT

      public static final byte DASH_DOT
      dashed dotted line type
      See Also:
    • DOUBLE_DOTTED

      public static final byte DOUBLE_DOTTED
      double dotted line type
      See Also:
    • LONG_DASHED

      public static final byte LONG_DASHED
      long dashed line type
      See Also:
    • DASH_DOUBLE_DOTTED

      public static final byte DASH_DOUBLE_DOTTED
      dash double dotted line type
      See Also:
    • SOLID

      public static final byte SOLID
      solid line type
      See Also:
    • INVISIBLE

      public static final byte INVISIBLE
      invisible line type
      See Also:
    • type

      private byte type
      line type
    • TYPES

      private static final String[] TYPES
  • Constructor Details

    • GraphicsSetLineType

      public GraphicsSetLineType(byte type)
      Main constructor
      Parameters:
      type - line type
  • Method Details

    • getDataLength

      public int getDataLength()
      Returns the data length of this structured field
      Returns:
      the data length of this structured field
    • writeToStream

      public void writeToStream(OutputStream os) throws IOException
      DataStream objects must implement the writeToStream() method to write its data to the given OutputStream
      Parameters:
      os - the outputsteam stream
      Throws:
      IOException - an I/O exception of some sort has occurred.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getOrderCode

      byte getOrderCode()
      Returns the order code of this structured field
      Specified by:
      getOrderCode in class AbstractGraphicsDrawingOrder
      Returns:
      the order code of this structured field