dip.gui.map
Class DefaultMapRenderer2.Tracker

java.lang.Object
  extended bydip.gui.map.DefaultMapRenderer2.Tracker
Enclosing class:
DefaultMapRenderer2

protected class DefaultMapRenderer2.Tracker
extends java.lang.Object

Keeps track of the DOM Elements and other info to monitor changes; ONE (and only one) Tracker object will exist for each Province with any items to be rendered (SC, units, etc.)


Constructor Summary
DefaultMapRenderer2.Tracker()
          Create a Tracker object
 
Method Summary
 Unit getDislodgedUnit()
           
 org.w3c.dom.svg.SVGElement getDislodgedUnitElement()
           
 java.lang.String getOriginalProvinceCSS()
          Returns original province CSS style(s), or null, derived when setProvinceHiliteElement() was called.
 java.lang.String getPowerCSSClass(Power power)
          Returns the CSS class for the power, or, the original CSS defined in the SVG file (if available) if power is null.
 org.w3c.dom.svg.SVGElement getProvinceHiliteElement()
           
 org.w3c.dom.svg.SVGElement getSCElement()
           
 Unit getUnit()
           
 org.w3c.dom.svg.SVGElement getUnitElement()
           
 void setDislodgedUnit(org.w3c.dom.svg.SVGElement el, Unit unit)
           
 void setDislodgedUnit(Unit u)
           
 void setProvinceHiliteElement(org.w3c.dom.svg.SVGElement el)
           
 void setSCElement(org.w3c.dom.svg.SVGElement el)
           
 void setUnit(org.w3c.dom.svg.SVGElement el, Unit unit)
           
 void setUnit(Unit u)
           
 java.lang.String toString()
          For debugging only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMapRenderer2.Tracker

public DefaultMapRenderer2.Tracker()
Create a Tracker object

Method Detail

getUnitElement

public org.w3c.dom.svg.SVGElement getUnitElement()

getDislodgedUnitElement

public org.w3c.dom.svg.SVGElement getDislodgedUnitElement()

getUnit

public Unit getUnit()

getDislodgedUnit

public Unit getDislodgedUnit()

setUnit

public void setUnit(Unit u)

setDislodgedUnit

public void setDislodgedUnit(Unit u)

setProvinceHiliteElement

public void setProvinceHiliteElement(org.w3c.dom.svg.SVGElement el)

getProvinceHiliteElement

public org.w3c.dom.svg.SVGElement getProvinceHiliteElement()

getOriginalProvinceCSS

public java.lang.String getOriginalProvinceCSS()
Returns original province CSS style(s), or null, derived when setProvinceHiliteElement() was called.


getPowerCSSClass

public java.lang.String getPowerCSSClass(Power power)
Returns the CSS class for the power, or, the original CSS defined in the SVG file (if available) if power is null. If no original CSS exists, then, no CSS value is returned.


setSCElement

public void setSCElement(org.w3c.dom.svg.SVGElement el)

getSCElement

public org.w3c.dom.svg.SVGElement getSCElement()

setUnit

public void setUnit(org.w3c.dom.svg.SVGElement el,
                    Unit unit)

setDislodgedUnit

public void setDislodgedUnit(org.w3c.dom.svg.SVGElement el,
                             Unit unit)

toString

public java.lang.String toString()
For debugging only



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