images.add(model.getRenderedImage());
images.add(model.getSplitComponentImage());
    public List getImageComponents()    {        switch (model.getState()) {            case NEW:            case LOADING_RENDERING_CONTROL:            case DISCARDED:                throw new IllegalStateException(                "This method can't be invoked in the DISCARDED, NEW or" +                "LOADING_RENDERING_CONTROL state.");        }        if (model.getColorModel().equals(GREY_SCALE_MODEL)) return null;        List l = model.getActiveChannels();        if (l.size() < 2) return null;        Iterator i = l.iterator();        int index;        ArrayList images = new ArrayList(l.size());        while (i.hasNext()) {            index = ((Integer) i.next()).intValue();            for (int j = 0; j < model.getMaxC(); j++)                model.setChannelActive(j, j == index);             images.add(model.getRenderedImage());        }        i = l.iterator();        while (i.hasNext()) { //reset values.            index = ((Integer) i.next()).intValue();            model.setChannelActive(index, true);        }        return images;    }