com.partnersoft.v3x.apps.Staker.FieldStaker
Class UnitAtALocationSelector

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.FieldStaker.UnitAtALocationSelector
All Implemented Interfaces:
Selector, Specifier

public class UnitAtALocationSelector
extends java.lang.Object
implements Selector

A graphical staked unit selector. Displays a StakeNode and the units on it, and translates mouse clicks to specified UnitsAtALocation. Also includes a list selector so's you can get those nonvisual units too. Oh yeah, and now we're kludging in hexagon label selection. Sigh.


Constructor Summary
UnitAtALocationSelector(Staker staker)
           
 
Method Summary
 void addSpecificationListener(SpecificationListener nosey)
           
 java.awt.Component getListSelector()
           
 Location getLocation()
           
 Specifier getRotationSpecifier()
           
 java.util.Iterator getSelectionSet()
          Returns valid selection set.
 java.lang.Object getSpecified()
          Returns specified object.
 java.lang.Class getSpecifiedClass()
          Returns the class of objects that can be specified with this specifier.
 java.awt.Component getSplatteredEgg()
           
 void refresh()
           
 void removeSelectableItem(java.lang.Object item)
          Removes an item from the selection set.
 void removeSpecificationListener(SpecificationListener repentant)
           
 void selectableItemChanged(java.lang.Object item)
          Used when an object's state has changed; primarily for benefit of some gui thing.
 void setLocation(Location newLoc)
           
 void setSelecting(boolean selecting)
           
 void setSelectionSet(java.util.Iterator newSet)
          Sets valid selection set.
 void setSpecified(java.lang.Object newSpecified)
          Specifies an object.
 void setSpecifiedClass(java.lang.Class classy)
          Sets the class of objects that can be specified with this specifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitAtALocationSelector

public UnitAtALocationSelector(Staker staker)
Method Detail

setSpecified

public void setSpecified(java.lang.Object newSpecified)
Description copied from interface: Specifier
Specifies an object.

Specified by:
setSpecified in interface Specifier

getSpecified

public java.lang.Object getSpecified()
Description copied from interface: Specifier
Returns specified object.

Specified by:
getSpecified in interface Specifier

setSelectionSet

public void setSelectionSet(java.util.Iterator newSet)
Description copied from interface: Selector
Sets valid selection set.

Specified by:
setSelectionSet in interface Selector

getSelectionSet

public java.util.Iterator getSelectionSet()
Description copied from interface: Selector
Returns valid selection set.

Specified by:
getSelectionSet in interface Selector

getSpecifiedClass

public java.lang.Class getSpecifiedClass()
Description copied from interface: Specifier
Returns the class of objects that can be specified with this specifier.

Specified by:
getSpecifiedClass in interface Specifier

setSpecifiedClass

public void setSpecifiedClass(java.lang.Class classy)
Description copied from interface: Specifier
Sets the class of objects that can be specified with this specifier.

Specified by:
setSpecifiedClass in interface Specifier

setLocation

public void setLocation(Location newLoc)

getLocation

public Location getLocation()

setSelecting

public void setSelecting(boolean selecting)

getRotationSpecifier

public Specifier getRotationSpecifier()

getListSelector

public java.awt.Component getListSelector()

getSplatteredEgg

public java.awt.Component getSplatteredEgg()

refresh

public void refresh()

removeSelectableItem

public void removeSelectableItem(java.lang.Object item)
Description copied from interface: Selector
Removes an item from the selection set.

Specified by:
removeSelectableItem in interface Selector

selectableItemChanged

public void selectableItemChanged(java.lang.Object item)
Description copied from interface: Selector
Used when an object's state has changed; primarily for benefit of some gui thing.

Specified by:
selectableItemChanged in interface Selector

addSpecificationListener

public void addSpecificationListener(SpecificationListener nosey)
Specified by:
addSpecificationListener in interface Specifier

removeSpecificationListener

public void removeSpecificationListener(SpecificationListener repentant)
Specified by:
removeSpecificationListener in interface Specifier