mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 21:15:09 +00:00
wip
This commit is contained in:
parent
eddf1c5470
commit
f4221e340a
@ -40,7 +40,7 @@ import net.sourceforge.plantuml.core.Diagram;
|
|||||||
import net.sourceforge.plantuml.core.ImageData;
|
import net.sourceforge.plantuml.core.ImageData;
|
||||||
import net.sourceforge.plantuml.error.PSystemError;
|
import net.sourceforge.plantuml.error.PSystemError;
|
||||||
|
|
||||||
//::uncomment when CORE
|
//::uncomment when __CORE__
|
||||||
//import com.leaningtech.client.Global;
|
//import com.leaningtech.client.Global;
|
||||||
//::done
|
//::done
|
||||||
|
|
||||||
@ -55,10 +55,10 @@ public class JsonResult {
|
|||||||
|
|
||||||
private Object done() {
|
private Object done() {
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return Global.JSString(sb.toString());
|
// return Global.JSString(sb.toString());
|
||||||
// ::done
|
// ::done
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
package com.plantuml.api.cheerpj;
|
package com.plantuml.api.cheerpj;
|
||||||
|
|
||||||
public class StaticMemory {
|
public class StaticMemory {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
public static String cheerpjPath = "/app/";
|
public static String cheerpjPath = "/app/";
|
||||||
public static String elementIdDebugJava;
|
public static String elementIdDebugJava;
|
||||||
|
@ -37,7 +37,7 @@ package com.plantuml.api.cheerpj;
|
|||||||
|
|
||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
//::uncomment when CORE
|
//::uncomment when __CORE__
|
||||||
//import com.leaningtech.client.Document;
|
//import com.leaningtech.client.Document;
|
||||||
//import com.leaningtech.client.Element;
|
//import com.leaningtech.client.Element;
|
||||||
//import com.leaningtech.client.Global;
|
//import com.leaningtech.client.Global;
|
||||||
@ -48,10 +48,10 @@ public class WasmLog {
|
|||||||
public static long start;
|
public static long start;
|
||||||
|
|
||||||
public static void log(String message) {
|
public static void log(String message) {
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
Log.info(message);
|
Log.info(message);
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// try {
|
// try {
|
||||||
// if (start > 0) {
|
// if (start > 0) {
|
||||||
// final long duration = System.currentTimeMillis() - start;
|
// final long duration = System.currentTimeMillis() - start;
|
||||||
|
@ -55,7 +55,7 @@ import net.sourceforge.plantuml.core.Diagram;
|
|||||||
import net.sourceforge.plantuml.error.PSystemError;
|
import net.sourceforge.plantuml.error.PSystemError;
|
||||||
import net.sourceforge.plantuml.preproc.Defines;
|
import net.sourceforge.plantuml.preproc.Defines;
|
||||||
|
|
||||||
//::uncomment when CORE
|
//::uncomment when __CORE__
|
||||||
//import com.leaningtech.client.Global;
|
//import com.leaningtech.client.Global;
|
||||||
//::done
|
//::done
|
||||||
|
|
||||||
@ -69,10 +69,10 @@ public class Info {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
result = "";
|
result = "";
|
||||||
}
|
}
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
return result;
|
return result;
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return Global.JSString(result);
|
// return Global.JSString(result);
|
||||||
// ::done
|
// ::done
|
||||||
}
|
}
|
||||||
@ -85,10 +85,10 @@ public class Info {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
result = "";
|
result = "";
|
||||||
}
|
}
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
return result;
|
return result;
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return Global.JSString(result);
|
// return Global.JSString(result);
|
||||||
// ::done
|
// ::done
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ import net.sourceforge.plantuml.error.PSystemError;
|
|||||||
import net.sourceforge.plantuml.klimt.color.ColorMapper;
|
import net.sourceforge.plantuml.klimt.color.ColorMapper;
|
||||||
import net.sourceforge.plantuml.preproc.Defines;
|
import net.sourceforge.plantuml.preproc.Defines;
|
||||||
|
|
||||||
//::uncomment when CORE
|
//::uncomment when __CORE__
|
||||||
//import com.leaningtech.client.Global;
|
//import com.leaningtech.client.Global;
|
||||||
//::done
|
//::done
|
||||||
|
|
||||||
@ -142,10 +142,10 @@ public class Png {
|
|||||||
os64.close();
|
os64.close();
|
||||||
|
|
||||||
final String base64 = os64.toString();
|
final String base64 = os64.toString();
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
return base64;
|
return base64;
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return Global.JSString(base64);
|
// return Global.JSString(base64);
|
||||||
// ::done
|
// ::done
|
||||||
|
|
||||||
|
@ -57,11 +57,12 @@ import net.sourceforge.plantuml.error.PSystemError;
|
|||||||
import net.sourceforge.plantuml.klimt.color.ColorMapper;
|
import net.sourceforge.plantuml.klimt.color.ColorMapper;
|
||||||
import net.sourceforge.plantuml.preproc.Defines;
|
import net.sourceforge.plantuml.preproc.Defines;
|
||||||
|
|
||||||
//::uncomment when CORE
|
//::uncomment when __CORE__
|
||||||
//import com.leaningtech.client.Global;
|
//import com.leaningtech.client.Global;
|
||||||
//::done
|
//::done
|
||||||
|
|
||||||
public class Svg {
|
public class Svg {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
public static Object convert(String mode, String text) {
|
public static Object convert(String mode, String text) {
|
||||||
final long start = System.currentTimeMillis();
|
final long start = System.currentTimeMillis();
|
||||||
@ -97,10 +98,10 @@ public class Svg {
|
|||||||
WasmLog.log("Done!");
|
WasmLog.log("Done!");
|
||||||
svgos.close();
|
svgos.close();
|
||||||
final String svg = svgos.toString();
|
final String svg = svgos.toString();
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
return svg;
|
return svg;
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return Global.JSString(svg);
|
// return Global.JSString(svg);
|
||||||
// ::done
|
// ::done
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ import ext.plantuml.com.ctreber.aclib.sort.QuickSort;
|
|||||||
* @author Christian Treber, ct@ctreber.com
|
* @author Christian Treber, ct@ctreber.com
|
||||||
*/
|
*/
|
||||||
public class ACearth {
|
public class ACearth {
|
||||||
// :: remove folder when CORE
|
// :: remove folder when __CORE__
|
||||||
public static final String VERSION = "1.1";
|
public static final String VERSION = "1.1";
|
||||||
public static final String BUILD = "22.11.2002 004";
|
public static final String BUILD = "22.11.2002 004";
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ import ext.plantuml.com.ctreber.aclib.gui.MonitoredObject;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private Map fValues = new HashMap();
|
private Map fValues = new HashMap();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,6 +15,7 @@ import ext.plantuml.com.ctreber.acearth.ACearth;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CanvasACearth extends PixelCanvas {
|
public class CanvasACearth extends PixelCanvas {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
public CanvasACearth(ACearth pParent, int pWidth, int pHeight) {
|
public CanvasACearth(ACearth pParent, int pWidth, int pHeight) {
|
||||||
super(pWidth, pHeight);
|
super(pWidth, pHeight);
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import ext.plantuml.com.ctreber.acearth.plugins.Plugin;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PluginMarkers extends Plugin {
|
public class PluginMarkers extends Plugin {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private List fMarkers;
|
private List fMarkers;
|
||||||
|
|
||||||
// private String fMarkerFileName = ACearth.getHomeDir() +
|
// private String fMarkerFileName = ACearth.getHomeDir() +
|
||||||
|
@ -14,6 +14,7 @@ import ext.plantuml.com.ctreber.acearth.util.Toolkit;
|
|||||||
*/
|
*/
|
||||||
abstract public class Projection
|
abstract public class Projection
|
||||||
{
|
{
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
// Target information
|
// Target information
|
||||||
int fImageHeight;
|
int fImageHeight;
|
||||||
int fImageWidth;
|
int fImageWidth;
|
||||||
|
@ -12,6 +12,7 @@ import java.awt.Color;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface RenderTarget {
|
public interface RenderTarget {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
public void setPixel(int pX, int pY, int pA, int pR, int pG, int pB);
|
public void setPixel(int pX, int pY, int pA, int pR, int pG, int pB);
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ package ext.plantuml.com.ctreber.acearth.scanbit;
|
|||||||
*/
|
*/
|
||||||
abstract public class ScanBitGenerator
|
abstract public class ScanBitGenerator
|
||||||
{
|
{
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
int fImageHeight;
|
int fImageHeight;
|
||||||
int fImageWidth;
|
int fImageWidth;
|
||||||
protected ScanBit[] fScanBitsArray;
|
protected ScanBit[] fScanBitsArray;
|
||||||
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||||||
*/
|
*/
|
||||||
public class DotGeneratorStars extends ScanDotGenerator
|
public class DotGeneratorStars extends ScanDotGenerator
|
||||||
{
|
{
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private final int fImageWidth;
|
private final int fImageWidth;
|
||||||
private final int fImageHeight;
|
private final int fImageHeight;
|
||||||
private int fBigStars;
|
private int fBigStars;
|
||||||
|
@ -17,6 +17,7 @@ import ext.plantuml.com.ctreber.acearth.util.Point3D;
|
|||||||
*/
|
*/
|
||||||
abstract public class Shader
|
abstract public class Shader
|
||||||
{
|
{
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private static final Color COLOR_SPACE = Color.black;
|
private static final Color COLOR_SPACE = Color.black;
|
||||||
private static final Color COLOR_STAR = Color.white;
|
private static final Color COLOR_STAR = Color.white;
|
||||||
private static final Color COLOR_WATER = Color.blue;
|
private static final Color COLOR_WATER = Color.blue;
|
||||||
|
@ -9,6 +9,7 @@ package ext.plantuml.com.ctreber.acearth.util;
|
|||||||
*/
|
*/
|
||||||
public class Point3D
|
public class Point3D
|
||||||
{
|
{
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private double fX;
|
private double fX;
|
||||||
private double fY;
|
private double fY;
|
||||||
private double fZ;
|
private double fZ;
|
||||||
|
@ -9,7 +9,7 @@ package ext.plantuml.com.ctreber.aclib.gui;
|
|||||||
*/
|
*/
|
||||||
public class MOBoolean extends MonitoredObject
|
public class MOBoolean extends MonitoredObject
|
||||||
{
|
{
|
||||||
// :: remove folder when CORE
|
// :: remove folder when __CORE__
|
||||||
private boolean fBoolean;
|
private boolean fBoolean;
|
||||||
|
|
||||||
public MOBoolean()
|
public MOBoolean()
|
||||||
|
@ -11,6 +11,7 @@ package ext.plantuml.com.ctreber.aclib.gui;
|
|||||||
*/
|
*/
|
||||||
public class MOString extends MonitoredObject
|
public class MOString extends MonitoredObject
|
||||||
{
|
{
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private String fString;
|
private String fString;
|
||||||
|
|
||||||
public MOString(String pString)
|
public MOString(String pString)
|
||||||
|
@ -11,7 +11,8 @@ import java.util.Comparator;
|
|||||||
*/
|
*/
|
||||||
abstract public class CTSort
|
abstract public class CTSort
|
||||||
{
|
{
|
||||||
// :: remove folder when CORE
|
// ::remove folder when __HAXE__
|
||||||
|
// :: remove folder when __CORE__
|
||||||
public void sort(Object[] items)
|
public void sort(Object[] items)
|
||||||
{
|
{
|
||||||
sort(items, new DefaultComparator());
|
sort(items, new DefaultComparator());
|
||||||
|
@ -24,7 +24,8 @@ import java.util.Hashtable;
|
|||||||
* @author Sean Owen
|
* @author Sean Owen
|
||||||
*/
|
*/
|
||||||
public final class BarcodeFormat {
|
public final class BarcodeFormat {
|
||||||
// :: remove folder when CORE
|
// ::remove folder when __HAXE__
|
||||||
|
// :: remove folder when __CORE__
|
||||||
|
|
||||||
// No, we can't use an enum here. J2ME doesn't support it.
|
// No, we can't use an enum here. J2ME doesn't support it.
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ import ext.plantuml.com.google.zxing.common.BitMatrix;
|
|||||||
* @author Sean Owen
|
* @author Sean Owen
|
||||||
*/
|
*/
|
||||||
public final class MatrixToImageWriter {
|
public final class MatrixToImageWriter {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
private static final int BLACK = 0xFF000000;
|
private static final int BLACK = 0xFF000000;
|
||||||
private static final int WHITE = 0xFFFFFFFF;
|
private static final int WHITE = 0xFFFFFFFF;
|
||||||
|
@ -26,6 +26,7 @@ package ext.plantuml.com.google.zxing.common.reedsolomon;
|
|||||||
* @author Sean Owen
|
* @author Sean Owen
|
||||||
*/
|
*/
|
||||||
final class GF256Poly {
|
final class GF256Poly {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
private final GF256 field;
|
private final GF256 field;
|
||||||
private final int[] coefficients;
|
private final int[] coefficients;
|
||||||
|
@ -25,6 +25,7 @@ import ext.plantuml.com.google.zxing.FormatException;
|
|||||||
* @author bbrown@google.com (Brian Brown)
|
* @author bbrown@google.com (Brian Brown)
|
||||||
*/
|
*/
|
||||||
public final class Version {
|
public final class Version {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
private static final Version[] VERSIONS = buildVersions();
|
private static final Version[] VERSIONS = buildVersions();
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ import ext.plantuml.com.google.zxing.common.BitMatrix;
|
|||||||
* @author Sean Owen
|
* @author Sean Owen
|
||||||
*/
|
*/
|
||||||
abstract class DataMask {
|
abstract class DataMask {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See ISO 18004:2006 6.8.1
|
* See ISO 18004:2006 6.8.1
|
||||||
|
@ -21,6 +21,7 @@ package ext.plantuml.com.google.zxing.qrcode.encoder;
|
|||||||
* @author dswitkin@google.com (Daniel Switkin) - ported from C++
|
* @author dswitkin@google.com (Daniel Switkin) - ported from C++
|
||||||
*/
|
*/
|
||||||
public final class MaskUtil {
|
public final class MaskUtil {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
private MaskUtil() {
|
private MaskUtil() {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
@ -26,6 +26,7 @@ import java.lang.annotation.Target;
|
|||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target({ ElementType.CONSTRUCTOR, ElementType.METHOD })
|
@Target({ ElementType.CONSTRUCTOR, ElementType.METHOD })
|
||||||
public @interface Comment {
|
public @interface Comment {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
String comment();
|
String comment();
|
||||||
|
|
||||||
|
@ -60,6 +60,7 @@ import smetana.core.ZType;
|
|||||||
import smetana.core.size_t;
|
import smetana.core.size_t;
|
||||||
|
|
||||||
public class dtopen__c {
|
public class dtopen__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
//1 9k44uhd5foylaeoekf3llonjq
|
//1 9k44uhd5foylaeoekf3llonjq
|
||||||
// extern Dtmethod_t* Dtset
|
// extern Dtmethod_t* Dtset
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@ import smetana.core.Memory;
|
|||||||
import smetana.core.__ptr__;
|
import smetana.core.__ptr__;
|
||||||
|
|
||||||
public class id__c {
|
public class id__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
public static CFunction idopen = new CFunctionAbstract("idopen") {
|
public static CFunction idopen = new CFunctionAbstract("idopen") {
|
||||||
|
|
||||||
|
@ -111,6 +111,7 @@ import smetana.core.ZType;
|
|||||||
import smetana.core.__ptr__;
|
import smetana.core.__ptr__;
|
||||||
|
|
||||||
public class splines__c {
|
public class splines__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ import smetana.core.CString;
|
|||||||
import smetana.core.Globals;
|
import smetana.core.Globals;
|
||||||
|
|
||||||
public class class1__c {
|
public class class1__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
|
|
||||||
@Reviewed(when = "13/11/2020")
|
@Reviewed(when = "13/11/2020")
|
||||||
|
@ -59,6 +59,7 @@ import smetana.core.CString;
|
|||||||
import smetana.core.Globals;
|
import smetana.core.Globals;
|
||||||
|
|
||||||
public class gvc__c {
|
public class gvc__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
|
|
||||||
//3 f3vdhir2c7dz3pvmx9d3m4lx1
|
//3 f3vdhir2c7dz3pvmx9d3m4lx1
|
||||||
|
@ -67,6 +67,7 @@ import smetana.core.Memory;
|
|||||||
import smetana.core.__ptr__;
|
import smetana.core.__ptr__;
|
||||||
|
|
||||||
public class index__c {
|
public class index__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
|
|
||||||
//3 1rfaqe5urty5uyp5xb2r0idce
|
//3 1rfaqe5urty5uyp5xb2r0idce
|
||||||
|
@ -58,6 +58,7 @@ import smetana.core.CString;
|
|||||||
import smetana.core.Globals;
|
import smetana.core.Globals;
|
||||||
|
|
||||||
public class pack__c {
|
public class pack__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ import smetana.core.__ptr__;
|
|||||||
import smetana.core.jmp_buf;
|
import smetana.core.jmp_buf;
|
||||||
|
|
||||||
public class shortest__c {
|
public class shortest__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
//1 baedz5i9est5csw3epz3cv7z
|
//1 baedz5i9est5csw3epz3cv7z
|
||||||
// typedef Ppoly_t Ppolyline_t
|
// typedef Ppoly_t Ppolyline_t
|
||||||
|
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
package gen.plugin.dot_layout;
|
package gen.plugin.dot_layout;
|
||||||
|
|
||||||
public class gvlayout_dot_layout__c {
|
public class gvlayout_dot_layout__c {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
//1 2digov3edok6d5srhgtlmrycs
|
//1 2digov3edok6d5srhgtlmrycs
|
||||||
// extern lt_symlist_t lt_preloaded_symbols[]
|
// extern lt_symlist_t lt_preloaded_symbols[]
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ import smetana.core.UnsupportedStarStruct;
|
|||||||
import smetana.core.__ptr__;
|
import smetana.core.__ptr__;
|
||||||
|
|
||||||
public class ST_Agrec_s extends UnsupportedStarStruct {
|
public class ST_Agrec_s extends UnsupportedStarStruct {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
public CString name;
|
public CString name;
|
||||||
public ST_Agrec_s next;
|
public ST_Agrec_s next;
|
||||||
|
@ -48,7 +48,8 @@ import jcckit.util.Factory;
|
|||||||
* @author Franz-Josef Elmer
|
* @author Franz-Josef Elmer
|
||||||
*/
|
*/
|
||||||
public class GraphicsPlotCanvas extends PlotCanvas {
|
public class GraphicsPlotCanvas extends PlotCanvas {
|
||||||
// ::remove folder when CORE
|
// ::remove folder when __CORE__
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
/** Key of a configuration parameter. */
|
/** Key of a configuration parameter. */
|
||||||
public static final String BACKGROUND_KEY = "background";
|
public static final String BACKGROUND_KEY = "background";
|
||||||
public static final String FOREGROUND_KEY = "foreground";
|
public static final String FOREGROUND_KEY = "foreground";
|
||||||
|
@ -26,6 +26,7 @@ import jcckit.util.ConfigParameters;
|
|||||||
* @author Franz-Josef Elmer
|
* @author Franz-Josef Elmer
|
||||||
*/
|
*/
|
||||||
public class DataCurve extends DataContainer implements DataElement {
|
public class DataCurve extends DataContainer implements DataElement {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
/** Config parameter key. */
|
/** Config parameter key. */
|
||||||
public static final String X_KEY = "x",
|
public static final String X_KEY = "x",
|
||||||
Y_KEY = "y",
|
Y_KEY = "y",
|
||||||
|
@ -24,6 +24,7 @@ package jcckit.graphic;
|
|||||||
* @author Franz-Josef Elmer
|
* @author Franz-Josef Elmer
|
||||||
*/
|
*/
|
||||||
public class Oval extends Rectangle {
|
public class Oval extends Rectangle {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
/**
|
/**
|
||||||
* Creates a new instance.
|
* Creates a new instance.
|
||||||
* @param center The position of the center of this element.
|
* @param center The position of the center of this element.
|
||||||
|
@ -36,6 +36,7 @@ import jcckit.util.Factory;
|
|||||||
* @author Franz-Josef Elmer
|
* @author Franz-Josef Elmer
|
||||||
*/
|
*/
|
||||||
public class SimpleCurve implements Curve {
|
public class SimpleCurve implements Curve {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
/** Configuration parameter key. */
|
/** Configuration parameter key. */
|
||||||
public static final String SYMBOL_FACTORY_KEY = "symbolFactory",
|
public static final String SYMBOL_FACTORY_KEY = "symbolFactory",
|
||||||
WITH_LINE_KEY = "withLine",
|
WITH_LINE_KEY = "withLine",
|
||||||
|
@ -36,6 +36,7 @@ import jcckit.graphic.GraphPoint;
|
|||||||
* @author Franz-Josef Elmer
|
* @author Franz-Josef Elmer
|
||||||
*/
|
*/
|
||||||
public class Transformation {
|
public class Transformation {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private final double _scale, _x0, _y0;
|
private final double _scale, _x0, _y0;
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -31,6 +31,7 @@ import jcckit.util.Util;
|
|||||||
* @author Franz-Josef Elmer
|
* @author Franz-Josef Elmer
|
||||||
*/
|
*/
|
||||||
public class CartesianTransformation implements Transformation {
|
public class CartesianTransformation implements Transformation {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private final boolean _xLogScale;
|
private final boolean _xLogScale;
|
||||||
private final double _xOffset;
|
private final double _xOffset;
|
||||||
private final double _xScale;
|
private final double _xScale;
|
||||||
|
@ -27,6 +27,7 @@ package jcckit.util;
|
|||||||
* @author Franz-Josef Elmer
|
* @author Franz-Josef Elmer
|
||||||
*/
|
*/
|
||||||
public class ConfigParametersBasedConfigData implements ConfigData {
|
public class ConfigParametersBasedConfigData implements ConfigData {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
private ConfigParameters _config;
|
private ConfigParameters _config;
|
||||||
private ConfigParameters _defaultConfig;
|
private ConfigParameters _defaultConfig;
|
||||||
|
|
||||||
|
@ -361,7 +361,7 @@ public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy,
|
|||||||
return result.toArray(new String[result.size()]);
|
return result.toArray(new String[result.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private void createFilesGraphml(OutputStream suggestedFile) throws IOException {
|
private void createFilesGraphml(OutputStream suggestedFile) throws IOException {
|
||||||
final CucaDiagramGraphmlMaker maker = new CucaDiagramGraphmlMaker(this);
|
final CucaDiagramGraphmlMaker maker = new CucaDiagramGraphmlMaker(this);
|
||||||
maker.createFiles(suggestedFile);
|
maker.createFiles(suggestedFile);
|
||||||
@ -399,7 +399,7 @@ public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy,
|
|||||||
throws IOException {
|
throws IOException {
|
||||||
final FileFormat fileFormat = fileFormatOption.getFileFormat();
|
final FileFormat fileFormat = fileFormatOption.getFileFormat();
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (fileFormat == FileFormat.ATXT || fileFormat == FileFormat.UTXT) {
|
if (fileFormat == FileFormat.ATXT || fileFormat == FileFormat.UTXT) {
|
||||||
try {
|
try {
|
||||||
createFilesTxt(os, index, fileFormat);
|
createFilesTxt(os, index, fileFormat);
|
||||||
@ -431,13 +431,13 @@ public abstract class CucaDiagram extends UmlDiagram implements GroupHierarchy,
|
|||||||
|
|
||||||
this.eventuallyBuildPhantomGroups();
|
this.eventuallyBuildPhantomGroups();
|
||||||
final CucaDiagramFileMaker maker;
|
final CucaDiagramFileMaker maker;
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (this.isUseElk())
|
if (this.isUseElk())
|
||||||
maker = new CucaDiagramFileMakerElk(this, fileFormatOption.getDefaultStringBounder(getSkinParam()));
|
maker = new CucaDiagramFileMakerElk(this, fileFormatOption.getDefaultStringBounder(getSkinParam()));
|
||||||
else if (this.isUseSmetana())
|
else if (this.isUseSmetana())
|
||||||
// ::done
|
// ::done
|
||||||
maker = new CucaDiagramFileMakerSmetana(this, fileFormatOption.getDefaultStringBounder(getSkinParam()));
|
maker = new CucaDiagramFileMakerSmetana(this, fileFormatOption.getDefaultStringBounder(getSkinParam()));
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
else
|
else
|
||||||
maker = new CucaDiagramFileMakerSvek(this);
|
maker = new CucaDiagramFileMakerSvek(this);
|
||||||
// ::done
|
// ::done
|
||||||
|
@ -113,7 +113,7 @@ import net.sourceforge.plantuml.url.Url;
|
|||||||
|
|
||||||
public class ImageBuilder {
|
public class ImageBuilder {
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private Animation animation;
|
private Animation animation;
|
||||||
// ::done
|
// ::done
|
||||||
private boolean annotations;
|
private boolean annotations;
|
||||||
@ -223,7 +223,7 @@ public class ImageBuilder {
|
|||||||
public ImageBuilder styled(TitledDiagram diagram) {
|
public ImageBuilder styled(TitledDiagram diagram) {
|
||||||
skinParam = diagram.getSkinParam();
|
skinParam = diagram.getSkinParam();
|
||||||
stringBounder = fileFormatOption.getDefaultStringBounder(skinParam);
|
stringBounder = fileFormatOption.getDefaultStringBounder(skinParam);
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
animation = diagram.getAnimation();
|
animation = diagram.getAnimation();
|
||||||
// ::done
|
// ::done
|
||||||
annotations = true;
|
annotations = true;
|
||||||
@ -246,7 +246,7 @@ public class ImageBuilder {
|
|||||||
udrawable = annotatedWorker.addAdd((TextBlock) udrawable);
|
udrawable = annotatedWorker.addAdd((TextBlock) udrawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
switch (fileFormatOption.getFileFormat()) {
|
switch (fileFormatOption.getFileFormat()) {
|
||||||
case MJPEG:
|
case MJPEG:
|
||||||
return writeImageMjpeg(os);
|
return writeImageMjpeg(os);
|
||||||
@ -255,10 +255,10 @@ public class ImageBuilder {
|
|||||||
default:
|
default:
|
||||||
return writeImageInternal(os, animation);
|
return writeImageInternal(os, animation);
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return writeImageInternal(os);
|
// return writeImageInternal(os);
|
||||||
// ::done
|
// ::done
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
}
|
}
|
||||||
// ::done
|
// ::done
|
||||||
}
|
}
|
||||||
@ -270,16 +270,16 @@ public class ImageBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private ImageData writeImageInternal(OutputStream os, Animation animationArg) throws IOException {
|
private ImageData writeImageInternal(OutputStream os, Animation animationArg) throws IOException {
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// private ImageData writeImageInternal(OutputStream os) throws IOException {
|
// private ImageData writeImageInternal(OutputStream os) throws IOException {
|
||||||
// ::done
|
// ::done
|
||||||
XDimension2D dim = getFinalDimension();
|
XDimension2D dim = getFinalDimension();
|
||||||
double dx = 0;
|
double dx = 0;
|
||||||
double dy = 0;
|
double dy = 0;
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (animationArg != null) {
|
if (animationArg != null) {
|
||||||
final MinMax minmax = animationArg.getMinMax(dim);
|
final MinMax minmax = animationArg.getMinMax(dim);
|
||||||
animationArg.setDimension(dim);
|
animationArg.setDimension(dim);
|
||||||
@ -294,11 +294,11 @@ public class ImageBuilder {
|
|||||||
if (scaleFactor <= 0)
|
if (scaleFactor <= 0)
|
||||||
throw new IllegalStateException("Bad scaleFactor");
|
throw new IllegalStateException("Bad scaleFactor");
|
||||||
WasmLog.log("...image drawing...");
|
WasmLog.log("...image drawing...");
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
UGraphic ug = createUGraphic(dim, animationArg, dx, dy, scaleFactor,
|
UGraphic ug = createUGraphic(dim, animationArg, dx, dy, scaleFactor,
|
||||||
titledDiagram == null ? new Pragma() : titledDiagram.getPragma());
|
titledDiagram == null ? new Pragma() : titledDiagram.getPragma());
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// UGraphic ug = createUGraphic(dim, dx, dy, scaleFactor,
|
// UGraphic ug = createUGraphic(dim, dx, dy, scaleFactor,
|
||||||
// titledDiagram == null ? new Pragma() : titledDiagram.getPragma());
|
// titledDiagram == null ? new Pragma() : titledDiagram.getPragma());
|
||||||
// ::done
|
// ::done
|
||||||
@ -330,7 +330,7 @@ public class ImageBuilder {
|
|||||||
|
|
||||||
UStroke stroke = skinParam.getThickness(LineParam.diagramBorder, null);
|
UStroke stroke = skinParam.getThickness(LineParam.diagramBorder, null);
|
||||||
if (stroke == null && color != null)
|
if (stroke == null && color != null)
|
||||||
stroke = new UStroke();
|
stroke = UStroke.simple();
|
||||||
if (stroke == null)
|
if (stroke == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -368,7 +368,7 @@ public class ImageBuilder {
|
|||||||
return ug;
|
return ug;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private ImageData writeImageMjpeg(OutputStream os) throws IOException {
|
private ImageData writeImageMjpeg(OutputStream os) throws IOException {
|
||||||
|
|
||||||
final XDimension2D dim = getFinalDimension();
|
final XDimension2D dim = getFinalDimension();
|
||||||
@ -427,11 +427,11 @@ public class ImageBuilder {
|
|||||||
}
|
}
|
||||||
// ::done
|
// ::done
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private UGraphic createUGraphic(final XDimension2D dim, Animation animationArg, double dx, double dy,
|
private UGraphic createUGraphic(final XDimension2D dim, Animation animationArg, double dx, double dy,
|
||||||
double scaleFactor, Pragma pragma) {
|
double scaleFactor, Pragma pragma) {
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// private UGraphic createUGraphic(final XDimension2D dim, double dx, double dy,
|
// private UGraphic createUGraphic(final XDimension2D dim, double dx, double dy,
|
||||||
// double scaleFactor, Pragma pragma) {
|
// double scaleFactor, Pragma pragma) {
|
||||||
// ::done
|
// ::done
|
||||||
@ -439,17 +439,17 @@ public class ImageBuilder {
|
|||||||
switch (fileFormatOption.getFileFormat()) {
|
switch (fileFormatOption.getFileFormat()) {
|
||||||
case PNG:
|
case PNG:
|
||||||
case RAW:
|
case RAW:
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
return createUGraphicPNG(scaleFactor, dim, animationArg, dx, dy, fileFormatOption.getWatermark(),
|
return createUGraphicPNG(scaleFactor, dim, animationArg, dx, dy, fileFormatOption.getWatermark(),
|
||||||
fileFormatOption.getFileFormat());
|
fileFormatOption.getFileFormat());
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return createUGraphicPNG(scaleFactor, dim, dx, dy,
|
// return createUGraphicPNG(scaleFactor, dim, dx, dy,
|
||||||
// fileFormatOption.getWatermark(), fileFormatOption.getFileFormat());
|
// fileFormatOption.getWatermark(), fileFormatOption.getFileFormat());
|
||||||
// ::done
|
// ::done
|
||||||
case SVG:
|
case SVG:
|
||||||
return createUGraphicSVG(scaleFactor, dim, pragma);
|
return createUGraphicSVG(scaleFactor, dim, pragma);
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
case EPS:
|
case EPS:
|
||||||
return new UGraphicEps(backcolor, colorMapper, stringBounder, EpsStrategy.getDefault2());
|
return new UGraphicEps(backcolor, colorMapper, stringBounder, EpsStrategy.getDefault2());
|
||||||
case EPS_TEXT:
|
case EPS_TEXT:
|
||||||
@ -498,11 +498,11 @@ public class ImageBuilder {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// private UGraphic createUGraphicPNG(double scaleFactor, final XDimension2D
|
// private UGraphic createUGraphicPNG(double scaleFactor, final XDimension2D
|
||||||
// dim, double dx, double dy, String watermark, FileFormat format) {
|
// dim, double dx, double dy, String watermark, FileFormat format) {
|
||||||
// ::done
|
// ::done
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private UGraphic createUGraphicPNG(double scaleFactor, final XDimension2D dim, Animation affineTransforms,
|
private UGraphic createUGraphicPNG(double scaleFactor, final XDimension2D dim, Animation affineTransforms,
|
||||||
double dx, double dy, String watermark, FileFormat format) {
|
double dx, double dy, String watermark, FileFormat format) {
|
||||||
// ::done
|
// ::done
|
||||||
@ -519,11 +519,11 @@ public class ImageBuilder {
|
|||||||
(int) (dim.getHeight() * scaleFactor), pngBackColor, stringBounder);
|
(int) (dim.getHeight() * scaleFactor), pngBackColor, stringBounder);
|
||||||
final Graphics2D graphics2D = builder.getGraphics2D();
|
final Graphics2D graphics2D = builder.getGraphics2D();
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
final UGraphicG2d ug = new UGraphicG2d(backcolor, fileFormatOption.getColorMapper(), stringBounder, graphics2D,
|
final UGraphicG2d ug = new UGraphicG2d(backcolor, fileFormatOption.getColorMapper(), stringBounder, graphics2D,
|
||||||
scaleFactor, affineTransforms == null ? null : affineTransforms.getFirst(), dx, dy, format);
|
scaleFactor, affineTransforms == null ? null : affineTransforms.getFirst(), dx, dy, format);
|
||||||
// ::done
|
// ::done
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// final UGraphicG2d ug = new UGraphicG2d(backcolor,
|
// final UGraphicG2d ug = new UGraphicG2d(backcolor,
|
||||||
// fileFormatOption.getColorMapper(), stringBounder, graphics2D,
|
// fileFormatOption.getColorMapper(), stringBounder, graphics2D,
|
||||||
// scaleFactor, dx, dy, format);
|
// scaleFactor, dx, dy, format);
|
||||||
|
@ -44,6 +44,7 @@ import net.sourceforge.plantuml.klimt.shape.TextBlock;
|
|||||||
import net.sourceforge.plantuml.klimt.shape.UEmpty;
|
import net.sourceforge.plantuml.klimt.shape.UEmpty;
|
||||||
|
|
||||||
public class SpecialText implements UShapeIgnorableForCompression {
|
public class SpecialText implements UShapeIgnorableForCompression {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
private final TextBlock title;
|
private final TextBlock title;
|
||||||
|
|
||||||
|
@ -68,6 +68,7 @@ import net.sourceforge.plantuml.version.License;
|
|||||||
import net.sourceforge.plantuml.version.Version;
|
import net.sourceforge.plantuml.version.Version;
|
||||||
|
|
||||||
public abstract class AbstractPSystem implements Diagram {
|
public abstract class AbstractPSystem implements Diagram {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final UmlSource source;
|
private final UmlSource source;
|
||||||
private Scale scale;
|
private Scale scale;
|
||||||
@ -84,7 +85,7 @@ public abstract class AbstractPSystem implements Diagram {
|
|||||||
toAppend.append(Version.versionString());
|
toAppend.append(Version.versionString());
|
||||||
toAppend.append("(" + Version.compileTimeString() + ")\n");
|
toAppend.append("(" + Version.compileTimeString() + ")\n");
|
||||||
toAppend.append("(" + License.getCurrent() + " source distribution)\n");
|
toAppend.append("(" + License.getCurrent() + " source distribution)\n");
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
for (String name : OptionPrint.interestingProperties()) {
|
for (String name : OptionPrint.interestingProperties()) {
|
||||||
toAppend.append(name);
|
toAppend.append(name);
|
||||||
toAppend.append(BackSlash.CHAR_NEWLINE);
|
toAppend.append(BackSlash.CHAR_NEWLINE);
|
||||||
@ -186,7 +187,7 @@ public abstract class AbstractPSystem implements Diagram {
|
|||||||
// }
|
// }
|
||||||
return exportDiagramNow(os, index, fileFormatOption);
|
return exportDiagramNow(os, index, fileFormatOption);
|
||||||
} finally {
|
} finally {
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (OptionFlags.getInstance().isEnableStats())
|
if (OptionFlags.getInstance().isEnableStats())
|
||||||
StatsUtilsIncrement.onceMoreGenerate(System.currentTimeMillis() - now, getClass(),
|
StatsUtilsIncrement.onceMoreGenerate(System.currentTimeMillis() - now, getClass(),
|
||||||
fileFormatOption.getFileFormat());
|
fileFormatOption.getFileFormat());
|
||||||
|
@ -67,7 +67,8 @@ import java.io.OutputStream;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public class AnimatedGifEncoder {
|
public class AnimatedGifEncoder {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
protected int width; // image size
|
protected int width; // image size
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ import net.sourceforge.plantuml.cucadiagram.DisplaySection;
|
|||||||
import net.sourceforge.plantuml.klimt.creole.Display;
|
import net.sourceforge.plantuml.klimt.creole.Display;
|
||||||
|
|
||||||
public interface Annotated {
|
public interface Annotated {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public DisplayPositionned getTitle();
|
public DisplayPositionned getTitle();
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@ import net.sourceforge.plantuml.style.StyleSignatureBasic;
|
|||||||
import net.sourceforge.plantuml.svek.DecorateEntityImage;
|
import net.sourceforge.plantuml.svek.DecorateEntityImage;
|
||||||
|
|
||||||
public class AnnotatedBuilder {
|
public class AnnotatedBuilder {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final Annotated annotated;
|
private final Annotated annotated;
|
||||||
private final ISkinParam skinParam;
|
private final ISkinParam skinParam;
|
||||||
|
@ -43,6 +43,7 @@ import net.sourceforge.plantuml.style.ISkinParam;
|
|||||||
import net.sourceforge.plantuml.svek.DecorateEntityImage;
|
import net.sourceforge.plantuml.svek.DecorateEntityImage;
|
||||||
|
|
||||||
public class AnnotatedWorker {
|
public class AnnotatedWorker {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final Annotated annotated;
|
private final Annotated annotated;
|
||||||
private final ISkinParam skinParam;
|
private final ISkinParam skinParam;
|
||||||
|
@ -67,6 +67,7 @@ import net.sourceforge.plantuml.utils.StartUtils;
|
|||||||
import net.sourceforge.plantuml.version.Version;
|
import net.sourceforge.plantuml.version.Version;
|
||||||
|
|
||||||
public class BlockUml {
|
public class BlockUml {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final List<StringLocated> rawSource;
|
private final List<StringLocated> rawSource;
|
||||||
private final List<StringLocated> data;
|
private final List<StringLocated> data;
|
||||||
@ -85,7 +86,7 @@ public class BlockUml {
|
|||||||
this(convert(strings), Defines.createEmpty(), null, null, null);
|
this(convert(strings), Defines.createEmpty(), null, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
public String getEncodedUrl() throws IOException {
|
public String getEncodedUrl() throws IOException {
|
||||||
final Transcoder transcoder = TranscoderUtil.getDefaultTranscoder();
|
final Transcoder transcoder = TranscoderUtil.getDefaultTranscoder();
|
||||||
final String source = getDiagram().getSource().getPlainString();
|
final String source = getDiagram().getSource().getPlainString();
|
||||||
@ -150,7 +151,7 @@ public class BlockUml {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
public String getFileOrDirname() {
|
public String getFileOrDirname() {
|
||||||
if (OptionFlags.getInstance().isWord())
|
if (OptionFlags.getInstance().isWord())
|
||||||
return null;
|
return null;
|
||||||
@ -194,7 +195,7 @@ public class BlockUml {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private String internalEtag() {
|
private String internalEtag() {
|
||||||
try {
|
try {
|
||||||
final AsciiEncoder coder = new AsciiEncoder();
|
final AsciiEncoder coder = new AsciiEncoder();
|
||||||
|
@ -62,6 +62,7 @@ import net.sourceforge.plantuml.text.StringLocated;
|
|||||||
import net.sourceforge.plantuml.utils.StartUtils;
|
import net.sourceforge.plantuml.utils.StartUtils;
|
||||||
|
|
||||||
public final class BlockUmlBuilder implements DefinitionsContainer {
|
public final class BlockUmlBuilder implements DefinitionsContainer {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final List<BlockUml> blocks = new ArrayList<>();
|
private final List<BlockUml> blocks = new ArrayList<>();
|
||||||
private Set<FileWithSuffix> usedFiles = new HashSet<>();
|
private Set<FileWithSuffix> usedFiles = new HashSet<>();
|
||||||
|
@ -40,6 +40,7 @@ import java.util.List;
|
|||||||
import net.sourceforge.plantuml.preproc2.PreprocessorModeSet;
|
import net.sourceforge.plantuml.preproc2.PreprocessorModeSet;
|
||||||
|
|
||||||
public interface DefinitionsContainer extends PreprocessorModeSet {
|
public interface DefinitionsContainer extends PreprocessorModeSet {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public List<String> getDefinition(String name);
|
public List<String> getDefinition(String name);
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ import net.sourceforge.plantuml.style.ISkinSimple;
|
|||||||
import net.sourceforge.plantuml.text.StringLocated;
|
import net.sourceforge.plantuml.text.StringLocated;
|
||||||
|
|
||||||
public class EmbeddedDiagram extends AbstractTextBlock implements Line, Atom {
|
public class EmbeddedDiagram extends AbstractTextBlock implements Line, Atom {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public static final String EMBEDDED_START = "{{";
|
public static final String EMBEDDED_START = "{{";
|
||||||
public static final String EMBEDDED_END = "}}";
|
public static final String EMBEDDED_END = "}}";
|
||||||
|
@ -51,6 +51,7 @@ import net.sourceforge.plantuml.klimt.font.StringBounder;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class EmptyImageBuilder {
|
public class EmptyImageBuilder {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final BufferedImage im;
|
private final BufferedImage im;
|
||||||
private final Graphics2D g2d;
|
private final Graphics2D g2d;
|
||||||
@ -70,7 +71,7 @@ public class EmptyImageBuilder {
|
|||||||
if (width <= 0 || height <= 0)
|
if (width <= 0 || height <= 0)
|
||||||
throw new IllegalArgumentException("width and height must be positive");
|
throw new IllegalArgumentException("width and height must be positive");
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (width > GraphvizUtils.getenvImageLimit()) {
|
if (width > GraphvizUtils.getenvImageLimit()) {
|
||||||
Log.info("Width too large " + width + ". You should set PLANTUML_LIMIT_SIZE");
|
Log.info("Width too large " + width + ". You should set PLANTUML_LIMIT_SIZE");
|
||||||
width = GraphvizUtils.getenvImageLimit();
|
width = GraphvizUtils.getenvImageLimit();
|
||||||
|
@ -72,12 +72,12 @@ public class ErrorStatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getExitCode() {
|
public int getExitCode() {
|
||||||
if (isNoData()) {
|
if (isNoData())
|
||||||
return 100;
|
return 100;
|
||||||
}
|
|
||||||
if (hasErrors) {
|
if (hasErrors)
|
||||||
return 200;
|
return 200;
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ import java.util.Objects;
|
|||||||
import net.sourceforge.plantuml.utils.LineLocation;
|
import net.sourceforge.plantuml.utils.LineLocation;
|
||||||
|
|
||||||
public class ErrorUml {
|
public class ErrorUml {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final String error;
|
private final String error;
|
||||||
private final ErrorUmlType type;
|
private final ErrorUmlType type;
|
||||||
|
@ -64,8 +64,8 @@ import net.sourceforge.plantuml.text.SvgCharSizeHack;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum FileFormat {
|
public enum FileFormat {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
EPS("application/postscript"), //
|
EPS("application/postscript"), //
|
||||||
EPS_TEXT("application/postscript"), //
|
EPS_TEXT("application/postscript"), //
|
||||||
ATXT("text/plain"), //
|
ATXT("text/plain"), //
|
||||||
@ -108,7 +108,7 @@ public enum FileFormat {
|
|||||||
* @return a string starting by a point.
|
* @return a string starting by a point.
|
||||||
*/
|
*/
|
||||||
public String getFileSuffix() {
|
public String getFileSuffix() {
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (name().startsWith("XMI"))
|
if (name().startsWith("XMI"))
|
||||||
return ".xmi";
|
return ".xmi";
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ public enum FileFormat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public StringBounder getDefaultStringBounder(TikzFontDistortion tikzFontDistortion, SvgCharSizeHack charSizeHack) {
|
public StringBounder getDefaultStringBounder(TikzFontDistortion tikzFontDistortion, SvgCharSizeHack charSizeHack) {
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (this == LATEX || this == LATEX_NO_PREAMBLE)
|
if (this == LATEX || this == LATEX_NO_PREAMBLE)
|
||||||
return getTikzStringBounder(tikzFontDistortion);
|
return getTikzStringBounder(tikzFontDistortion);
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ public enum FileFormat {
|
|||||||
return new XDimension2D(rect.getWidth(), rect.getHeight());
|
return new XDimension2D(rect.getWidth(), rect.getHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private StringBounder getBrailleStringBounder() {
|
private StringBounder getBrailleStringBounder() {
|
||||||
return new StringBounderRaw(FileFormat.gg.getFontRenderContext()) {
|
return new StringBounderRaw(FileFormat.gg.getFontRenderContext()) {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -51,6 +51,7 @@ import net.sourceforge.plantuml.text.SvgCharSizeHack;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public final class FileFormatOption implements Serializable {
|
public final class FileFormatOption implements Serializable {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final FileFormat fileFormat;
|
private final FileFormat fileFormat;
|
||||||
private boolean withMetadata;
|
private boolean withMetadata;
|
||||||
|
@ -39,6 +39,7 @@ import net.sourceforge.plantuml.core.ImageData;
|
|||||||
import net.sourceforge.plantuml.security.SFile;
|
import net.sourceforge.plantuml.security.SFile;
|
||||||
|
|
||||||
public class FileImageData {
|
public class FileImageData {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public static final int ERROR = 400;
|
public static final int ERROR = 400;
|
||||||
public static final int CRASH = 503;
|
public static final int CRASH = 503;
|
||||||
|
@ -42,6 +42,7 @@ import net.sourceforge.plantuml.security.SecurityUtils;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class FileSystem {
|
public class FileSystem {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final static FileSystem singleton = new FileSystem();
|
private final static FileSystem singleton = new FileSystem();
|
||||||
|
|
||||||
@ -65,7 +66,7 @@ public class FileSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public SFile getCurrentDir() {
|
public SFile getCurrentDir() {
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
final String path = this.currentDir.get();
|
final String path = this.currentDir.get();
|
||||||
if (path != null)
|
if (path != null)
|
||||||
return new SFile(path);
|
return new SFile(path);
|
||||||
@ -75,11 +76,11 @@ public class FileSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public SFile getFile(String nameOrPath) throws IOException {
|
public SFile getFile(String nameOrPath) throws IOException {
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// return null;
|
// return null;
|
||||||
// ::done
|
// ::done
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (isAbsolute(nameOrPath)) {
|
if (isAbsolute(nameOrPath)) {
|
||||||
final SFile result = new SFile(nameOrPath);
|
final SFile result = new SFile(nameOrPath);
|
||||||
Log.info("Trying " + result.getAbsolutePath());
|
Log.info("Trying " + result.getAbsolutePath());
|
||||||
@ -117,7 +118,7 @@ public class FileSystem {
|
|||||||
// ::done
|
// ::done
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private boolean isAbsolute(String nameOrPath) {
|
private boolean isAbsolute(String nameOrPath) {
|
||||||
final SFile f = new SFile(nameOrPath);
|
final SFile f = new SFile(nameOrPath);
|
||||||
return f.isAbsolute();
|
return f.isAbsolute();
|
||||||
|
@ -53,6 +53,7 @@ import net.sourceforge.plantuml.utils.Log;
|
|||||||
|
|
||||||
// Used by the Eclipse Plugin, so do not change package location.
|
// Used by the Eclipse Plugin, so do not change package location.
|
||||||
public class FileUtils {
|
public class FileUtils {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private static AtomicInteger counter;
|
private static AtomicInteger counter;
|
||||||
|
|
||||||
@ -105,7 +106,7 @@ public class FileUtils {
|
|||||||
return readSvg(br, true, true);
|
return readSvg(br, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
static public File createTempFileLegacy(String prefix, String suffix) throws IOException {
|
static public File createTempFileLegacy(String prefix, String suffix) throws IOException {
|
||||||
if (suffix.startsWith(".") == false)
|
if (suffix.startsWith(".") == false)
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
|
@ -38,6 +38,7 @@ package net.sourceforge.plantuml;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
public interface GeneratedImage extends Comparable<GeneratedImage> {
|
public interface GeneratedImage extends Comparable<GeneratedImage> {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public File getPngFile();
|
public File getPngFile();
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ import net.sourceforge.plantuml.log.Logme;
|
|||||||
import net.sourceforge.plantuml.security.SFile;
|
import net.sourceforge.plantuml.security.SFile;
|
||||||
|
|
||||||
public class GeneratedImageImpl implements GeneratedImage {
|
public class GeneratedImageImpl implements GeneratedImage {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final SFile pngFile;
|
private final SFile pngFile;
|
||||||
private final String description;
|
private final String description;
|
||||||
|
@ -39,7 +39,8 @@ import java.io.IOException;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ISourceFileReader {
|
public interface ISourceFileReader {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public List<GeneratedImage> getGeneratedImages() throws IOException;
|
public List<GeneratedImage> getGeneratedImages() throws IOException;
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ import net.sourceforge.plantuml.klimt.color.NoSuchColorException;
|
|||||||
import net.sourceforge.plantuml.utils.BlocLines;
|
import net.sourceforge.plantuml.utils.BlocLines;
|
||||||
|
|
||||||
public class NewpagedDiagram extends AbstractPSystem {
|
public class NewpagedDiagram extends AbstractPSystem {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final List<Diagram> diagrams = new ArrayList<>();
|
private final List<Diagram> diagrams = new ArrayList<>();
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ import java.io.OutputStream;
|
|||||||
|
|
||||||
// Modified by Maxime Sinclair
|
// Modified by Maxime Sinclair
|
||||||
public class NullOutputStream extends OutputStream {
|
public class NullOutputStream extends OutputStream {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes to nowhere
|
* Writes to nowhere
|
||||||
|
@ -59,14 +59,15 @@ import net.sourceforge.plantuml.stats.StatsUtils;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class Option {
|
public class Option {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final List<String> excludes = new ArrayList<>();
|
private final List<String> excludes = new ArrayList<>();
|
||||||
private final List<String> config = new ArrayList<>();
|
private final List<String> config = new ArrayList<>();
|
||||||
private final Map<String, String> defines = new LinkedHashMap<String, String>();
|
private final Map<String, String> defines = new LinkedHashMap<String, String>();
|
||||||
|
|
||||||
private String charset;
|
private String charset;
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private boolean computeurl = false;
|
private boolean computeurl = false;
|
||||||
private boolean decodeurl = false;
|
private boolean decodeurl = false;
|
||||||
private boolean pipe = false;
|
private boolean pipe = false;
|
||||||
@ -86,7 +87,7 @@ public class Option {
|
|||||||
private boolean debugsvek = false;
|
private boolean debugsvek = false;
|
||||||
private int nbThreads = 0;
|
private int nbThreads = 0;
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private boolean splash = false;
|
private boolean splash = false;
|
||||||
private boolean textProgressBar = false;
|
private boolean textProgressBar = false;
|
||||||
private int ftpPort = -1;
|
private int ftpPort = -1;
|
||||||
@ -121,7 +122,7 @@ public class Option {
|
|||||||
this.fileFormatOption = newFormat;
|
this.fileFormatOption = newFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
public Option(String... arg) throws InterruptedException, IOException {
|
public Option(String... arg) throws InterruptedException, IOException {
|
||||||
if (arg.length == 0)
|
if (arg.length == 0)
|
||||||
OptionFlags.getInstance().setGui(true);
|
OptionFlags.getInstance().setGui(true);
|
||||||
@ -527,7 +528,7 @@ public class Option {
|
|||||||
return Collections.unmodifiableList(excludes);
|
return Collections.unmodifiableList(excludes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
public Defines getDefaultDefines(SFile f) {
|
public Defines getDefaultDefines(SFile f) {
|
||||||
final Defines result = Defines.createWithFileName(f);
|
final Defines result = Defines.createWithFileName(f);
|
||||||
for (Map.Entry<String, String> ent : defines.entrySet()) {
|
for (Map.Entry<String, String> ent : defines.entrySet()) {
|
||||||
@ -583,7 +584,7 @@ public class Option {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
public final boolean isComputeurl() {
|
public final boolean isComputeurl() {
|
||||||
return computeurl;
|
return computeurl;
|
||||||
}
|
}
|
||||||
@ -631,7 +632,7 @@ public class Option {
|
|||||||
return Runtime.getRuntime().availableProcessors();
|
return Runtime.getRuntime().availableProcessors();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
public final boolean isCheckOnly() {
|
public final boolean isCheckOnly() {
|
||||||
return checkOnly;
|
return checkOnly;
|
||||||
}
|
}
|
||||||
@ -677,7 +678,7 @@ public class Option {
|
|||||||
return debugsvek;
|
return debugsvek;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
public final boolean isSplash() {
|
public final boolean isSplash() {
|
||||||
return splash;
|
return splash;
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,7 @@ import net.sourceforge.plantuml.security.SecurityUtils;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class OptionFlags {
|
public class OptionFlags {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private static final OptionFlags singleton = new OptionFlags();
|
private static final OptionFlags singleton = new OptionFlags();
|
||||||
static public final boolean STRICT_SELFMESSAGE_POSITION = true;
|
static public final boolean STRICT_SELFMESSAGE_POSITION = true;
|
||||||
@ -68,7 +69,7 @@ public class OptionFlags {
|
|||||||
this.replaceWhiteBackgroundByTransparent = replaceWhiteBackgroundByTransparent;
|
this.replaceWhiteBackgroundByTransparent = replaceWhiteBackgroundByTransparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
// static public final boolean PBBACK = false;
|
// static public final boolean PBBACK = false;
|
||||||
// static public boolean GRAPHVIZCACHE = false;
|
// static public boolean GRAPHVIZCACHE = false;
|
||||||
// static public final boolean TRACE_DOT = false;
|
// static public final boolean TRACE_DOT = false;
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
package net.sourceforge.plantuml;
|
package net.sourceforge.plantuml;
|
||||||
|
|
||||||
public enum OptionPreprocOutputMode {
|
public enum OptionPreprocOutputMode {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
NORMAL, CYPHER
|
NORMAL, CYPHER
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,8 @@ import net.sourceforge.plantuml.version.PSystemVersion;
|
|||||||
import net.sourceforge.plantuml.version.Version;
|
import net.sourceforge.plantuml.version.Version;
|
||||||
|
|
||||||
public class OptionPrint {
|
public class OptionPrint {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
static public void printTestDot() throws InterruptedException {
|
static public void printTestDot() throws InterruptedException {
|
||||||
final List<String> result = new ArrayList<>();
|
final List<String> result = new ArrayList<>();
|
||||||
|
@ -109,6 +109,7 @@ import net.sourceforge.plantuml.wire.WireDiagramFactory;
|
|||||||
import net.sourceforge.plantuml.yaml.YamlDiagramFactory;
|
import net.sourceforge.plantuml.yaml.YamlDiagramFactory;
|
||||||
|
|
||||||
public class PSystemBuilder {
|
public class PSystemBuilder {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public static final long startTime = System.currentTimeMillis();
|
public static final long startTime = System.currentTimeMillis();
|
||||||
|
|
||||||
@ -154,7 +155,7 @@ public class PSystemBuilder {
|
|||||||
return result;
|
return result;
|
||||||
} finally {
|
} finally {
|
||||||
WasmLog.log("...parsing ok...");
|
WasmLog.log("...parsing ok...");
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (result != null && OptionFlags.getInstance().isEnableStats()) {
|
if (result != null && OptionFlags.getInstance().isEnableStats()) {
|
||||||
StatsUtilsIncrement.onceMoreParse(System.currentTimeMillis() - now, result.getClass());
|
StatsUtilsIncrement.onceMoreParse(System.currentTimeMillis() - now, result.getClass());
|
||||||
}
|
}
|
||||||
@ -176,14 +177,14 @@ public class PSystemBuilder {
|
|||||||
factories.add(new StateDiagramFactory());
|
factories.add(new StateDiagramFactory());
|
||||||
factories.add(new ActivityDiagramFactory3());
|
factories.add(new ActivityDiagramFactory3());
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
factories.add(new BpmDiagramFactory(DiagramType.BPM));
|
factories.add(new BpmDiagramFactory(DiagramType.BPM));
|
||||||
// ::done
|
// ::done
|
||||||
|
|
||||||
// factories.add(new PostIdDiagramFactory());
|
// factories.add(new PostIdDiagramFactory());
|
||||||
factories.add(new PSystemLicenseFactory());
|
factories.add(new PSystemLicenseFactory());
|
||||||
factories.add(new PSystemVersionFactory());
|
factories.add(new PSystemVersionFactory());
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
factories.add(new PSystemDonorsFactory());
|
factories.add(new PSystemDonorsFactory());
|
||||||
factories.add(new PSystemSkinparameterListFactory());
|
factories.add(new PSystemSkinparameterListFactory());
|
||||||
factories.add(new PSystemListFontsFactory());
|
factories.add(new PSystemListFontsFactory());
|
||||||
@ -194,7 +195,7 @@ public class PSystemBuilder {
|
|||||||
// ::done
|
// ::done
|
||||||
factories.add(new PSystemSaltFactory(DiagramType.UML));
|
factories.add(new PSystemSaltFactory(DiagramType.UML));
|
||||||
factories.add(new PSystemSaltFactory(DiagramType.SALT));
|
factories.add(new PSystemSaltFactory(DiagramType.SALT));
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
factories.add(new PSystemDotFactory(DiagramType.DOT));
|
factories.add(new PSystemDotFactory(DiagramType.DOT));
|
||||||
factories.add(new PSystemDotFactory(DiagramType.UML));
|
factories.add(new PSystemDotFactory(DiagramType.UML));
|
||||||
// ::done
|
// ::done
|
||||||
@ -202,10 +203,10 @@ public class PSystemBuilder {
|
|||||||
factories.add(new NwDiagramFactory(DiagramType.NW));
|
factories.add(new NwDiagramFactory(DiagramType.NW));
|
||||||
factories.add(new MindMapDiagramFactory());
|
factories.add(new MindMapDiagramFactory());
|
||||||
factories.add(new WBSDiagramFactory());
|
factories.add(new WBSDiagramFactory());
|
||||||
// ::uncomment when CORE
|
// ::uncomment when __CORE__
|
||||||
// factories.add(new PSystemSudokuFactory());
|
// factories.add(new PSystemSudokuFactory());
|
||||||
// ::done
|
// ::done
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
factories.add(new PSystemDitaaFactory());
|
factories.add(new PSystemDitaaFactory());
|
||||||
if (License.getCurrent() == License.GPL || License.getCurrent() == License.GPLV2) {
|
if (License.getCurrent() == License.GPL || License.getCurrent() == License.GPLV2) {
|
||||||
factories.add(new PSystemJcckitFactory());
|
factories.add(new PSystemJcckitFactory());
|
||||||
@ -228,7 +229,7 @@ public class PSystemBuilder {
|
|||||||
factories.add(new PSystemOregonFactory());
|
factories.add(new PSystemOregonFactory());
|
||||||
// ::done
|
// ::done
|
||||||
factories.add(new PSystemCharlieFactory());
|
factories.add(new PSystemCharlieFactory());
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (License.getCurrent() == License.GPL || License.getCurrent() == License.GPLV2) {
|
if (License.getCurrent() == License.GPL || License.getCurrent() == License.GPLV2) {
|
||||||
factories.add(new PSystemXearthFactory());
|
factories.add(new PSystemXearthFactory());
|
||||||
}
|
}
|
||||||
@ -237,17 +238,17 @@ public class PSystemBuilder {
|
|||||||
factories.add(new FlowDiagramFactory());
|
factories.add(new FlowDiagramFactory());
|
||||||
// factories.add(new PSystemTreeFactory(DiagramType.JUNGLE));
|
// factories.add(new PSystemTreeFactory(DiagramType.JUNGLE));
|
||||||
// factories.add(new PSystemCuteFactory(DiagramType.CUTE));
|
// factories.add(new PSystemCuteFactory(DiagramType.CUTE));
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
factories.add(new PSystemDedicationFactory());
|
factories.add(new PSystemDedicationFactory());
|
||||||
// ::done
|
// ::done
|
||||||
factories.add(new TimingDiagramFactory());
|
factories.add(new TimingDiagramFactory());
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
factories.add(new HelpFactory());
|
factories.add(new HelpFactory());
|
||||||
factories.add(new WireDiagramFactory());
|
factories.add(new WireDiagramFactory());
|
||||||
// ::done
|
// ::done
|
||||||
factories.add(new JsonDiagramFactory());
|
factories.add(new JsonDiagramFactory());
|
||||||
factories.add(new GitDiagramFactory());
|
factories.add(new GitDiagramFactory());
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
factories.add(new BoardDiagramFactory());
|
factories.add(new BoardDiagramFactory());
|
||||||
// ::done
|
// ::done
|
||||||
factories.add(new YamlDiagramFactory());
|
factories.add(new YamlDiagramFactory());
|
||||||
|
@ -58,7 +58,8 @@ import net.sourceforge.plantuml.skin.SplitParam;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class PSystemUtils {
|
public class PSystemUtils {
|
||||||
// :: remove file when CORE
|
// :: remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public static List<FileImageData> exportDiagrams(Diagram system, SuggestedFile suggested,
|
public static List<FileImageData> exportDiagrams(Diagram system, SuggestedFile suggested,
|
||||||
FileFormatOption fileFormatOption) throws IOException {
|
FileFormatOption fileFormatOption) throws IOException {
|
||||||
@ -68,7 +69,7 @@ public class PSystemUtils {
|
|||||||
public static List<FileImageData> exportDiagrams(Diagram system, SuggestedFile suggestedFile,
|
public static List<FileImageData> exportDiagrams(Diagram system, SuggestedFile suggestedFile,
|
||||||
FileFormatOption fileFormatOption, boolean checkMetadata) throws IOException {
|
FileFormatOption fileFormatOption, boolean checkMetadata) throws IOException {
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
final SFile existingFile = suggestedFile.getFile(0);
|
final SFile existingFile = suggestedFile.getFile(0);
|
||||||
if (checkMetadata && fileFormatOption.getFileFormat().doesSupportMetadata() && existingFile.exists()) {
|
if (checkMetadata && fileFormatOption.getFileFormat().doesSupportMetadata() && existingFile.exists()) {
|
||||||
// && system.getNbImages() == 1) {
|
// && system.getNbImages() == 1) {
|
||||||
@ -87,7 +88,7 @@ public class PSystemUtils {
|
|||||||
if (system instanceof SequenceDiagram)
|
if (system instanceof SequenceDiagram)
|
||||||
return exportDiagramsSequence((SequenceDiagram) system, suggestedFile, fileFormatOption);
|
return exportDiagramsSequence((SequenceDiagram) system, suggestedFile, fileFormatOption);
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (system instanceof CucaDiagram && fileFormatOption.getFileFormat() == FileFormat.HTML)
|
if (system instanceof CucaDiagram && fileFormatOption.getFileFormat() == FileFormat.HTML)
|
||||||
return createFilesHtml((CucaDiagram) system, suggestedFile);
|
return createFilesHtml((CucaDiagram) system, suggestedFile);
|
||||||
// ::done
|
// ::done
|
||||||
@ -153,7 +154,7 @@ public class PSystemUtils {
|
|||||||
} finally {
|
} finally {
|
||||||
fos.close();
|
fos.close();
|
||||||
}
|
}
|
||||||
// ::comment when SPAM
|
// ::comment when __CORE__
|
||||||
if (cmap != null && cmap.containsCMapData())
|
if (cmap != null && cmap.containsCMapData())
|
||||||
system.exportCmap(suggestedFile, i, cmap);
|
system.exportCmap(suggestedFile, i, cmap);
|
||||||
|
|
||||||
@ -209,7 +210,7 @@ public class PSystemUtils {
|
|||||||
if (imageData == null)
|
if (imageData == null)
|
||||||
return emptyList();
|
return emptyList();
|
||||||
|
|
||||||
// ::comment when SPAM
|
// ::comment when __CORE__
|
||||||
if (imageData.containsCMapData() && system instanceof UmlDiagram)
|
if (imageData.containsCMapData() && system instanceof UmlDiagram)
|
||||||
((UmlDiagram) system).exportCmap(suggestedFile, 0, imageData);
|
((UmlDiagram) system).exportCmap(suggestedFile, 0, imageData);
|
||||||
// ::done
|
// ::done
|
||||||
|
@ -55,7 +55,8 @@ import net.sourceforge.plantuml.preproc.Defines;
|
|||||||
import net.sourceforge.plantuml.security.SFile;
|
import net.sourceforge.plantuml.security.SFile;
|
||||||
|
|
||||||
public class Pipe {
|
public class Pipe {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final Option option;
|
private final Option option;
|
||||||
private final BufferedReader br;
|
private final BufferedReader br;
|
||||||
|
@ -45,6 +45,7 @@ import net.sourceforge.plantuml.klimt.shape.UDrawable;
|
|||||||
|
|
||||||
// This class doesnt feel like a wonderful idea, just a stepping stone towards something
|
// This class doesnt feel like a wonderful idea, just a stepping stone towards something
|
||||||
public abstract class PlainDiagram extends AbstractPSystem {
|
public abstract class PlainDiagram extends AbstractPSystem {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public PlainDiagram(UmlSource source) {
|
public PlainDiagram(UmlSource source) {
|
||||||
super(source);
|
super(source);
|
||||||
|
@ -45,6 +45,7 @@ import net.sourceforge.plantuml.klimt.geom.GraphicPosition;
|
|||||||
import net.sourceforge.plantuml.klimt.shape.UDrawable;
|
import net.sourceforge.plantuml.klimt.shape.UDrawable;
|
||||||
|
|
||||||
public abstract class PlainStringsDiagram extends PlainDiagram {
|
public abstract class PlainStringsDiagram extends PlainDiagram {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
protected BufferedImage image = null;
|
protected BufferedImage image = null;
|
||||||
protected GraphicPosition imagePosition = null;
|
protected GraphicPosition imagePosition = null;
|
||||||
|
@ -41,7 +41,8 @@ import java.util.logging.Level;
|
|||||||
import java.util.logging.LogRecord;
|
import java.util.logging.LogRecord;
|
||||||
|
|
||||||
public class ProgressBar {
|
public class ProgressBar {
|
||||||
// :: remove file when CORE
|
// :: remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private static final java.util.logging.Logger logger;
|
private static final java.util.logging.Logger logger;
|
||||||
|
|
||||||
|
@ -78,7 +78,8 @@ import net.sourceforge.plantuml.utils.Log;
|
|||||||
import net.sourceforge.plantuml.version.Version;
|
import net.sourceforge.plantuml.version.Version;
|
||||||
|
|
||||||
public class Run {
|
public class Run {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private static Cypher cypher;
|
private static Cypher cypher;
|
||||||
|
|
||||||
|
@ -47,7 +47,8 @@ import net.sourceforge.plantuml.security.SFile;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class SourceFileReader extends SourceFileReaderAbstract implements ISourceFileReader {
|
public class SourceFileReader extends SourceFileReaderAbstract implements ISourceFileReader {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private File outputDirectory;
|
private File outputDirectory;
|
||||||
|
|
||||||
|
@ -66,7 +66,8 @@ import net.sourceforge.plantuml.security.SecurityUtils;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public abstract class SourceFileReaderAbstract implements ISourceFileReader {
|
public abstract class SourceFileReaderAbstract implements ISourceFileReader {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
final private File file;
|
final private File file;
|
||||||
|
|
||||||
|
@ -43,7 +43,8 @@ import net.sourceforge.plantuml.file.SuggestedFile;
|
|||||||
import net.sourceforge.plantuml.preproc.Defines;
|
import net.sourceforge.plantuml.preproc.Defines;
|
||||||
|
|
||||||
public class SourceFileReaderCopyCat extends SourceFileReaderAbstract implements ISourceFileReader {
|
public class SourceFileReaderCopyCat extends SourceFileReaderAbstract implements ISourceFileReader {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final File outputDirectory;
|
private final File outputDirectory;
|
||||||
|
|
||||||
|
@ -44,7 +44,8 @@ import net.sourceforge.plantuml.preproc.Defines;
|
|||||||
import net.sourceforge.plantuml.security.SFile;
|
import net.sourceforge.plantuml.security.SFile;
|
||||||
|
|
||||||
public class SourceFileReaderHardFile extends SourceFileReaderAbstract implements ISourceFileReader {
|
public class SourceFileReaderHardFile extends SourceFileReaderAbstract implements ISourceFileReader {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final File outputFile;
|
private final File outputFile;
|
||||||
|
|
||||||
|
@ -57,6 +57,7 @@ import net.sourceforge.plantuml.security.SFile;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class SourceStringReader {
|
public class SourceStringReader {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
final private List<BlockUml> blocks;
|
final private List<BlockUml> blocks;
|
||||||
|
|
||||||
@ -114,7 +115,7 @@ public class SourceStringReader {
|
|||||||
return outputImage(os, 0);
|
return outputImage(os, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String generateImage(SFile f) throws IOException {
|
public String generateImage(SFile f) throws IOException {
|
||||||
return outputImage(f).getDescription();
|
return outputImage(f).getDescription();
|
||||||
|
@ -55,7 +55,8 @@ import net.sourceforge.plantuml.log.Logme;
|
|||||||
import net.sourceforge.plantuml.version.PSystemVersion;
|
import net.sourceforge.plantuml.version.PSystemVersion;
|
||||||
|
|
||||||
public class Splash extends Window implements MouseListener, MouseMotionListener {
|
public class Splash extends Window implements MouseListener, MouseMotionListener {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private static final Color LINK_NORMAL = Color.BLUE;
|
private static final Color LINK_NORMAL = Color.BLUE;
|
||||||
private static final Color LINK_HOVER = new Color(127, 0, 127);
|
private static final Color LINK_HOVER = new Color(127, 0, 127);
|
||||||
|
@ -41,7 +41,8 @@ import java.io.PrintStream;
|
|||||||
import net.sourceforge.plantuml.core.Diagram;
|
import net.sourceforge.plantuml.core.Diagram;
|
||||||
|
|
||||||
public interface Stdrpt {
|
public interface Stdrpt {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public void printInfo(PrintStream output, Diagram sys);
|
public void printInfo(PrintStream output, Diagram sys);
|
||||||
|
|
||||||
|
@ -42,7 +42,8 @@ import net.sourceforge.plantuml.core.Diagram;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class StdrptNull implements Stdrpt {
|
public class StdrptNull implements Stdrpt {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public void printInfo(final PrintStream output, final Diagram sys) {
|
public void printInfo(final PrintStream output, final Diagram sys) {
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,8 @@ import net.sourceforge.plantuml.error.PSystemError;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class StdrptPipe0 implements Stdrpt {
|
public class StdrptPipe0 implements Stdrpt {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public void printInfo(final PrintStream output, final Diagram sys) {
|
public void printInfo(final PrintStream output, final Diagram sys) {
|
||||||
if (sys instanceof PSystemError) {
|
if (sys instanceof PSystemError) {
|
||||||
|
@ -45,7 +45,8 @@ import net.sourceforge.plantuml.error.PSystemError;
|
|||||||
import net.sourceforge.plantuml.utils.Log;
|
import net.sourceforge.plantuml.utils.Log;
|
||||||
|
|
||||||
public class StdrptV1 implements Stdrpt {
|
public class StdrptV1 implements Stdrpt {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public void printInfo(final PrintStream output, Diagram sys) {
|
public void printInfo(final PrintStream output, Diagram sys) {
|
||||||
if (sys instanceof PSystemWelcome) {
|
if (sys instanceof PSystemWelcome) {
|
||||||
|
@ -44,7 +44,8 @@ import net.sourceforge.plantuml.eggs.PSystemWelcome;
|
|||||||
import net.sourceforge.plantuml.error.PSystemError;
|
import net.sourceforge.plantuml.error.PSystemError;
|
||||||
|
|
||||||
public class StdrptV2 implements Stdrpt {
|
public class StdrptV2 implements Stdrpt {
|
||||||
// ::remove file when CORE
|
// ::remove file when __CORE__
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public void finalMessage() {
|
public void finalMessage() {
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,7 @@ public class StringUtils {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ::comment when __HAXE__
|
||||||
final static public List<String> getSplit(Pattern2 pattern, String line) {
|
final static public List<String> getSplit(Pattern2 pattern, String line) {
|
||||||
final Matcher2 m = pattern.matcher(line);
|
final Matcher2 m = pattern.matcher(line);
|
||||||
if (m.find() == false)
|
if (m.find() == false)
|
||||||
@ -119,6 +120,7 @@ public class StringUtils {
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
// ::done
|
||||||
|
|
||||||
public static boolean isNotEmpty(CharSequence s) {
|
public static boolean isNotEmpty(CharSequence s) {
|
||||||
return !isEmpty(s);
|
return !isEmpty(s);
|
||||||
@ -173,6 +175,7 @@ public class StringUtils {
|
|||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ::comment when __HAXE__
|
||||||
public static String unicodeForHtml(Display display) {
|
public static String unicodeForHtml(Display display) {
|
||||||
final StringBuilder result = new StringBuilder();
|
final StringBuilder result = new StringBuilder();
|
||||||
for (int i = 0; i < display.size(); i++) {
|
for (int i = 0; i < display.size(); i++) {
|
||||||
@ -183,6 +186,7 @@ public class StringUtils {
|
|||||||
}
|
}
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
// ::done
|
||||||
|
|
||||||
public static String manageArrowForSequence(String s) {
|
public static String manageArrowForSequence(String s) {
|
||||||
s = s.replace('=', '-').toLowerCase();
|
s = s.replace('=', '-').toLowerCase();
|
||||||
@ -318,11 +322,13 @@ public class StringUtils {
|
|||||||
return c == '\"' || c == '\u201c' || c == '\u201d' || c == '\u00ab' || c == '\u00bb';
|
return c == '\"' || c == '\u201c' || c == '\u201d' || c == '\u00ab' || c == '\u00bb';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ::comment when __HAXE__
|
||||||
public static boolean isCJK(char c) {
|
public static boolean isCJK(char c) {
|
||||||
final Character.UnicodeBlock block = Character.UnicodeBlock.of(c);
|
final Character.UnicodeBlock block = Character.UnicodeBlock.of(c);
|
||||||
Log.println("block=" + block);
|
Log.println("block=" + block);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// ::done
|
||||||
|
|
||||||
public static char hiddenLesserThan() {
|
public static char hiddenLesserThan() {
|
||||||
return '\u0005';
|
return '\u0005';
|
||||||
@ -344,16 +350,16 @@ public class StringUtils {
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int getWidth(Display stringsToDisplay) {
|
// private static int getWidth(Display stringsToDisplay) {
|
||||||
int result = 1;
|
// int result = 1;
|
||||||
for (CharSequence s : stringsToDisplay)
|
// for (CharSequence s : stringsToDisplay)
|
||||||
if (s != null && result < s.length())
|
// if (s != null && result < s.length())
|
||||||
result = s.length();
|
// result = s.length();
|
||||||
|
//
|
||||||
|
// return result;
|
||||||
|
// }
|
||||||
|
|
||||||
return result;
|
// ::comment when __CORE__ or __HAXE__
|
||||||
}
|
|
||||||
|
|
||||||
// ::comment when CORE
|
|
||||||
public static int getWcWidth(Display stringsToDisplay) {
|
public static int getWcWidth(Display stringsToDisplay) {
|
||||||
int result = 1;
|
int result = 1;
|
||||||
for (CharSequence s : stringsToDisplay) {
|
for (CharSequence s : stringsToDisplay) {
|
||||||
@ -373,9 +379,11 @@ public class StringUtils {
|
|||||||
return stringsToDisplay.size();
|
return stringsToDisplay.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ::comment when __HAXE__
|
||||||
public static int getHeight(Display stringsToDisplay) {
|
public static int getHeight(Display stringsToDisplay) {
|
||||||
return stringsToDisplay.size();
|
return stringsToDisplay.size();
|
||||||
}
|
}
|
||||||
|
// ::done
|
||||||
|
|
||||||
public static boolean isDiagramCacheable(String uml) {
|
public static boolean isDiagramCacheable(String uml) {
|
||||||
if (uml.length() < 35)
|
if (uml.length() < 35)
|
||||||
@ -429,6 +437,7 @@ public class StringUtils {
|
|||||||
return Integer.parseInt(uml.substring(x1, x2));
|
return Integer.parseInt(uml.substring(x1, x2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ::comment when __HAXE__
|
||||||
public static List<String> splitComma(String s) {
|
public static List<String> splitComma(String s) {
|
||||||
s = trin(s);
|
s = trin(s);
|
||||||
final List<String> result = new ArrayList<>();
|
final List<String> result = new ArrayList<>();
|
||||||
@ -439,6 +448,7 @@ public class StringUtils {
|
|||||||
|
|
||||||
return Collections.unmodifiableList(result);
|
return Collections.unmodifiableList(result);
|
||||||
}
|
}
|
||||||
|
// ::done
|
||||||
|
|
||||||
public static String getUid(String uid1, int uid2) {
|
public static String getUid(String uid1, int uid2) {
|
||||||
return uid1 + String.format("%04d", uid2);
|
return uid1 + String.format("%04d", uid2);
|
||||||
|
@ -38,6 +38,7 @@ package net.sourceforge.plantuml;
|
|||||||
import java.util.StringTokenizer;
|
import java.util.StringTokenizer;
|
||||||
|
|
||||||
public class TikzFontDistortion {
|
public class TikzFontDistortion {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private final double magnify;
|
private final double magnify;
|
||||||
private final double distortion;
|
private final double distortion;
|
||||||
|
@ -72,6 +72,7 @@ import net.sourceforge.plantuml.style.StyleLoader;
|
|||||||
import net.sourceforge.plantuml.style.StyleSignatureBasic;
|
import net.sourceforge.plantuml.style.StyleSignatureBasic;
|
||||||
|
|
||||||
public abstract class TitledDiagram extends AbstractPSystem implements Diagram, Annotated {
|
public abstract class TitledDiagram extends AbstractPSystem implements Diagram, Annotated {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public static boolean FORCE_SMETANA = false;
|
public static boolean FORCE_SMETANA = false;
|
||||||
public static boolean FORCE_ELK = false;
|
public static boolean FORCE_ELK = false;
|
||||||
@ -87,7 +88,7 @@ public abstract class TitledDiagram extends AbstractPSystem implements Diagram,
|
|||||||
|
|
||||||
private final SkinParam skinParam;
|
private final SkinParam skinParam;
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private Animation animation;
|
private Animation animation;
|
||||||
// ::done
|
// ::done
|
||||||
|
|
||||||
@ -217,7 +218,7 @@ public abstract class TitledDiagram extends AbstractPSystem implements Diagram,
|
|||||||
return ClockwiseTopRightBottomLeft.same(10);
|
return ClockwiseTopRightBottomLeft.same(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
final public void setAnimation(Iterable<CharSequence> animationData) {
|
final public void setAnimation(Iterable<CharSequence> animationData) {
|
||||||
// try {
|
// try {
|
||||||
final AnimationDecoder animationDecoder = new AnimationDecoder(animationData);
|
final AnimationDecoder animationDecoder = new AnimationDecoder(animationData);
|
||||||
|
@ -87,6 +87,7 @@ import net.sourceforge.plantuml.utils.Log;
|
|||||||
import net.sourceforge.plantuml.version.Version;
|
import net.sourceforge.plantuml.version.Version;
|
||||||
|
|
||||||
public abstract class UmlDiagram extends TitledDiagram implements Diagram, Annotated, WithSprite {
|
public abstract class UmlDiagram extends TitledDiagram implements Diagram, Annotated, WithSprite {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
private boolean rotation;
|
private boolean rotation;
|
||||||
|
|
||||||
@ -132,7 +133,7 @@ public abstract class UmlDiagram extends TitledDiagram implements Diagram, Annot
|
|||||||
|
|
||||||
fileFormatOption = fileFormatOption.withTikzFontDistortion(getSkinParam().getTikzFontDistortion());
|
fileFormatOption = fileFormatOption.withTikzFontDistortion(getSkinParam().getTikzFontDistortion());
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (fileFormatOption.getFileFormat() == FileFormat.PDF)
|
if (fileFormatOption.getFileFormat() == FileFormat.PDF)
|
||||||
return exportDiagramInternalPdf(os, index);
|
return exportDiagramInternalPdf(os, index);
|
||||||
// ::done
|
// ::done
|
||||||
@ -163,7 +164,7 @@ public abstract class UmlDiagram extends TitledDiagram implements Diagram, Annot
|
|||||||
public static void exportDiagramError(OutputStream os, Throwable exception, FileFormatOption fileFormat, long seed,
|
public static void exportDiagramError(OutputStream os, Throwable exception, FileFormatOption fileFormat, long seed,
|
||||||
String metadata, String flash, List<String> strings) throws IOException {
|
String metadata, String flash, List<String> strings) throws IOException {
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (fileFormat.getFileFormat() == FileFormat.ATXT || fileFormat.getFileFormat() == FileFormat.UTXT) {
|
if (fileFormat.getFileFormat() == FileFormat.ATXT || fileFormat.getFileFormat() == FileFormat.UTXT) {
|
||||||
exportDiagramErrorText(os, exception, strings);
|
exportDiagramErrorText(os, exception, strings);
|
||||||
return;
|
return;
|
||||||
@ -173,7 +174,7 @@ public abstract class UmlDiagram extends TitledDiagram implements Diagram, Annot
|
|||||||
strings.addAll(CommandExecutionResult.getStackTrace(exception));
|
strings.addAll(CommandExecutionResult.getStackTrace(exception));
|
||||||
|
|
||||||
BufferedImage im2 = null;
|
BufferedImage im2 = null;
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
if (flash != null) {
|
if (flash != null) {
|
||||||
final FlashCodeUtils utils = FlashCodeFactory.getFlashCodeUtils();
|
final FlashCodeUtils utils = FlashCodeFactory.getFlashCodeUtils();
|
||||||
try {
|
try {
|
||||||
@ -203,7 +204,7 @@ public abstract class UmlDiagram extends TitledDiagram implements Diagram, Annot
|
|||||||
plainImageBuilder(drawable, fileFormat).metadata(metadata).seed(seed).write(os);
|
plainImageBuilder(drawable, fileFormat).metadata(metadata).seed(seed).write(os);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private static void exportDiagramErrorText(OutputStream os, Throwable exception, List<String> strings) {
|
private static void exportDiagramErrorText(OutputStream os, Throwable exception, List<String> strings) {
|
||||||
final PrintWriter pw = SecurityUtils.createPrintWriter(os);
|
final PrintWriter pw = SecurityUtils.createPrintWriter(os);
|
||||||
exception.printStackTrace(pw);
|
exception.printStackTrace(pw);
|
||||||
@ -256,7 +257,7 @@ public abstract class UmlDiagram extends TitledDiagram implements Diagram, Annot
|
|||||||
return strings;
|
return strings;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ::comment when CORE
|
// ::comment when __CORE__
|
||||||
private void exportDiagramInternalMjpeg(OutputStream os) throws IOException {
|
private void exportDiagramInternalMjpeg(OutputStream os) throws IOException {
|
||||||
final SFile f = new SFile("c:/test.avi");
|
final SFile f = new SFile("c:/test.avi");
|
||||||
final int nb = 150;
|
final int nb = 150;
|
||||||
|
@ -39,6 +39,7 @@ import net.sourceforge.plantuml.core.Diagram;
|
|||||||
import net.sourceforge.plantuml.klimt.sprite.Sprite;
|
import net.sourceforge.plantuml.klimt.sprite.Sprite;
|
||||||
|
|
||||||
public interface WithSprite extends Diagram {
|
public interface WithSprite extends Diagram {
|
||||||
|
// ::remove file when __HAXE__
|
||||||
|
|
||||||
public void addSprite(String name, Sprite sprite);
|
public void addSprite(String name, Sprite sprite);
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
package net.sourceforge.plantuml.abel;
|
package net.sourceforge.plantuml.abel;
|
||||||
|
|
||||||
public interface Hideable {
|
public interface Hideable {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
public boolean isHidden();
|
public boolean isHidden();
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ import net.sourceforge.plantuml.core.ImageData;
|
|||||||
import net.sourceforge.plantuml.core.UmlSource;
|
import net.sourceforge.plantuml.core.UmlSource;
|
||||||
|
|
||||||
public class PSystemXearth extends AbstractPSystem {
|
public class PSystemXearth extends AbstractPSystem {
|
||||||
// :: remove folder when CORE
|
// :: remove folder when __CORE__
|
||||||
|
|
||||||
final private int width;
|
final private int width;
|
||||||
final private int height;
|
final private int height;
|
||||||
|
@ -49,6 +49,7 @@ import net.sourceforge.plantuml.regex.MyPattern;
|
|||||||
import net.sourceforge.plantuml.regex.Pattern2;
|
import net.sourceforge.plantuml.regex.Pattern2;
|
||||||
|
|
||||||
public class PSystemXearthFactory extends PSystemBasicFactory<PSystemXearth> {
|
public class PSystemXearthFactory extends PSystemBasicFactory<PSystemXearth> {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
private final Map<String, String> config = new LinkedHashMap<>();
|
private final Map<String, String> config = new LinkedHashMap<>();
|
||||||
private final List<Marker> markers = new ArrayList<>();
|
private final List<Marker> markers = new ArrayList<>();
|
||||||
|
@ -56,6 +56,7 @@ import net.sourceforge.plantuml.command.note.CommandFactoryNoteOnLink;
|
|||||||
import net.sourceforge.plantuml.core.UmlSource;
|
import net.sourceforge.plantuml.core.UmlSource;
|
||||||
|
|
||||||
public class ActivityDiagramFactory extends PSystemCommandFactory {
|
public class ActivityDiagramFactory extends PSystemCommandFactory {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ActivityDiagram createEmptyDiagram(UmlSource source, Map<String, String> skinParam) {
|
public ActivityDiagram createEmptyDiagram(UmlSource source, Map<String, String> skinParam) {
|
||||||
|
@ -45,6 +45,7 @@ import net.sourceforge.plantuml.regex.RegexResult;
|
|||||||
import net.sourceforge.plantuml.utils.LineLocation;
|
import net.sourceforge.plantuml.utils.LineLocation;
|
||||||
|
|
||||||
public class CommandEndif extends SingleLineCommand2<ActivityDiagram> {
|
public class CommandEndif extends SingleLineCommand2<ActivityDiagram> {
|
||||||
|
// ::remove folder when __HAXE__
|
||||||
|
|
||||||
public CommandEndif() {
|
public CommandEndif() {
|
||||||
super(getRegexConcat());
|
super(getRegexConcat());
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user