Package com.confluenity.jaylen.io

Examples of com.confluenity.jaylen.io.JsrcFile.readFrame()


    }
    Rectangle rectangle = ((Canvas) event.widget).getBounds();
    event.gc.setForeground(event.display.getSystemColor(SWT.COLOR_DARK_GRAY));
    event.gc.drawFocus(5, 5, rectangle.width - 15, rectangle.height - 15);
    try {
      JsrcFile.Frame frame = jsrc.readFrame(f);
      double size = Double.parseDouble(jsrc.getHeader().getItem("size"));
      double halfSize = size*0.5;
      for (JsrcFile.Frame.Particle particle : frame.getParticles()) {
        int x = (int)(((particle.getRx() + halfSize) / size) * (double)(rectangle.width - 20));
        int y = (int)(((halfSize - particle.getRy()) / size) * (double)(rectangle.height - 20));
View Full Code Here


  private JsrcFile.Frame getFrame() throws IOException {
    final JsrcFile jsrc = context.getJsrcFile(context.getSelectedFile());
    if (jsrc == null) {
      return null;
    }
    return jsrc.readFrame(context.getSelectedFrame(jsrc.getUuid()));
  }

  private void exportToXlsx(final FileAssistant.FileDescriptor fileName) {
    final Long start = System.currentTimeMillis();
    short rowNum = 0;
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.