Package hec.gfx2d

Class G2dMarkerPointProperties

java.lang.Object
hec.gfx2d.PlotProperties
hec.gfx2d.G2dMarkerPointProperties
All Implemented Interfaces:
LineLabelProperties, AsciiSerializable, FieldAccessor, Serializable, Cloneable

public class G2dMarkerPointProperties extends PlotProperties implements AsciiSerializable, LineLabelProperties, Cloneable
See Also:
  • Field Details

    • markerXValue

      public double markerXValue
    • markerYValue

      public double markerYValue
    • markerLabel

      public String markerLabel
    • drawOnAxis

      public int drawOnAxis
    • pointColor

      public Color pointColor
    • fillColor

      public Color fillColor
    • drawPoint

      public boolean drawPoint
    • drawLabel

      public boolean drawLabel
    • pointSize

      public int pointSize
    • labelPosition

      public int labelPosition
    • labelAlign

      public int labelAlign
    • editableProperties

      public boolean editableProperties
    • labelColor

      public Color labelColor
    • labelFont

      public Font labelFont
    • pointStyle

      public int pointStyle
    • MARKER_BEGIN

      public static final String MARKER_BEGIN
      See Also:
    • MARKER_END

      public static final String MARKER_END
      See Also:
  • Constructor Details

    • G2dMarkerPointProperties

      public G2dMarkerPointProperties()
    • G2dMarkerPointProperties

      protected G2dMarkerPointProperties(String cls)
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • setModified

      public void setModified(boolean modified)
      Specified by:
      setModified in interface LineLabelProperties
    • setMarkerLabel

      public void setMarkerLabel(String s)
    • setPointColor

      public void setPointColor(Color c)
    • setFillColor

      public void setFillColor(Color c)
    • setDrawPoint

      public void setDrawPoint(boolean b)
    • setDrawLabel

      public void setDrawLabel(boolean b)
    • setPointSize

      public void setPointSize(int i)
    • setLabelPosition

      public void setLabelPosition(int i)
      Specified by:
      setLabelPosition in interface LineLabelProperties
    • setLabelAlign

      public void setLabelAlign(int i)
    • setEditableProperties

      public void setEditableProperties(boolean b)
    • setLabelColor

      public void setLabelColor(Color c)
    • setLabelFont

      public void setLabelFont(Font f)
    • getMarkerXValue

      public double getMarkerXValue()
    • getMarkerYValue

      public double getMarkerYValue()
    • getMarkerLabel

      public String getMarkerLabel()
    • getDrawOnAxis

      public int getDrawOnAxis()
    • getPointColor

      public Color getPointColor()
    • getFillColor

      public Color getFillColor()
    • getDrawPoint

      public boolean getDrawPoint()
    • getDrawLabel

      public boolean getDrawLabel()
    • getPointSize

      public int getPointSize()
    • getLabelPosition

      public int getLabelPosition()
      Specified by:
      getLabelPosition in interface LineLabelProperties
    • getLabelAlign

      public int getLabelAlign()
    • getEditableProperties

      public boolean getEditableProperties()
    • getLabelColor

      public Color getLabelColor()
    • getLabelFont

      public Font getLabelFont()
    • getFileName

      public static String getFileName()
    • getPointStyle

      public int getPointStyle()
    • setPointStyle

      public void setPointStyle(int sType)
    • setDrawOnAxis

      public void setDrawOnAxis(int propValue)
    • setMarkerXValue

      public void setMarkerXValue(double propValue)
    • setMarkerYValue

      public void setMarkerYValue(double yValue)
    • drawLine

      public boolean drawLine()
    • setHasLabel

      public void setHasLabel(boolean b)
      Specified by:
      setHasLabel in interface LineLabelProperties
    • setLabelAlignment

      public void setLabelAlignment(int align)
      Specified by:
      setLabelAlignment in interface LineLabelProperties
    • setLabel

      public void setLabel(String lbl)
      Specified by:
      setLabel in interface LineLabelProperties
    • getLabelAlignment

      public int getLabelAlignment()
      Specified by:
      getLabelAlignment in interface LineLabelProperties
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface LineLabelProperties
    • hasLabel

      public boolean hasLabel()
      Specified by:
      hasLabel in interface LineLabelProperties
    • font2string

      public static String font2string(Font font)
    • string2font

      public static Font string2font(String str)
    • writeProperties

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

      public static boolean writeDefaults()
    • writeDefaults

      protected static boolean writeDefaults(String cls)
    • readProperties

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

      public Object clone()
      Overrides:
      clone in class Object
    • 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
    • loadDefaults

      public static boolean loadDefaults(BufferedReader in)
    • setDefaults

      public static void setDefaults(G2dMarkerPointProperties defaultProps)
    • setDefaults

      protected static void setDefaults(G2dMarkerPointProperties defaultProps, String cls)