|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdip.gui.map.MapMetadata.InfoEntry
Stores coordinate information for Symbol placement within a province.
Rectangles are used; while the x,y position is most important, the width and height information can be used to scale.
| Constructor Summary | |
MapMetadata.InfoEntry(java.awt.geom.Point2D.Float unit,
java.awt.geom.Point2D.Float dislodgedUnit,
java.awt.geom.Point2D.Float sc)
Create an InfoEntry object; if directional coasts, use setCoastMapings as well. |
|
| Method Summary | |
void |
addCoastMapping(Coast coast,
java.awt.geom.Point2D.Float unitPt,
java.awt.geom.Point2D.Float dislodgedPt)
Adds data to coast mapping |
java.awt.geom.Point2D.Float |
getDislodgedUnitPt(Coast coast)
Location where dislodged units are placed |
java.awt.geom.Point2D.Float |
getSCPt()
Location where supply centers are placed |
java.awt.geom.Point2D.Float |
getUnitPt(Coast coast)
Location where units are placed |
void |
setCoastMappings(java.util.Map unitCoasts,
java.util.Map dislodgedUnitCoasts)
Sets coast data maps for multi-coastal provinces; if not set, default placement data is used. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MapMetadata.InfoEntry(java.awt.geom.Point2D.Float unit,
java.awt.geom.Point2D.Float dislodgedUnit,
java.awt.geom.Point2D.Float sc)
| Method Detail |
public void setCoastMappings(java.util.Map unitCoasts,
java.util.Map dislodgedUnitCoasts)
public void addCoastMapping(Coast coast,
java.awt.geom.Point2D.Float unitPt,
java.awt.geom.Point2D.Float dislodgedPt)
public java.awt.geom.Point2D.Float getUnitPt(Coast coast)
public java.awt.geom.Point2D.Float getDislodgedUnitPt(Coast coast)
public java.awt.geom.Point2D.Float getSCPt()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||