Class AiShapeGlyphDataRecord

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, GlyphDataRecordSerializable, PropertyChangeListener, Serializable, Cloneable, Comparable, EventListener, Observer, Modifiable

public class AiShapeGlyphDataRecord extends GlyphDataRecord implements GlyphDataRecordSerializable, PropertyChangeListener
See Also:
  • Field Details

  • Constructor Details

    • AiShapeGlyphDataRecord

      public AiShapeGlyphDataRecord()
  • Method Details

    • getUseGradations

      public boolean getUseGradations()
    • setDrawAreas

      public void setDrawAreas(boolean draw)
    • getDrawAreas

      public boolean getDrawAreas()
    • setUseGradations

      public void setUseGradations(boolean b)
    • getNumGradations

      public int getNumGradations()
    • setNumGradations

      public void setNumGradations(int numGradations)
    • getAlpha

      public double getAlpha()
    • setAlpha

      public void setAlpha(double alpha)
    • setPolygonDrawType

      public void setPolygonDrawType(int drawType)
    • getPolygonDrawType

      public int getPolygonDrawType()
      Returns the type of symbol drawing, i.e. UNIQUE or SINGLE
    • setSymbolDrawType

      public void setSymbolDrawType(int drawType)
      Sets the drawing type as either UNIQUE or SINGLE symbol
    • getSymbolDrawType

      public int getSymbolDrawType()
      Returns the type of symbol drawing, i.e. UNIQUE or SINGLE
    • setSymbolIndex

      public void setSymbolIndex(int symbolIdx)
      Sets the index of the symbol to draw. This value is used in the RmaSymbol class to identify the type of symbol to use, i.e. SQUARE, CIRCLE, etc.
    • getSymbolIndex

      public int getSymbolIndex()
      Returns the index of the symbol to draw. This value is used in the RmaSymbol class to identify the type of symbol to use, i.e. SQUARE, CIRCLE, etc.
    • setLabelFont

      public void setLabelFont(Font font)
    • getLabelFont

      public Font getLabelFont()
    • getDefaultLineColor

      public Color getDefaultLineColor()
    • setDefaultLineColor

      public void setDefaultLineColor(Color c)
    • getDefaultColor

      public Color getDefaultColor()
    • setDefaultColor

      public void setDefaultColor(Color c)
    • getColorContourStart

      public Color getColorContourStart()
    • setColorContourStart

      public void setColorContourStart(Color c)
    • setColorContourSteps

      public void setColorContourSteps(int numSteps)
    • setColorContourEnd

      public void setColorContourEnd(Color c)
    • getColorContourEnd

      public Color getColorContourEnd()
    • setHighlightColor

      public void setHighlightColor(Color c)
    • getHighlightColor

      public Color getHighlightColor()
    • chooseQueryFields

      public boolean chooseQueryFields(JDialog parent, List availableFields)
    • getQueryFields

      public List getQueryFields()
    • setQueryFields

      public void setQueryFields(List v)
    • getFieldIndex

      public int getFieldIndex()
    • setFieldIndex

      public void setFieldIndex(int idx)
    • getDrawingAttribute

      public ShapeDrawingAttribute getDrawingAttribute(Object field)
    • buildColor

      public Color buildColor()
    • hasDrawingAttribute

      public boolean hasDrawingAttribute(Object field)
      Returns true if there is a drawing attribute for a given field.
    • setDrawingAttribute

      public void setDrawingAttribute(Object field, ShapeDrawingAttribute attr)
    • read0

      protected void read0(String type, String param, BufferedReader input) throws IOException
      Description copied from class: GlyphDataRecord
      The abstract read which the concrete subclass must define.
      Specified by:
      read0 in class GlyphDataRecord
      Throws:
      IOException
    • write0

      protected void write0(BufferedWriter output) throws IOException
      Description copied from class: GlyphDataRecord
      The abstract write which the concrete subclass must define.
      Specified by:
      write0 in class GlyphDataRecord
      Throws:
      IOException
    • useAsciiSerialization

      public boolean useAsciiSerialization()
      Overrides:
      useAsciiSerialization in class GlyphDataRecord
    • 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
      Overrides:
      getFieldObject in class GlyphDataRecord
      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
      Overrides:
      setFieldObject in class GlyphDataRecord
      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
    • getLabelRotation

      public double getLabelRotation()
    • setLabelRotation

      public void setLabelRotation(double roation)
      Sets the rotaion value. This value describes how much to rotate the label around a center point.
    • setLabelPosition

      public void setLabelPosition(int position)
      Sets the position of the label around a center point, such as NORTH, EAST, WEST, SOUTH, etc. These are position points on a compass.

    • getLabelPosition

      public int getLabelPosition()
    • setLabelFieldIndex

      public void setLabelFieldIndex(int index)
      Sets the index into the database columns for the data to use as a label. set a value of -1 to turn the labels off
    • getLabelFieldIndex

      public int getLabelFieldIndex()
    • setPointSize

      public void setPointSize(int size)
    • getPointSize

      public int getPointSize()
    • getBorderLineStyle

      public float[] getBorderLineStyle()
    • setBorderLineStyle

      public void setBorderLineStyle(float[] lineStyle)
    • getBorderWidth

      public int getBorderWidth()
    • setBorderWidth

      public void setBorderWidth(int width)
    • getBorderLineColor

      public Color getBorderLineColor()
    • setBorderLineColor

      public void setBorderLineColor(Color borderColor)
    • setDisplayBorder

      public void setDisplayBorder(boolean b)
    • isBorderDisplayed

      public boolean isBorderDisplayed()
    • setFillStyle

      public void setFillStyle(int fillStyle)
    • getFillStyle

      public int getFillStyle()
      Returns the style that is used to fill a polygon. Valid values are defined in RmaDrawConst. HS_SOLID, HS_HORIZONTAL, HS_VERTICAL, HS_BDIAGONAL, HS_FDIAGONAL, HS_CROSS, HS_DIAGCROSS
    • getFillColor

      public Color getFillColor()
    • setFillColor

      public void setFillColor(Color fillColor)
    • setDrawUsingDefaultColor

      public void setDrawUsingDefaultColor(boolean b)
    • drawUsingDefaultColor

      public boolean drawUsingDefaultColor()
    • serialize

      public void serialize(BufferedWriter writer) throws IOException
      Specified by:
      serialize in interface GlyphDataRecordSerializable
      Throws:
      IOException
    • saveDocument

      public org.jdom.Document saveDocument()
      save the data for this InundationManagerGroup object to an XML Document.

      Returns:
      the XML Document containing the data for this XMLExample
    • deserialize

      public void deserialize(BufferedReader reader) throws IOException, org.jdom.JDOMException
      Specified by:
      deserialize in interface GlyphDataRecordSerializable
      Throws:
      IOException
      org.jdom.JDOMException
    • createArrayElements

      public static boolean createArrayElements(org.jdom.Element base, float[] array)
      add the Elements that represent the array to the Element base with the DEFAULT_STEP number of array entries per array Element

      Parameters:
      base - the Element to add the array Elements to
      array - the array to save
      Returns:
      true if the array Elements were successfully added to the base Element
    • createArrayElements

      public static boolean createArrayElements(org.jdom.Element base, float[] array, int step)
      add the Elements that represent the array to the Element base with the step number of array entries per array Element

      Parameters:
      base - the Element to add the array Elements to
      array - the array to save
      step - the number of array positions to store in each array Element
      Returns:
      true if the array Elements were successfully added to the base Element
    • getStepSize

      protected static int getStepSize(Object array)
      return the step size to write the arrays out with
      Parameters:
      array - the array
      Returns:
      the step size
    • getFloatArrayElements

      public static float[] getFloatArrayElements(org.jdom.Element elem)
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)