fr.ifremer.isisfish.map
Class Motif

java.lang.Object
  extended by 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: 2771 $
Author:
See Also:
Serialized Form

Field Summary
protected  float alpha
           
static float defaultAlpha
           
static Color defaultFillcolor
           
static String defaultFillColorString
          The default fill color.
static Color defaultLineColor
           
static String defaultLineColorString
          The default line color.
protected  Color fillColor
           
protected  float height
           
protected  Color lineColor
           
protected  float width
           
 
Constructor Summary
Motif()
           
Motif(Color fill)
           
Motif(Color fill, Color line, float alpha)
           
Motif(Color fill, float alpha)
           
 
Method Summary
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.
 float getAlpha()
          Get the value of alpha.
 Color getFillColor()
          Get the value of fillColor.
 float getHeight()
          Get the value of height.
 Color getLineColor()
          Get the value of lineColor.
 float getWidth()
          Get the value of width.
 void setAlpha(float v)
          Set the value of alpha.
 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 ???
 void setFillColor(Color v)
          Set the value of fillColor.
 void setHeight(float v)
          Set the value of height.
 void setLineColor(Color v)
          Set the value of lineColor.
 void setWidth(float v)
          Set the value of width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultLineColor

public static final Color defaultLineColor

defaultFillcolor

public static final Color defaultFillcolor

defaultAlpha

public static final float defaultAlpha
See Also:
Constant Field Values

defaultLineColorString

public static final String defaultLineColorString
The default line color. (black)

See Also:
Constant Field Values

defaultFillColorString

public static final String defaultFillColorString
The default fill color. (none)

See Also:
Constant Field Values

lineColor

protected Color lineColor

fillColor

protected Color fillColor

alpha

protected float alpha

width

protected float width

height

protected float height
Constructor Detail

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 Detail

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.



Copyright © 1999-2010 CodeLutin. All Rights Reserved.