dip.gui.map
Class DefaultMapRenderer2.DMRMapInfo

java.lang.Object
  extended bydip.gui.order.GUIOrder.MapInfo
      extended bydip.gui.map.DefaultMapRenderer2.DMRMapInfo
Enclosing class:
DefaultMapRenderer2

protected class DefaultMapRenderer2.DMRMapInfo
extends GUIOrder.MapInfo

Implicit class for MapInfo interface


Field Summary
 
Fields inherited from class dip.gui.order.GUIOrder.MapInfo
ts
 
Constructor Summary
DefaultMapRenderer2.DMRMapInfo(TurnState ts)
           
 
Method Summary
 Power[] getDisplayablePowers()
          Array of Powers whose orders are displayed; if not in array, order is hidden.
 org.w3c.dom.svg.SVGDocument getDocument()
          Gets the SVG Document
 MapMetadata getMapMetadata()
          Get MapMetadata information
 java.lang.String getPowerCSS(Power power)
          Gets the CSS style for a given Power
 org.w3c.dom.svg.SVGGElement getPowerSVGGElement(Power p, int z)
          Gets the SVG G Element for this power, under which an order should be drawn.
 java.lang.String getSymbolName(Unit.Type unitType)
          Gets the Symbol Name for a given unit type
 java.lang.String getUnitCSS(Power power)
          Gets the CSS style for a given Power's units
 
Methods inherited from class dip.gui.order.GUIOrder.MapInfo
getTurnState, isReviewMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMapRenderer2.DMRMapInfo

public DefaultMapRenderer2.DMRMapInfo(TurnState ts)
Method Detail

getMapMetadata

public MapMetadata getMapMetadata()
Description copied from class: GUIOrder.MapInfo
Get MapMetadata information

Specified by:
getMapMetadata in class GUIOrder.MapInfo

getPowerCSS

public java.lang.String getPowerCSS(Power power)
Description copied from class: GUIOrder.MapInfo
Gets the CSS style for a given Power

Specified by:
getPowerCSS in class GUIOrder.MapInfo

getUnitCSS

public java.lang.String getUnitCSS(Power power)
Description copied from class: GUIOrder.MapInfo
Gets the CSS style for a given Power's units

Specified by:
getUnitCSS in class GUIOrder.MapInfo

getSymbolName

public java.lang.String getSymbolName(Unit.Type unitType)
Description copied from class: GUIOrder.MapInfo
Gets the Symbol Name for a given unit type

Specified by:
getSymbolName in class GUIOrder.MapInfo

getDocument

public org.w3c.dom.svg.SVGDocument getDocument()
Description copied from class: GUIOrder.MapInfo
Gets the SVG Document

Specified by:
getDocument in class GUIOrder.MapInfo

getDisplayablePowers

public Power[] getDisplayablePowers()
Description copied from class: GUIOrder.MapInfo
Array of Powers whose orders are displayed; if not in array, order is hidden. Should not return null. If we are in a resolved turnstate, this should reuturn all powers. This method should never return null. This method must be overridden.

Overrides:
getDisplayablePowers in class GUIOrder.MapInfo

getPowerSVGGElement

public org.w3c.dom.svg.SVGGElement getPowerSVGGElement(Power p,
                                                       int z)
Description copied from class: GUIOrder.MapInfo
Gets the SVG G Element for this power, under which an order should be drawn.

Specified by:
getPowerSVGGElement in class GUIOrder.MapInfo


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.