Package hec.gfx2d

Class LegendPanelProp

java.lang.Object
hec.gfx2d.PlotProperties
hec.gfx2d.LegendPanelProp
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable

public class LegendPanelProp extends PlotProperties implements AsciiSerializable
Drawing properties for gfx2d labels.
See Also:
  • Field Details

    • hasLeftText

      public boolean hasLeftText
      flag indicating panel has left text
    • leftTextProp

      public G2dLabelDrawProp leftTextProp
      drawing properties for left text
    • hasRightText

      public boolean hasRightText
      flag indicating panel has right text
    • rightTextProp

      public G2dLabelDrawProp rightTextProp
      drawing properties for right text
    • legendItemPropVec

      public Vector legendItemPropVec
      drawing properties for legend item text
    • titleTextProp

      public G2dLabelDrawProp titleTextProp
    • hasTitleText

      public boolean hasTitleText
    • layoutPosition

      public int layoutPosition
    • legendPosition

      public int legendPosition
    • legendVisible

      public boolean legendVisible
  • Constructor Details

    • LegendPanelProp

      public LegendPanelProp()
      Default Constructor
    • LegendPanelProp

      public LegendPanelProp(LegendPanelProp dp)
      Copy Constructor
      Parameters:
      dp - the properties to copy from
  • Method Details

    • init

      protected static void init(String cls)
      Initializes the defaults values for the class.
      Parameters:
      cls -
    • getClone

      public Object getClone()
    • writeDefaults

      public static boolean writeDefaults()
      Writes the defaults to a defaults file
      Returns:
      true if the write was successful
    • writeDefaults

      public static boolean writeDefaults(BufferedWriter writer)
    • getFileName

      public static String getFileName()
      Returns the name of the file used for storing the default properties
      Returns:
      the file name
    • writeDefaults

      protected static boolean writeDefaults(String cls, BufferedWriter writer)
    • loadDefaults

      public static boolean loadDefaults(BufferedReader in)
    • loadDefaults

      protected static boolean loadDefaults(BufferedReader in, String endTag, String cls)
    • parseDefaultLine

      protected static void parseDefaultLine(String type, String param, String cls)
    • set

      public void set(LegendPanelProp dp)
    • writeProperties

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

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

      public static void setDefaults(LegendPanelProp defaultProps)
    • setDefaults

      protected static void setDefaults(LegendPanelProp defaultProps, String cls)
    • getDefaultLegendLabelProperties

      public static G2dLabelDrawProp getDefaultLegendLabelProperties()
    • setLegenedVisible

      public void setLegenedVisible(boolean b)
    • 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
    • getLegendItemProperties

      public List getLegendItemProperties()