|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eightmotions.map.MarkerStyle
public class MarkerStyle
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 |
|---|
public static final int ICON_LOC_PIN
public static final int ICON_SMALL_PIN
public static final int ICON_INVISIBLE
public static final int ICON_DIAMOND
public static final int ICON_CIRCLE
public static final int ICON_IMAGE
public static final int ICON_PHOTO
public int m_type
public int m_col
public int m_colForeground
public java.lang.String iconName
public javax.microedition.lcdui.Image iconImage
public int ima_offx
public int ima_offy
public static int m_defaultWidth
public static int m_defaultHeight
public MarkerListener m_theListener
public static MarkerStyle defaultDelegateStyle
| Constructor Detail |
|---|
public MarkerStyle()
| Method Detail |
|---|
public void paint(javax.microedition.lcdui.Graphics g,
Marker inMarker,
MapDisplay m)
public void paintFull(javax.microedition.lcdui.Graphics g,
Marker inM,
MapDisplay m)
public MarkerStyle clone()
public void setIconImage(javax.microedition.lcdui.Image icon,
int offX,
int offY)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||