/*
* [CMPApplet.java]
*
* Summary: Generate HTML to invoke a stanrdard CMP Applet.
*
* Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com
*
* Licence: This software may be copied and used freely for any purpose but military.
* http://mindprod.com/contact/nonmil.html
*
* Requires: JDK 1.8+
*
* Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/
*
* Version History:
* 1.0 2009-04-28 initial version
* 1.1 2009-04-28 put Java version up front
*/
package com.mindprod.htmlmacros.macro;
import com.mindprod.fastcat.FastCat;
import com.mindprod.htmlmacros.support.Tools;
import static com.mindprod.htmlmacros.macro.Global.configuration;
import static java.lang.System.*;
/**
* Generate HTML to invoke a stanrdard CMP Applet.
*
* @author Roedy Green, Canadian Mind Products
* @version 1.1 2009-04-28 put Java version up front
* @see com.mindprod.htmlmacros.macro.CurrCon
* @since 2009
*/
public final class CMPApplet extends Macro
{
/**
* suffix for a tag
*/
private static final String TAG_TAIL = ">\n";
/**
* how to use the macro, nothing to do with signed/unsigned. Java figures that out from the jar.
*/
private static final String USAGE = "\ntry ";
// TODO: implement the
*
* @return expanded macro HTML
*/
private String expandWithHTML4( String pk, String className, int width, int height, String jdk, String params )
{
final FastCat sb = new FastCat( 20 );
sb.append( "