NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

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: 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 2010-12-09T15:34:45-06:00 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 2012-02-24T15:29:14-06:00 by curtis

  • Blocking 1017 added