com.eightmotions.map
Class MarkerStyle

java.lang.Object
  extended by com.eightmotions.map.MarkerStyle

public class MarkerStyle
extends java.lang.Object

MArkerStyle represent how a Marker (a point on the map) is displayed.
Several points can share the same style.
The rendering process is quite simple:
The engine call marker.draw and then the marker call style.draw.
So if you need to do some special rendering method, you have two entry points: subclass Marker or sublacc MarkerStyle.
Which one to use depends of your specific use. Usually, if everypoint is different and you want to put some information in the Marker, it's easiest to subclass Marker and write your own paint method.
Another usefull feature is the defaultDelegateStyle: this spefici instance of style use value of the marker and not the style value to render the point


Field Summary
static MarkerStyle defaultDelegateStyle
           
static int ICON_CIRCLE
           
static int ICON_DIAMOND
          Specifiy a marker of "type" ICON_DIAMOND.
static int ICON_IMAGE
           
static int ICON_INVISIBLE
          The marker won't be displayed at all
static int ICON_LOC_PIN
          The standard marker, and the default one.
static int ICON_PHOTO
           
static int ICON_SMALL_PIN
          Display a small "pin"
 javax.microedition.lcdui.Image iconImage
           
 java.lang.String iconName
           
 int ima_offx
           
 int ima_offy
           
 int m_col
           
 int m_colForeground
           
static int m_defaultHeight
           
static int m_defaultWidth
          Default width of the info window when the loc is selected This is recomputed at initialisation by the MapDisplay, but can be chaned later on.
 MarkerListener m_theListener
           
 int m_type
           
 
Constructor Summary
MarkerStyle()
           
 
Method Summary
 MarkerStyle clone()
           
 void paint(javax.microedition.lcdui.Graphics g, Marker inMarker, MapDisplay m)
           
 void paintFull(javax.microedition.lcdui.Graphics g, Marker inM, MapDisplay m)
           
 void setIconImage(javax.microedition.lcdui.Image icon, int offX, int offY)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_LOC_PIN

public static final int ICON_LOC_PIN
The standard marker, and the default one.

See Also:
Constant Field Values

ICON_SMALL_PIN

public static final int ICON_SMALL_PIN
Display a small "pin"

See Also:
Constant Field Values

ICON_INVISIBLE

public static final int ICON_INVISIBLE
The marker won't be displayed at all

See Also:
Constant Field Values

ICON_DIAMOND

public static final int ICON_DIAMOND
Specifiy a marker of "type" ICON_DIAMOND. Usually used for direction displays

See Also:
Constant Field Values

ICON_CIRCLE

public static final int ICON_CIRCLE
See Also:
Constant Field Values

ICON_IMAGE

public static final int ICON_IMAGE
See Also:
Constant Field Values

ICON_PHOTO

public static final int ICON_PHOTO
See Also:
Constant Field Values

m_type

public int m_type

m_col

public int m_col

m_colForeground

public int m_colForeground

iconName

public java.lang.String iconName

iconImage

public javax.microedition.lcdui.Image iconImage

ima_offx

public int ima_offx

ima_offy

public int ima_offy

m_defaultWidth

public static int m_defaultWidth
Default width of the info window when the loc is selected This is recomputed at initialisation by the MapDisplay, but can be chaned later on.


m_defaultHeight

public static int m_defaultHeight

m_theListener

public MarkerListener m_theListener

defaultDelegateStyle

public static MarkerStyle defaultDelegateStyle
Constructor Detail

MarkerStyle

public MarkerStyle()
Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  Marker inMarker,
                  MapDisplay m)

paintFull

public void paintFull(javax.microedition.lcdui.Graphics g,
                      Marker inM,
                      MapDisplay m)

clone

public MarkerStyle clone()

setIconImage

public void setIconImage(javax.microedition.lcdui.Image icon,
                         int offX,
                         int offY)