public final class MapMarker extends java.lang.Object implements java.lang.Comparable<MapMarker>, java.io.Serializable, Tethered
Modifier and Type | Class and Description |
---|---|
static class |
MapMarker.Layer |
static class |
MapMarker.MarkerKey |
static class |
MapMarker.Size |
static class |
MapMarker.Style |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PLAYER_TYPE_PREFIX |
Constructor and Description |
---|
MapMarker() |
Modifier and Type | Method and Description |
---|---|
void |
assignDescription(java.lang.String description) |
void |
attach(GenericMapModel map) |
MapMarker.MarkerKey |
buildKey() |
int |
compareTo(MapMarker o) |
java.lang.String |
declareTooltip() |
void |
detach(GenericMapModel map) |
java.awt.Shape |
footprint() |
com.mindgene.d20.common.creature.CreatureLabel |
getBottomLabel() |
java.awt.Color |
getColor() |
boolean |
getCustomSize() |
java.lang.String |
getDescription() |
float |
getHeight() |
java.lang.String |
getIcon() |
short |
getIconId() |
MapMarker.Layer |
getLayer() |
java.util.List<com.d20pro.common.hyperlink.D20Hyperlink> |
getLinks() |
java.lang.String |
getName() |
float |
getRadius() |
int |
getRotateBy() |
float |
getRotation() |
int |
getStyle() |
Tethered |
getTether() |
java.lang.String |
getTextDescription() |
com.mindgene.d20.common.creature.CreatureLabel |
getTopLabel() |
java.lang.String |
getType() |
float |
getWidth() |
float |
getX() |
float |
getY() |
boolean |
isBeneath(java.awt.geom.Point2D.Float mapLocation) |
boolean |
isDescVisible()
Deprecated.
|
boolean |
isLocked() |
boolean |
isVisible() |
boolean |
isVisibleTo(java.lang.String playerName) |
boolean |
ownedBy(java.lang.String playerName) |
void |
paintIconImmediate(java.awt.Graphics2D g2,
java.awt.Point at,
int pixelsPerCell,
float markerRadius,
boolean isVisible,
com.mindgene.d20.common.util.ImageProvider provider,
java.awt.image.ImageObserver observer) |
void |
paintImmediate(java.awt.Graphics2D g2,
GenericMapView mapView) |
void |
paintImmediate(java.awt.Graphics2D g2,
java.awt.Point at,
int pixelsPerCell,
float markerRadius,
boolean isVisible,
com.mindgene.d20.common.util.ImageProvider provider,
java.awt.image.ImageObserver observer) |
void |
recognizeMobMoved(GenericMapObject mob) |
void |
setBottomLabel(com.mindgene.d20.common.creature.CreatureLabel bottomLabel) |
void |
setColor(java.awt.Color color) |
void |
setCustomSize(boolean v) |
void |
setDescription(java.lang.String description)
Deprecated.
- XML Only call assignDescription( String )
|
void |
setDescVisible(boolean descVisible)
Deprecated.
|
void |
setHeight(float height) |
void |
setIcon(java.lang.String icon) |
void |
setIconId(short iconId) |
void |
setLayer(MapMarker.Layer layer) |
void |
setLinks(java.util.List<com.d20pro.common.hyperlink.D20Hyperlink> links) |
void |
setLocked(boolean locked) |
void |
setName(java.lang.String name) |
void |
setRadius(float radius) |
void |
setRotateBy(int r) |
void |
setRotation(float r) |
void |
setStyle(int style) |
void |
setTopLabel(com.mindgene.d20.common.creature.CreatureLabel topLabel) |
void |
setType(java.lang.String type) |
void |
setVisible(boolean visible) |
void |
setWidth(float width) |
void |
setX(float x) |
void |
setY(float y) |
void |
toggleVisibility() |
java.lang.String |
toString() |
public static final java.lang.String PLAYER_TYPE_PREFIX
public short getIconId()
public void setIconId(short iconId)
public MapMarker.MarkerKey buildKey()
public boolean ownedBy(java.lang.String playerName)
public boolean isVisibleTo(java.lang.String playerName)
playerName
- username or player or null for judgepublic java.lang.String getTextDescription()
public java.lang.String getDescription()
@Deprecated public boolean isDescVisible()
public java.lang.String getName()
public java.lang.String getType()
public boolean isVisible()
public float getRadius()
public float getWidth()
public float getHeight()
public float getRotation()
public int getRotateBy()
public boolean getCustomSize()
public void setCustomSize(boolean v)
public void setRotateBy(int r)
public void setRotation(float r)
public void setWidth(float width)
public void setHeight(float height)
public void setRadius(float radius)
public float getX()
public float getY()
public void assignDescription(java.lang.String description)
@Deprecated public void setDescription(java.lang.String description)
@Deprecated public void setDescVisible(boolean descVisible)
public void setName(java.lang.String name)
public void setType(java.lang.String type)
public void setVisible(boolean visible)
public void toggleVisibility()
public void setX(float x)
public void setY(float y)
public java.lang.String toString()
toString
in class java.lang.Object
public void paintImmediate(java.awt.Graphics2D g2, GenericMapView mapView)
public void paintImmediate(java.awt.Graphics2D g2, java.awt.Point at, int pixelsPerCell, float markerRadius, boolean isVisible, com.mindgene.d20.common.util.ImageProvider provider, java.awt.image.ImageObserver observer)
public void paintIconImmediate(java.awt.Graphics2D g2, java.awt.Point at, int pixelsPerCell, float markerRadius, boolean isVisible, com.mindgene.d20.common.util.ImageProvider provider, java.awt.image.ImageObserver observer)
public boolean isBeneath(java.awt.geom.Point2D.Float mapLocation)
public java.awt.Shape footprint()
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public java.lang.String declareTooltip()
public int compareTo(MapMarker o)
compareTo
in interface java.lang.Comparable<MapMarker>
public void setStyle(int style)
public int getStyle()
public boolean isLocked()
public void setLocked(boolean locked)
public MapMarker.Layer getLayer()
public void setLayer(MapMarker.Layer layer)
public com.mindgene.d20.common.creature.CreatureLabel getTopLabel()
public void setTopLabel(com.mindgene.d20.common.creature.CreatureLabel topLabel)
public com.mindgene.d20.common.creature.CreatureLabel getBottomLabel()
public void setBottomLabel(com.mindgene.d20.common.creature.CreatureLabel bottomLabel)
public java.util.List<com.d20pro.common.hyperlink.D20Hyperlink> getLinks()
public Tethered getTether()
public void setLinks(java.util.List<com.d20pro.common.hyperlink.D20Hyperlink> links)
public void recognizeMobMoved(GenericMapObject mob)
recognizeMobMoved
in interface Tethered
public void attach(GenericMapModel map)
public void detach(GenericMapModel map)
public java.lang.String getIcon()
public void setIcon(java.lang.String icon)