Ticket #299 (closed task: fixed)
Opened 2010-12-09T15:32:44-06:00
Last modified 2012-02-24T15:29:14-06:00
eliminate DataType enum from ImageJ 2
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | Core | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1017 |
Description
There is a type code in ij2-common that tells what data types are supported in IJ2. Called either UserType or DataType it requires switch case logic in various places. Eliminate this type code and simplify the SampleInfo/SampleManager/EncodingManager/DataEncoding/... set of classes.
Defined a new interface called a Type. Eliminated DataType enum and a number of support classes. All switch case logic was replaced with polymorphic calls to the Type interface. Implemented a number of classes that satisfy the Type contract. Addition of new types simplified greatly.