Package com.lightcrafts.ui.browser.model

Examples of com.lightcrafts.ui.browser.model.ImageGroup


    static Color BackColor = LightZoneSkin.Colors.BrowserImageTypeLabelBackground;

    static Color BorderColor = Color.lightGray;

    static void paint(Graphics2D g, Rectangle2D rect, ImageDatum datum) {
        ImageGroup group = datum.getGroup();
        int count = group.getImageDatums().size();
        String text = Integer.toString(count);
        paint(g, rect, text);
    }
View Full Code Here


        return list.getAllImageData();
    }

    private boolean isGroupStart(List<ImageDatum> datums, int index) {
        ImageDatum datum = datums.get(index);
        ImageGroup group = datum.getGroup();

        if (! group.isNonTrivial()) {
            return false;
        }
        if (index == 0) {
            return true;
        }
View Full Code Here

        return group != prev.getGroup();
    }

    private boolean isGroupEnd(List<ImageDatum> datums, int index) {
        ImageDatum datum = datums.get(index);
        ImageGroup group = datum.getGroup();

        if (! group.isNonTrivial()) {
            return false;
        }
        if (index == datums.size() - 1) {
            return true;
        }
View Full Code Here

            ImageMetadata meta = datum.getMetadata(true);
            int rating = meta.getRating();
            boolean selected = selection.isSelected(datum);
            renderer.paint(g, image, label, tag, rating, rect, selected);

            ImageGroup group = datum.getGroup();
            if (group.isNonTrivial()) {
                ImageGroupCountRenderer.paint(g, rect, datum);
            }
        }
        g.setClip(clip);
View Full Code Here

     */
    ArrayList<ImageDatum> getAllImageData() {
        List<ImageDatum> allDatums = list.getAllImageData();
        Set<ImageDatum> recentDatums = new LinkedHashSet<ImageDatum>();
        for (ImageDatum datum : allDatums) {
            ImageGroup group = datum.getGroup();
            List<ImageDatum> members = group.getImageDatums();
            long lastTime = 0;
            ImageDatum lastMember = null;
            for (ImageDatum member : members) {
                File file = member.getFile();
                long modTime = file.lastModified();
View Full Code Here

            if (! DocumentReader.isReadable(file)) {

                // Use the DocumentDatabase to find the versions of this image:
                List<File> docs = DocumentDatabase.getDocumentsForImage(file);

                ImageGroup group = datum.newGroup();
                for (File doc : docs) {
                    ImageDatum docDatum = fileDatumMap.get(doc);
                    if (docDatum != null) {
                        // The DocumentDatabase can get stale, and we can't
                        // have inconsistencies in the group structure:
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.browser.model.ImageGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.