Ticket #299 (closed task: fixed)

Opened 9 years ago

Last modified 8 years ago

eliminate DataType enum from ImageJ 2

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: biweekly-2010: Nov-29 to Dec-10
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.

Change History

comment:1 Changed 9 years ago by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

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.

comment:2 Changed 8 years ago by curtis

  • Blocking 1017 added
Note: See TracTickets for help on using tickets.