Examples of Scale


Examples of com.lightcrafts.model.Scale

        scale = new Scale(factor);
        return setScale(scale);
    }

    private Scale getNextScaleUp() {
        Scale current = getCurrentScale();
        for (Scale next : scales) {
            if (next.compareTo(current) > 0) {
                return next;
            }
        }
View Full Code Here

Examples of com.lightcrafts.model.Scale

        }
        return null;
    }

    private Scale getNextScaleDown() {
        Scale current = getCurrentScale();
        for (int n=scales.size()-1; n>= 0; n--) {
            Scale next = scales.get(n);
            if (next.compareTo(current) < 0) {
                return next;
            }
        }
        return null;
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

        return getNextScaleDown() != null;
    }

    private int getIndexOf(Scale scale) {
        for (int n=0; n<scales.size(); n++) {
            Scale s = scales.get(n);
            if (s.equals(scale)) {
                return n;
            }
        }
        return -1;
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

        regions = new RegionManager();
        crop = new CropRotateManager(engine, xform);

        scale = new ScaleModel(engine);
        XmlNode scaleNode = root.getChild(ScaleTag);
        Scale s = new Scale(scaleNode);
        scale.setScale(s);

        editor = new Editor(engine, scale, xform, regions, crop, this);
        editor.showWait(LOCALE.get("EditorWaitText"));
        crop.setEditor( editor );
View Full Code Here

Examples of com.lightcrafts.model.Scale

        Rectangle rect = editor.getMaxImageBounds();
        // Sometimes during frame initialization, the max image bounds
        // is reported as zero.  Perhaps some layout glitch involving
        // scroll pane interaction?
        if ((rect.width > 0) && (rect.height > 0)) {
            Scale oldScale = scale.getCurrentScale();
            Scale newScale = engine.setScale(rect);
            if (! scale.setScale(newScale)) {
                engine.setScale(oldScale);
            }
        }
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

        // Sometimes during frame initialization, the max image bounds
        // is reported as zero.  Perhaps some layout glitch involving
        // scroll pane interaction?
        if ((rect.width > 0) && (rect.height > 0)) {
            isChangingScale = true;
            Scale oldScale = scale.getCurrentScale();
            Scale newScale = engine.setScale(rect);
            if (! scale.setScale(newScale)) {
                engine.setScale(oldScale);
            }
            isChangingScale = false;
        }
View Full Code Here

Examples of com.lightcrafts.model.Scale

    }

    private static void setInitialSize(Document doc) {
        doc.zoomToFit();
        ScaleModel scales = doc.getScaleModel();
        Scale s = scales.getCurrentScale();
        if (s.getFactor() > 1f) {
            s = new Scale(1, 1);
            scales.setScale(s);
        }
    }
View Full Code Here

Examples of com.lightcrafts.model.Scale

            if (! name.equals(imageName)) {
                name = name + " [" + imageName + "]";
            }
            sb.append(name);
            ScaleModel scaleModel = doc.getScaleModel();
            Scale scale = scaleModel.getCurrentScale();
            sb.append(" (").append(scale).append(")");
            sb.append(" - ");
        }
        sb.append(Version.getApplicationName());
View Full Code Here

Examples of com.music.model.Scale

        double measureOffset = Chance.test(5) ? 0.15 : 0;

        for (Phrase phrase : mainPart.getPhraseArray()) {
            Phrase accompanimentPhrase = new Phrase();
            accompanimentPhrase.setTitle("Accompaniment phrase");
            Scale currentScale = ((ExtendedPhrase) phrase).getScale();
            // get copies of the static ones, so that we can shuffle them without affecting the original
            List<Chord> scaleChords = new ArrayList<Chord>(ChordUtils.chords.get(currentScale));
            List<Chord> scaleSeventhChords = new ArrayList<Chord>(ChordUtils.seventhChords.get(currentScale));
            List<Chord> scaleOtherChords = new ArrayList<Chord>(ChordUtils.otherChords.get(currentScale));
View Full Code Here

Examples of cross.reputation.model.Scale

            "hasScale property of Metric resource:"+
            resource.getURI()+" is not a resource")) {
          return null;
        }
      } else {
        Scale scale = (Scale) getResourceFromCache(
            statement.getObject().asResource(),Scale.class);
        if(scale == null) {
          scale = getScale(model,statement.getObject().asResource(),null);         
        }
        metric.setScale(scale);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.