mesquite.lib
Class BitsSpecsSet

java.lang.Object
  extended by mesquite.lib.Listened
      extended by mesquite.lib.Attachable
          extended by mesquite.lib.Associable
              extended by mesquite.lib.AssociableWithSpecs
                  extended by mesquite.lib.FileElement
                      extended by mesquite.lib.SpecsSet
                          extended by mesquite.lib.BitsSpecsSet
All Implemented Interfaces:
Annotatable, Commandable, Doomable, Explainable, FileDirtier, HNode, HTMLDescribable, Identifiable, Listable, Listenable, Renamable, Selectionable, Showable
Direct Known Subclasses:
CharBitsSet, TaxaBitsSet

public abstract class BitsSpecsSet
extends SpecsSet

A specset with bit information.


Field Summary
 
Fields inherited from class mesquite.lib.SpecsSet
totalCreated
 
Fields inherited from class mesquite.lib.FileElement
assignedIDNumber, assignedIDString, classesCreated, classesFinalized, countsOfClasses, countsOfClassesDisposed, DIRTY, disposed, doomed, IN_USE, name, OK, totalDisposed, totalFinalized
 
Fields inherited from class mesquite.lib.AssociableWithSpecs
SPECSSET_CHANGED
 
Fields inherited from class mesquite.lib.Associable
comment, comments, numParts, rememberDefaultOrder, selected, versionNumber
 
Fields inherited from class mesquite.lib.Listened
allListeners, classes, classesNotified, listeners, listenersRemaining, notifications
 
Fields inherited from interface mesquite.lib.HNode
MOUSEDOWN, MOUSEEXIT, MOUSEMOVE
 
Fields inherited from interface mesquite.lib.HTMLDescribable
verbose
 
Constructor Summary
BitsSpecsSet(java.lang.String name, int numParts)
           
 
Method Summary
 boolean addParts(int starting, int num)
          Add num parts just after "starting" (filling with default values)
 boolean anySelected()
          Returns if any part are on
 boolean deleteParts(int starting, int num)
          Delete num parts from and including "starting"
 void deselectAll()
          Deselect all part
 void equalizeSpecs(SpecsSet other, int otherPart, int part)
          Sets the value for part "part" to be the same as that at part "otherPart" in the incoming specsSet
 java.lang.String getTypeName()
          Returns the type of this element (e.g., "Continuous Data Matrix")
 boolean isSelected(int ic)
          Returns if part ic is on.
 boolean moveParts(int starting, int num, int justAfter)
          Move num parts starting at first, to just after parts justAfter
 int numberSelected()
          Returns how many are on
 void selectAll()
          Select all parts
 void setSelected(int ic, boolean select)
          Set part ic to either on or not according to boolean
 void setSelectedBits(Bits bits)
          Set bits of this to be the same as passed bits
 boolean swapParts(int first, int second)
           
 java.lang.String toString(int ic)
           
 
Methods inherited from class mesquite.lib.SpecsSet
cloneSpecsSet, getNexusBlockStored, getNumberOfParts, getParent, makeSpecsSet, setChangedFromCloned, setNexusBlockStored, setParent, toHTMLStringDescription
 
Methods inherited from class mesquite.lib.FileElement
addToBrowserPopup, addToFile, deleteMe, dispose, doCommand, doom, fileDirtiedByCommand, finalize, getAssignedID, getAssignedIDNumber, getCIPResIDString, getExplanation, getFile, getFileName, getHColor, getHDaughters, getHImage, getHMother, getHShow, getID, getLastModifiedAuthor, getManager, getName, getNexusBlock, getNumSupplements, getProject, getSupplementName, hNodeAction, hSupplementTouched, isDisposed, isDoomed, okToClose, searchData, setAssignedIDNumber, setCIPResIDString, setFile, setManager, setName, setProject, show, showMe, stampLastModifiedAuthor
 
Methods inherited from class mesquite.lib.AssociableWithSpecs
disposing, equalizeParts, getCurrentSpecsSet, getNumSpecsSets, getSpecSetsVector, getSpecSetsVectorVector, getSpecsSet, getSpecsSet, listAssociates, prepareSpecsSetVector, removeSpecsSet, setCurrentSpecsSet, storeSpecsSet
 
Methods inherited from class mesquite.lib.Associable
anyAssociatedObject, clearAllAssociatedBits, contiguousSelection, contiguousSelectionOld, copyCurrentToPreviousOrder, deassignAllAssociatedLongs, deassignAssociated, deassignAssociated, deleteJustAdded, equalizeParts, exchangeAssociated, firstSelected, getAnnotation, getAnnotation, getAssociatedBit, getAssociatedBits, getAssociatedDouble, getAssociatedDoubles, getAssociatedLong, getAssociatedLongs, getAssociatedObject, getAssociatedObjects, getDefaultPosition, getDirty, getJustAdded, getNumberAssociatedBits, getNumberAssociatedDoubles, getNumberAssociatedLongs, getNumberAssociatedObjects, getNumberOfSelectableParts, getSelected, getSelectedBits, getSnapshot, getVersionNumber, getWhichAssociatedBits, getWhichAssociatedDouble, getWhichAssociatedLong, getWhichAssociatedObject, inBounds, lastSelected, makeAssociatedBits, makeAssociatedDoubles, makeAssociatedLongs, makeAssociatedObjects, numberSelected, readAssociated, recordCurrentOrder, recordDefaultOrder, recordPreviousOrder, removeAssociatedBits, removeAssociatedDoubles, removeAssociatedLongs, removeAssociatedObjects, resetDefaultOrderToCurrent, resetJustAdded, restoreToPreviousOrder, setAnnotation, setAnnotation, setAssociatedBit, setAssociatedDouble, setAssociatedLong, setAssociatedObject, setAssociateds, setDefaultPosition, setDirty, setJustAdded, setNumberOfParts, transferAssociated, writeAssociated, zeroAllAssociatedDoubles, zeroAllAssociatedLongs, zeroAllAssociatedObjects
 
Methods inherited from class mesquite.lib.Attachable
anyAttachments, attach, attachIfUniqueName, detach, getAttachment, getAttachment, getAttachments, listAttachments, readAttachments, setAttachments, writeAttachments
 
Methods inherited from class mesquite.lib.Listened
addListener, addListenerHighPriority, amIListening, decrementNotifySuppress, doAfterNotify, getRemainingListeners, incrementNotifySuppress, listListeners, notifyDisposing, notifyListeners, notifyListeners, removeListener, reportListeners, setDumpNotified
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mesquite.lib.Annotatable
getAnnotation, setAnnotation
 
Methods inherited from interface mesquite.lib.Listenable
addListener, addListenerHighPriority, amIListening, decrementNotifySuppress, incrementNotifySuppress, listListeners, notifyListeners, removeListener
 

Constructor Detail

BitsSpecsSet

public BitsSpecsSet(java.lang.String name,
                    int numParts)
Method Detail

getTypeName

public java.lang.String getTypeName()
Description copied from class: FileElement
Returns the type of this element (e.g., "Continuous Data Matrix")

Specified by:
getTypeName in interface HNode
Specified by:
getTypeName in class SpecsSet

toString

public java.lang.String toString(int ic)
Specified by:
toString in class SpecsSet

equalizeSpecs

public void equalizeSpecs(SpecsSet other,
                          int otherPart,
                          int part)
Sets the value for part "part" to be the same as that at part "otherPart" in the incoming specsSet

Specified by:
equalizeSpecs in class SpecsSet

isSelected

public boolean isSelected(int ic)
Returns if part ic is on.


anySelected

public boolean anySelected()
Returns if any part are on

Specified by:
anySelected in interface Selectionable
Overrides:
anySelected in class Associable

numberSelected

public int numberSelected()
Returns how many are on

Specified by:
numberSelected in interface Selectionable
Overrides:
numberSelected in class Associable

setSelectedBits

public void setSelectedBits(Bits bits)
Set bits of this to be the same as passed bits


setSelected

public void setSelected(int ic,
                        boolean select)
Set part ic to either on or not according to boolean

Specified by:
setSelected in interface Selectionable
Overrides:
setSelected in class Associable

deselectAll

public void deselectAll()
Deselect all part

Specified by:
deselectAll in interface Selectionable
Overrides:
deselectAll in class Associable

selectAll

public void selectAll()
Select all parts

Specified by:
selectAll in interface Selectionable
Overrides:
selectAll in class Associable

addParts

public boolean addParts(int starting,
                        int num)
Add num parts just after "starting" (filling with default values)

Specified by:
addParts in class SpecsSet

deleteParts

public boolean deleteParts(int starting,
                           int num)
Delete num parts from and including "starting"

Specified by:
deleteParts in class SpecsSet

moveParts

public boolean moveParts(int starting,
                         int num,
                         int justAfter)
Description copied from class: SpecsSet
Move num parts starting at first, to just after parts justAfter

Specified by:
moveParts in class SpecsSet

swapParts

public boolean swapParts(int first,
                         int second)
Overrides:
swapParts in class AssociableWithSpecs