Examples of fromPoints()


Examples of com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit.fromPoints()

                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        double oldDim = text.getDimension();
                        LengthUnit oldUnit = text.getUnit();
                        LengthUnit newUnit = unit.getSelectedUnit();
                        double newDim =
                            newUnit.fromPoints(oldUnit.toPoints(oldDim));
                        text.setUnit(newUnit);
                        text.setDimension(newDim);
                    }
                }
            }
View Full Code Here

Examples of com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit.fromPoints()

    }

    private void updateHeight() {
        double h = model.getImageRect().getHeight();
        LengthUnit unit = (LengthUnit) heightUnit.getSelectedItem();
        h = unit.fromPoints(h);
        heightText.setUnit(unit);
        heightText.setDimension(h);
    }

    private void updateWidth() {
View Full Code Here

Examples of com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit.fromPoints()

    }

    private void updateWidth() {
        double w = model.getImageRect().getWidth();
        LengthUnit unit = (LengthUnit) widthUnit.getSelectedItem();
        w = unit.fromPoints(w);
        widthText.setUnit(unit);
        widthText.setDimension(w);
    }

    public void layoutChanged(PrintLayoutModel source) {
View Full Code Here

Examples of com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit.fromPoints()

                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        double oldDim = text.getDimension();
                        LengthUnit oldUnit = text.getUnit();
                        LengthUnit newUnit = unit.getSelectedUnit();
                        double newDim =
                            newUnit.fromPoints(oldUnit.toPoints(oldDim));
                        text.setUnit(newUnit);
                        text.setDimension(newDim);
                    }
                }
            }
View Full Code Here

Examples of com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit.fromPoints()

    }

    private void updateTop() {
        double y = model.getImageRect().getY();
        LengthUnit unit = topUnit.getSelectedUnit();
        y = unit.fromPoints(y);
        topText.setUnit(unit);
        topText.setDimension(y);
    }

    private void updateLeft() {
View Full Code Here

Examples of com.lightcrafts.ui.print.PrintLayoutModel.LengthUnit.fromPoints()

    }

    private void updateLeft() {
        double x = model.getImageRect().getX();
        LengthUnit unit = leftUnit.getSelectedUnit();
        x = unit.fromPoints(x);
        leftText.setUnit(unit);
        leftText.setDimension(x);
    }

    public void layoutChanged(PrintLayoutModel source) {
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.