fr.ifremer.isisfish.map
Class Motif

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

public class Motif
extends java.lang.Object
implements java.io.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 java.awt.Color defaultFillcolor
           
static java.lang.String defaultFillColorString
          The default fill color.
static java.awt.Color defaultLineColor
           
static java.lang.String defaultLineColorString
          The default line color.
protected  java.awt.Color fillColor
           
protected  float height
           
protected  java.awt.Color lineColor
           
protected  float width
           
 
Constructor Summary
Motif()
           
Motif(java.awt.Color fill)
           
Motif(java.awt.Color fill, java.awt.Color line, float alpha)
           
Motif(java.awt.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.
 java.awt.Color getFillColor()
          Get the value of fillColor.
 float getHeight()
          Get the value of height.
 java.awt.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(java.awt.Color v)
          Set the value of fillColor.
 void setHeight(float v)
          Set the value of height.
 void setLineColor(java.awt.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 java.awt.Color defaultLineColor

defaultFillcolor

public static final java.awt.Color defaultFillcolor

defaultAlpha

public static final float defaultAlpha
See Also:
Constant Field Values

defaultLineColorString

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

See Also:
Constant Field Values

defaultFillColorString

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

See Also:
Constant Field Values

lineColor

protected java.awt.Color lineColor

fillColor

protected java.awt.Color fillColor

alpha

protected float alpha

width

protected float width

height

protected float height
Constructor Detail

Motif

public Motif(java.awt.Color fill,
             java.awt.Color line,
             float alpha)

Motif

public Motif(java.awt.Color fill,
             float alpha)

Motif

public Motif(java.awt.Color fill)

Motif

public Motif()
Method Detail

getLineColor

public java.awt.Color getLineColor()
Get the value of lineColor.

Returns:
Value of lineColor.

setLineColor

public void setLineColor(java.awt.Color v)
Set the value of lineColor.

Parameters:
v - Value to assign to lineColor.

getFillColor

public java.awt.Color getFillColor()
Get the value of fillColor.

Returns:
Value of fillColor.

setFillColor

public void setFillColor(java.awt.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.