diff --git a/src/main/java/cit/PureATN/MultiNote/MultiNote.java b/src/main/java/cit/PureATN/MultiNote/MultiNote.java index 383216b..52f64fb 100644 --- a/src/main/java/cit/PureATN/MultiNote/MultiNote.java +++ b/src/main/java/cit/PureATN/MultiNote/MultiNote.java @@ -27,6 +27,8 @@ import cit.PureATN.SquiggleEventHandler; public class MultiNote extends Note { + static int width = 1000; + static int height = 1414; public MultiNote() { this(null); @@ -61,7 +63,7 @@ // 基準となる紙の輪郭線 for (int i = 1; i < 11; i++) { - PPath stjk = shitajikiNodes[i] = PPath.createRectangle(0, 0, 700, 990); + PPath stjk = shitajikiNodes[i] = PPath.createRectangle(0, 0, width, height); // stjk.setPaint(Color.getHSBColor((float) (i / 11.0f), 0.1f, 1.0f)); stjk.setPaint(null); stjk.setStrokePaint(Color.getHSBColor((float) (i / 11.0f), 0.2f, 1.0f)); @@ -163,15 +165,15 @@ PTransformActivity ta = null; if (doexpand) { for (int i = 1; i < 6; i++) { - shitajikiNodes[i].animateToPositionScaleRotation((i - 1) * 700, 0, 1, 0, 1000); + shitajikiNodes[i].animateToPositionScaleRotation((i - 1) * width, 0, 1, 0, 1000); } for (int i = 6; i < 11; i++) { - ta = shitajikiNodes[i].animateToPositionScaleRotation((i - 6) * 700, 1000, 1, 0, 1000); + ta = shitajikiNodes[i].animateToPositionScaleRotation((i - 6) * width, height, 1, 0, 1000); } PTransformActivity ta2 = getCanvas().getCamera().animateViewToCenterBounds( // getCanvas().getLayer().getFullBounds(), - new PBounds(0, 0, 700 * 5, 990 * 2), + new PBounds(0, 0, width * 5, height * 2), true, 1000); ta2.startAfter(ta); } else { @@ -182,7 +184,7 @@ PTransformActivity ta2 = getCanvas().getCamera().animateViewToCenterBounds( // getCanvas().getLayer().getFullBounds(), - new PBounds(0, 0, 700, 990), + new PBounds(0, 0, width, height), true, 1000); ta2.startAfter(ta);