Package hec.gfx2d

Class ViewportToolbarProp

java.lang.Object
hec.gfx2d.ViewportToolbarProp
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable

public class ViewportToolbarProp extends Object implements Cloneable, AsciiSerializable
Drawing properties for ViewportToolbar.
See Also:
  • Field Details

    • defaultButton

      public int defaultButton
      default button selection
  • Constructor Details

    • ViewportToolbarProp

      public ViewportToolbarProp()
      Default Constructor
    • ViewportToolbarProp

      public ViewportToolbarProp(ViewportToolbarProp dp)
      Copy Constructor
  • Method Details

    • getClone

      public Object getClone()
    • set

      public void set(ViewportToolbarProp dp)
    • addButtonProp

      public void addButtonProp(ToolbarButtonProp p)
    • getButtonCount

      public int getButtonCount()
    • buttonElements

      public Enumeration buttonElements()
    • writeProperties

      public void writeProperties(BufferedWriter writer, String endTag)
    • readProperties

      public void readProperties(BufferedReader in, String endTag)
    • getFieldObject

      public Object getFieldObject(Field fld)
      Description copied from interface: FieldAccessor
      This method allows access to java.lang.reflect.Field objects within the implementing class.
      Specified by:
      getFieldObject in interface FieldAccessor
      Parameters:
      fld - The field to get.
      Returns:
      The data object that is stored in the given field
    • setFieldObject

      public boolean setFieldObject(Field fld, Object fobj)
      Description copied from interface: FieldAccessor
      This allows access to fields withing the implementing object to set there data.
      Specified by:
      setFieldObject in interface FieldAccessor
      Parameters:
      fld - The java field object representing the member field to be set
      fobj - The data to set in that field
      Returns:
      returns true if successful