Package hec.gfx2d

Class G2dMarkerProperties

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

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

    • _name

      public String _name
    • markerValue

      public double markerValue
    • markerLabel

      public String markerLabel
    • drawOnAxis

      public int drawOnAxis
    • lineColor

      public Color lineColor
    • fillColor

      public Color fillColor
    • drawLine

      public boolean drawLine
    • drawLabel

      public boolean drawLabel
    • fillType

      public int fillType
    • fillPattern

      public int fillPattern
    • fillPaint

      public Paint fillPaint
    • lineWidth

      public float lineWidth
    • lineStylePattern

      public float[] lineStylePattern
    • labelPosition

      public int labelPosition
    • labelAlign

      public int labelAlign
    • editableProperties

      public boolean editableProperties
    • labelColor

      public Color labelColor
    • labelFont

      public Font labelFont
    • MARKER_BEGIN

      public static final String MARKER_BEGIN
      See Also:
    • MARKER_END

      public static final String MARKER_END
      See Also:
  • Constructor Details

    • G2dMarkerProperties

      public G2dMarkerProperties()
    • G2dMarkerProperties

      public G2dMarkerProperties(G2dMarkerProperties copyFrom)
    • G2dMarkerProperties

      protected G2dMarkerProperties(String cls)
  • Method Details

    • init

      public static void init()
    • equals

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

      public void setName(String name)
    • setModified

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

      public void setMarkerLabel(String s)
    • setLineColor

      public void setLineColor(Color c)
    • setFillColor

      public void setFillColor(Color c)
    • setDrawLine

      public void setDrawLine(boolean b)
    • setDrawLabel

      public void setDrawLabel(boolean b)
    • setFillType

      public void setFillType(int i)
    • setFillPattern

      public void setFillPattern(int i)
    • setFillPaint

      public void setFillPaint(Paint p)
    • setLineWidth

      public void setLineWidth(float f)
    • setLinePattern

      public void setLinePattern(float[] f)
    • 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)
    • getMarkerValue

      public double getMarkerValue()
    • getMarkerLabel

      public String getMarkerLabel()
    • getDrawOnAxis

      public int getDrawOnAxis()
    • getLineColor

      public Color getLineColor()
      Specified by:
      getLineColor in interface LineProperties
      Returns:
    • getFillColor

      public Color getFillColor()
      Specified by:
      getFillColor in interface LineProperties
      Returns:
    • getDrawLine

      public boolean getDrawLine()
    • getDrawLabel

      public boolean getDrawLabel()
    • getFillType

      public int getFillType()
      Specified by:
      getFillType in interface LineProperties
      Returns:
    • getFillPattern

      public int getFillPattern()
      Specified by:
      getFillPattern in interface LineProperties
      Returns:
    • getFillPaint

      public Paint getFillPaint()
    • getLineWidth

      public float getLineWidth()
      Specified by:
      getLineWidth in interface LineProperties
      Returns:
    • getLinePattern

      public float[] getLinePattern()
      Specified by:
      getLinePattern in interface LineProperties
      Returns:
    • 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()
    • getName

      public String getName()
    • getFileName

      public static String getFileName()
    • setDrawOnAxis

      public void setDrawOnAxis(int propValue)
    • setMarkerValue

      public void setMarkerValue(double propValue)
    • drawLine

      public boolean drawLine()
      Specified by:
      drawLine in interface LineProperties
      Returns:
    • 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)
      Specified by:
      writeProperties in interface LineProperties
    • writeDefaults

      public static boolean writeDefaults()
    • writerDefaults

      public static boolean writerDefaults(BufferedWriter writer)
    • writeDefaults

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

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

      public G2dMarkerProperties 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(G2dMarkerProperties defaultProps)
    • setDefaults

      protected static void setDefaults(G2dMarkerProperties defaultProps, String cls)
    • drawPoints

      public boolean drawPoints()
      Specified by:
      drawPoints in interface LineProperties
      Returns:
    • getSymbolType

      public int getSymbolType()
      Specified by:
      getSymbolType in interface LineProperties
      Returns:
    • getPointFillColor

      public Color getPointFillColor()
      Specified by:
      getPointFillColor in interface LineProperties
      Returns:
    • getPointLineColor

      public Color getPointLineColor()
      Specified by:
      getPointLineColor in interface LineProperties
      Returns:
    • getSymbolSize

      public float getSymbolSize()
      Specified by:
      getSymbolSize in interface LineProperties
      Returns:
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException