Class Motif

java.lang.Object
fr.ifremer.isisfish.map.Motif
All Implemented Interfaces:
Serializable

public class Motif extends Object implements Serializable
A Motif that represents how to draw a DataMap on the map. A factor is applied to the graphic according to the DataMap value and the maximum DataMap value. Created: Mon Apr 22 16:31:39 2002
Version:
$Revision$
Author:
See Also:
  • Field Details

    • defaultLineColor

      public static final Color defaultLineColor
    • defaultFillcolor

      public static final Color defaultFillcolor
    • defaultAlpha

      public static final float defaultAlpha
      See Also:
    • defaultLineColorString

      public static final String defaultLineColorString
      The default line color. (black)
      See Also:
    • defaultFillColorString

      public static final String defaultFillColorString
      The default fill color. (none)
      See Also:
    • lineColor

      protected Color lineColor
    • fillColor

      protected Color fillColor
    • alpha

      protected float alpha
    • width

      protected float width
    • height

      protected float height
  • Constructor Details

    • Motif

      public Motif(Color fill, Color line, float alpha)
    • Motif

      public Motif(Color fill, float alpha)
    • Motif

      public Motif(Color fill)
    • Motif

      public Motif()
  • Method Details

    • getLineColor

      public Color getLineColor()
      Get the value of lineColor.
      Returns:
      Value of lineColor.
    • setLineColor

      public void setLineColor(Color v)
      Set the value of lineColor.
      Parameters:
      v - Value to assign to lineColor.
    • getFillColor

      public Color getFillColor()
      Get the value of fillColor.
      Returns:
      Value of fillColor.
    • setFillColor

      public void setFillColor(Color v)
      Set the value of fillColor.
      Parameters:
      v - Value to assign to fillColor.
    • getAlpha

      public float getAlpha()
      Get the value of alpha.
      Returns:
      Value of alpha.
    • setAlpha

      public void setAlpha(float v)
      Set the value of alpha.
      Parameters:
      v - Value to assign to alpha.
    • getWidth

      public float getWidth()
      Get the value of width.
      Returns:
      Value of width.
    • setWidth

      public void setWidth(float v)
      Set the value of width.
      Parameters:
      v - Value to assign to width.
    • getHeight

      public float getHeight()
      Get the value of height.
      Returns:
      Value of height.
    • setHeight

      public void setHeight(float v)
      Set the value of height.
      Parameters:
      v - Value to assign to height.
    • setCellDimension

      public void setCellDimension(float width, float height)
      Set the width and the height of a cell for this Motif May be more accurate in the DataMap ???
      Parameters:
      width - Cell width in radian
      height - Cell height in radian
    • createOMDataMap

      protected void createOMDataMap(com.bbn.openmap.proj.Projection proj, com.bbn.openmap.omGraphics.OMGraphicList omlist, Scale sc, DataMap datamap)
      Create a graphical object corresponding to this DataMap.