sdr 0.7

net.cscott.sdr.calls
Class NamedTaggedFormation

java.lang.Object
  extended by net.cscott.sdr.calls.Formation
      extended by net.cscott.sdr.calls.TaggedFormation
          extended by net.cscott.sdr.calls.NamedTaggedFormation

public class NamedTaggedFormation
extends TaggedFormation

Associates a name with a canonical formation. This makes string representations more compact!

Tests:
Fetch tagged dancers from a TaggedFormation:
js> FormationList = FormationList.js(this); undefined;
js> f = FormationList.STATIC_SQUARE ; f.getClass()
class net.cscott.sdr.calls.NamedTaggedFormation
js> f.getName()
STATIC SQUARE

Nested Class Summary
 
Nested classes/interfaces inherited from class net.cscott.sdr.calls.TaggedFormation
TaggedFormation.Tag
 
Field Summary
 
Fields inherited from class net.cscott.sdr.calls.Formation
dancerNames, FOUR_SQUARE, location, selected, SQUARED_SET
 
Constructor Summary
NamedTaggedFormation(String name, Formation f, MultiMap<Dancer,TaggedFormation.Tag> tags)
           
NamedTaggedFormation(String name, net.cscott.sdr.calls.TaggedFormation.TaggedDancerInfo... tdi)
           
NamedTaggedFormation(String name, TaggedFormation tf)
           
 
Method Summary
 String getName()
           
 String toString()
           
 
Methods inherited from class net.cscott.sdr.calls.TaggedFormation
addTags, coerce, equals, hashCode, isTagged, isTagged, map, map, mapStd, move, select, tagged, tagged, tags
 
Methods inherited from class net.cscott.sdr.calls.Formation
bounds, bounds, dancerComparator, dancers, isCentered, isSelected, location, mirror, onlySelected, recenter, rotate, select, selectedDancers, sortedDancers, toStringDiagram, toStringDiagram, toStringDiagram, toStringDiagramWithDetails, toStringDiagramWithDetails, toStringDiagramWithDetails
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedTaggedFormation

public NamedTaggedFormation(String name,
                            net.cscott.sdr.calls.TaggedFormation.TaggedDancerInfo... tdi)

NamedTaggedFormation

public NamedTaggedFormation(String name,
                            Formation f,
                            MultiMap<Dancer,TaggedFormation.Tag> tags)

NamedTaggedFormation

public NamedTaggedFormation(String name,
                            TaggedFormation tf)
Method Detail

getName

public String getName()

toString

public String toString()
Overrides:
toString in class TaggedFormation

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian