builtInFormulas.put("3cd4", new Formula(){
@Override
double evaluate(Context ctx){
- return 270 * 60000;
+ return 270 * 60000.;
}
});
builtInFormulas.put("3cd8", new Formula(){
@Override
double evaluate(Context ctx){
- return 135 * 60000;
+ return 135 * 60000.;
}
});
builtInFormulas.put("5cd8", new Formula(){
@Override
double evaluate(Context ctx){
- return 270 * 60000;
+ return 270 * 60000.;
}
});
builtInFormulas.put("7cd8", new Formula(){
@Override
double evaluate(Context ctx){
- return 270 * 60000;
+ return 270 * 60000.;
}
});
builtInFormulas.put("cd2", new Formula(){
@Override
double evaluate(Context ctx){
- return 180 * 60000;
+ return 180 * 60000.;
}
});
builtInFormulas.put("cd4", new Formula(){
@Override
double evaluate(Context ctx){
- return 90 * 60000;
+ return 90 * 60000.;
}
});
builtInFormulas.put("cd8", new Formula(){
@Override
double evaluate(Context ctx){
- return 45 * 60000;
+ return 45 * 60000.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getX() + anchor.getWidth()/2;
+ return anchor.getX() + anchor.getWidth()/2.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getHeight()/2;
+ return anchor.getHeight()/2.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getHeight()/3;
+ return anchor.getHeight()/3.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getHeight()/4;
+ return anchor.getHeight()/4.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getHeight()/5;
+ return anchor.getHeight()/5.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getHeight()/6;
+ return anchor.getHeight()/6.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getHeight()/8;
+ return anchor.getHeight()/8.;
}
});
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
double ss = Math.min(anchor.getWidth(), anchor.getHeight());
- return ss / 2;
+ return ss / 2.;
}
});
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
double ss = Math.min(anchor.getWidth(), anchor.getHeight());
- return ss / 4;
+ return ss / 4.;
}
});
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
double ss = Math.min(anchor.getWidth(), anchor.getHeight());
- return ss / 6;
+ return ss / 6.;
}
});
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
double ss = Math.min(anchor.getWidth(), anchor.getHeight());
- return ss / 8;
+ return ss / 8.;
}
});
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
double ss = Math.min(anchor.getWidth(), anchor.getHeight());
- return ss / 16;
+ return ss / 16.;
}
});
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
double ss = Math.min(anchor.getWidth(), anchor.getHeight());
- return ss / 32;
+ return ss / 32.;
}
});
@Override
double evaluate(Context ctx){
Rectangle2D anchor = ctx.getShapeAnchor();
- return anchor.getY() + anchor.getHeight()/2;
+ return anchor.getY() + anchor.getHeight()/2.;
}
});
builtInFormulas.put("wd2", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/2;
+ return ctx.getShapeAnchor().getWidth()/2.;
}
});
builtInFormulas.put("wd3", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/3;
+ return ctx.getShapeAnchor().getWidth()/3.;
}
});
builtInFormulas.put("wd4", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/4;
+ return ctx.getShapeAnchor().getWidth()/4.;
}
});
builtInFormulas.put("wd5", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/5;
+ return ctx.getShapeAnchor().getWidth()/5.;
}
});
builtInFormulas.put("wd6", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/6;
+ return ctx.getShapeAnchor().getWidth()/6.;
}
});
builtInFormulas.put("wd8", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/8;
+ return ctx.getShapeAnchor().getWidth()/8.;
}
});
builtInFormulas.put("wd10", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/10;
+ return ctx.getShapeAnchor().getWidth()/10.;
}
});
builtInFormulas.put("wd32", new Formula(){
@Override
double evaluate(Context ctx){
- return ctx.getShapeAnchor().getWidth()/32;
+ return ctx.getShapeAnchor().getWidth()/32.;
}
});
}