forked from jgraph/mxgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmxConstants.java
More file actions
1261 lines (1069 loc) · 39 KB
/
mxConstants.java
File metadata and controls
1261 lines (1069 loc) · 39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Copyright (c) 2007-2012, JGraph Ltd
*/
package com.mxgraph.util;
/**
* Contains all global constants.
*/
public class mxConstants
{
/**
* Defines the number of radians per degree.
*/
public static double RAD_PER_DEG = 0.0174532;
/**
* Defines the number of degrees per radian.
*/
public static double DEG_PER_RAD = 57.2957795;
/**
* Defines the minimum scale at which rounded polylines should be painted.
* Default is 0.05.
*/
public static double MIN_SCALE_FOR_ROUNDED_LINES = 0.05;
/**
* Defines the portion of the cell which is to be used as a connectable
* region. Default is 0.3.
*/
public static double DEFAULT_HOTSPOT = 0.3;
/**
* Defines the minimum size in pixels of the portion of the cell which is
* to be used as a connectable region. Default is 8.
*/
public static int MIN_HOTSPOT_SIZE = 8;
/**
* Defines the maximum size in pixels of the portion of the cell which is
* to be used as a connectable region. Use 0 for no maximum. Default is 0.
*/
public static int MAX_HOTSPOT_SIZE = 0;
/**
* Defines the SVG namespace.
*/
public static String NS_SVG = "http://www.w3.org/2000/svg";
/**
* Defines the XHTML namespace.
*/
public static String NS_XHTML = "http://www.w3.org/1999/xhtml";
/**
* Defines the XLink namespace.
*/
public static String NS_XLINK = "http://www.w3.org/1999/xlink";
/**
* Comma separated list of default fonts for CSS properties.
* And the default font family value for new image export.
* Default is Arial, Helvetica.
*/
public static String DEFAULT_FONTFAMILIES = "Arial,Helvetica";
/**
* Defines the default font family. Default is "Dialog". (To be replaced
* with Font.DIALOG after EOL of Java 1.5.)
*/
public static String DEFAULT_FONTFAMILY = "Dialog";
/**
* Defines the default font size (in px). Default is 11.
*/
public static int DEFAULT_FONTSIZE = 11;
/**
* Defines the default start size for swimlanes. Default is 40.
*/
public static int DEFAULT_STARTSIZE = 40;
/**
* Default line height for text output. Default is 1.2. This is ignored for HTML in
* the current version of Java. See
* http://docs.oracle.com/javase/6/docs/api/index.html?javax/swing/text/html/CSS.html
*/
public static float LINE_HEIGHT = 1.2f;
/**
* Specifies if absolute line heights should be used (px) in CSS. Default
* is false. Set this to true for backwards compatibility.
*/
public static boolean ABSOLUTE_LINE_HEIGHT = false;
/**
* Specifies the line spacing. Default is 0.
*/
public static int LINESPACING = 0;
/**
* Whether or not to split whole words when applying word wrapping in mxUtils.wordWrap.
*/
public static boolean SPLIT_WORDS = true;
/**
* Defines the inset in absolute pixels between the label bounding box and
* the label text. Default is 3.
*/
public static int LABEL_INSET = 3;
/**
* Multiplier to the width that is passed into the word wrapping calculation
* See mxUtils.wordWrap for details
*/
public static double LABEL_SCALE_BUFFER = 0.9;
/**
* Defines the default marker size. Default is 6.
*/
public static int DEFAULT_MARKERSIZE = 6;
/**
* Defines the default image size. Default is 24.
*/
public static int DEFAULT_IMAGESIZE = 24;
/**
* Defines the default opacity for stencils shadows. Default is 1.
*/
public static int STENCIL_SHADOW_OPACITY = 1;
/**
* Defines the default shadow color for stencils. Default is "gray".
*/
public static String STENCIL_SHADOWCOLOR = "gray";
/**
* Defines the x-offset to be used for shadows. Default is 2.
*/
public static int SHADOW_OFFSETX = 2;
/**
* Defines the y-offset to be used for shadows. Default is 3.
*/
public static int SHADOW_OFFSETY = 3;
/**
* Defines the color to be used to draw shadows in W3C standards. Default
* is gray.
*/
public static String W3C_SHADOWCOLOR = "gray";
/**
* Defines the transformation used to draw shadows in SVG.
*/
public static String SVG_SHADOWTRANSFORM = "translate(2 3)";
/**
* Specifies the default dash pattern, 3 pixels solid, 3 pixels clear.
*/
public static float[] DEFAULT_DASHED_PATTERN = new float[] {3.0f , 3.0f};
/**
* Specifies the default distance at 1.0 scale that the label curve is
* created from its base curve
*/
public static double DEFAULT_LABEL_BUFFER = 12.0;
/**
* Defines the handle size. Default is 7.
*/
public static int HANDLE_SIZE = 7;
/**
* Defines the handle size. Default is 4.
*/
public static int LABEL_HANDLE_SIZE = 4;
/**
* Defines the default value for the connect handle. Default is false.
*/
public static boolean CONNECT_HANDLE_ENABLED = false;
/**
* Defines the connect handle size. Default is 8.
*/
public static int CONNECT_HANDLE_SIZE = 8;
/**
* Defines the length of the horizontal segment of an Entity Relation.
* This can be overridden using mxConstants.STYLE_SEGMENT style.
* Default is 30.
*/
public static int ENTITY_SEGMENT = 30;
/**
* Defines the rounding factor for rounded rectangles in percent between
* 0 and 1. Values should be smaller than 0.5. Default is 0.15.
*/
public static double RECTANGLE_ROUNDING_FACTOR = 0.15;
/**
* Defines the size of the arcs for rounded edges. Default is 10.
*/
public static double LINE_ARCSIZE = 10;
/**
* Defines the spacing between the arrow shape and its terminals. Default
* is 10.
*/
public static int ARROW_SPACING = 10;
/**
* Defines the width of the arrow shape. Default is 30.
*/
public static int ARROW_WIDTH = 30;
/**
* Defines the size of the arrowhead in the arrow shape. Default is 30.
*/
public static int ARROW_SIZE = 30;
/**
* Defines the value for none. Default is "none".
*/
public static String NONE = "none";
/**
* Defines the key for the perimeter style.
* This is a function that defines the perimeter around a particular shape.
* Possible values are the functions defined in mxPerimeter that use the
* <code>mxPerimeterFunction</code> interface. Alternatively, the constants
* in this class that start with <code>PERIMETER_</code> may be used to
* access perimeter styles in <code>mxStyleRegistry</code>.
*/
public static String STYLE_PERIMETER = "perimeter";
/**
* Defines the ID of the cell that should be used for computing the
* perimeter point of the source for an edge. This allows for graphically
* connecting to a cell while keeping the actual terminal of the edge.
*/
public static String STYLE_SOURCE_PORT = "sourcePort";
/**
* Defines the ID of the cell that should be used for computing the
* perimeter point of the target for an edge. This allows for graphically
* connecting to a cell while keeping the actual terminal of the edge.
*/
public static String STYLE_TARGET_PORT = "targetPort";
/**
* Defines the direction(s) that edges are allowed to connect to cells in.
* Possible values are <code>DIRECTION_NORTH, DIRECTION_SOUTH,
* DIRECTION_EAST</code> and <code>DIRECTION_WEST</code>.
*
*/
public static String STYLE_PORT_CONSTRAINT = "portConstraint";
/**
* Defines the key for the opacity style. The type of the value is
* <code>float</code> and the possible range is 0-100.
*/
public static String STYLE_OPACITY = "opacity";
/**
* Defines the key for the fill opacity style. The type of the value is
* <code>float</code> and the possible range is 0-100.
*/
public static String STYLE_FILL_OPACITY = "fillOpacity";
/**
* Defines the key for the stroke opacity style. The type of the value is
* <code>float</code> and the possible range is 0-100.
*/
public static String STYLE_STROKE_OPACITY = "strokeOpacity";
/**
* Defines the key for the text opacity style. The type of the value is
* <code>float</code> and the possible range is 0-100.
*/
public static String STYLE_TEXT_OPACITY = "textOpacity";
/**
* Defines the key for the overflow style. Possible values are "visible",
* "hidden" and "fill". The default value is "visible". This value
* specifies how overlapping vertex labels are handles. A value of
* "visible" will show the complete label. A value of "hidden" will clip
* the label so that it does not overlap the vertex bounds. A value of
* "fill" will use the vertex bounds for the label.
*
* @see com.mxgraph.view.mxGraph#isLabelClipped(Object)
*/
public static String STYLE_OVERFLOW = "overflow";
/**
* Defines if the connection points on either end of the edge should be
* computed so that the edge is vertical or horizontal if possible and
* if the point is not at a fixed location. Default is false. This is
* used in mxGraph.isOrthogonal, which also returns true if the edgeStyle
* of the edge is an elbow or entity.
*/
public static String STYLE_ORTHOGONAL = "orthogonal";
/**
* Defines the key for the horizontal relative coordinate connection point
* of an edge with its source terminal.
*/
public static String STYLE_EXIT_X = "exitX";
/**
* Defines the key for the vertical relative coordinate connection point
* of an edge with its source terminal.
*/
public static String STYLE_EXIT_Y = "exitY";
/**
* Defines if the perimeter should be used to find the exact entry point
* along the perimeter of the source. Possible values are 0 (false) and
* 1 (true). Default is 1 (true).
*/
public static String STYLE_EXIT_PERIMETER = "exitPerimeter";
/**
* Defines the key for the horizontal relative coordinate connection point
* of an edge with its target terminal.
*/
public static String STYLE_ENTRY_X = "entryX";
/**
* Defines the key for the vertical relative coordinate connection point
* of an edge with its target terminal.
*/
public static String STYLE_ENTRY_Y = "entryY";
/**
* Defines if the perimeter should be used to find the exact entry point
* along the perimeter of the target. Possible values are 0 (false) and
* 1 (true). Default is 1 (true).
*/
public static String STYLE_ENTRY_PERIMETER = "entryPerimeter";
/**
* Defines the key for the white-space style. Possible values are "nowrap"
* and "wrap". The default value is "nowrap". This value specifies how
* white-space inside a HTML vertex label should be handled. A value of
* "nowrap" means the text will never wrap to the next line until a
* linefeed is encountered. A value of "wrap" means text will wrap when
* necessary.
*/
public static String STYLE_WHITE_SPACE = "whiteSpace";
/**
* Defines the key for the rotation style. The type of the value is
* <code>double</code> and the possible range is 0-360.
*/
public static String STYLE_ROTATION = "rotation";
/**
* Defines the key for the fill color of the swimlane background.
* The value is a string expression supported by mxUtils.parseColor.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_SWIMLANE_FILLCOLOR = "swimlaneFillColor";
/**
* Defines the key for the fillColor style. The value is a string
* expression supported by mxUtils.parseColor.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_FILLCOLOR = "fillColor";
/**
* Defines the key for the gradientColor style. The value is a string
* expression supported by mxUtils.parseColor. This is ignored if no fill
* color is defined.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_GRADIENTCOLOR = "gradientColor";
/**
* Defines the key for the gradient direction. Possible values are
* <code>DIRECTION_EAST</code>, <code>DIRECTION_WEST</code>,
* <code>DIRECTION_NORTH</code> and <code>DIRECTION_SOUTH</code>. Default
* is <code>DIRECTION_SOUTH</code>. Generally, and by default in mxGraph,
* gradient painting is done from the value of <code>STYLE_FILLCOLOR</code>
* to the value of <code>STYLE_GRADIENTCOLOR</code>. Taking the example of
* <code>DIRECTION_NORTH</code>, this means <code>STYLE_FILLCOLOR</code>
* color at the bottom of paint pattern and
* <code>STYLE_GRADIENTCOLOR</code> at top, with a gradient in-between.
*/
public static String STYLE_GRADIENT_DIRECTION = "gradientDirection";
/**
* Defines the key for the strokeColor style. The value is a string
* expression supported by mxUtils.parseColor.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_STROKECOLOR = "strokeColor";
/**
* Defines the key for the separatorColor style. The value is a string
* expression supported by mxUtils.parseColor. This style is only used
* for SHAPE_SWIMLANE shapes.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_SEPARATORCOLOR = "separatorColor";
/**
* Defines the key for the strokeWidth style. The type of the value is
* <code>float</code> and the possible range is any non-negative value.
* The value reflects the stroke width in pixels.
*/
public static String STYLE_STROKEWIDTH = "strokeWidth";
/**
* Defines the key for the align style. Possible values are
* <code>ALIGN_LEFT</code>, <code>ALIGN_CENTER</code> and
* <code>ALIGN_RIGHT</code>. This value defines how the lines of the label
* are horizontally aligned. <code>ALIGN_LEFT</code> mean label text lines
* are aligned to left of the label bounds, <code>ALIGN_RIGHT</code> to the
* right of the label bounds and <code>ALIGN_CENTER</code> means the
* center of the text lines are aligned in the center of the label bounds.
* Note this value doesn't affect the positioning of the overall label
* bounds relative to the vertex, to move the label bounds horizontally, use
* <code>STYLE_LABEL_POSITION</code>.
*/
public static String STYLE_ALIGN = "align";
/**
* Defines the key for the verticalAlign style. Possible values are
* <code>ALIGN_TOP</code>, <code>ALIGN_MIDDLE</code> and
* <code>ALIGN_BOTTOM</code>. This value defines how the lines of the label
* are vertically aligned. <code>ALIGN_TOP</code> means the topmost label
* text line is aligned against the top of the label bounds,
* <code>ALIGN_BOTTOM</code> means the bottom-most label text line is
* aligned against the bottom of the label bounds and
* <code>ALIGN_MIDDLE</code> means there is equal spacing between the
* topmost text label line and the top of the label bounds and the
* bottom-most text label line and the bottom of the label bounds. Note
* this value doesn't affect the positioning of the overall label bounds
* relative to the vertex, to move the label bounds vertically, use
* <code>STYLE_VERTICAL_LABEL_POSITION</code>.
*/
public static String STYLE_VERTICAL_ALIGN = "verticalAlign";
/**
* Defines the key for the horizontal label position of vertices. Possible
* values are <code>ALIGN_LEFT</code>, <code>ALIGN_CENTER</code> and
* <code>ALIGN_RIGHT</code>. Default is <code>ALIGN_CENTER</code>. The
* label align defines the position of the label relative to the cell.
* <code>ALIGN_LEFT</code> means the entire label bounds is placed
* completely just to the left of the vertex, <code>ALIGN_RIGHT</code>
* means adjust to the right and <code>ALIGN_CENTER</code> means the label
* bounds are vertically aligned with the bounds of the vertex. Note this
* value doesn't affect the positioning of label within the label bounds,
* to move the label horizontally within the label bounds, use
* <code>STYLE_ALIGN</code>.
*/
public static String STYLE_LABEL_POSITION = "labelPosition";
/**
* Defines the key for the vertical label position of vertices. Possible
* values are <code>ALIGN_TOP</code>, <code>ALIGN_BOTTOM</code> and
* <code>ALIGN_MIDDLE</code>. Default is <code>ALIGN_MIDDLE</code>. The
* label align defines the position of the label relative to the cell.
* <code>ALIGN_TOP</code> means the entire label bounds is placed
* completely just on the top of the vertex, <code>ALIGN_BOTTOM</code>
* means adjust on the bottom and <code>ALIGN_MIDDLE</code> means the label
* bounds are horizontally aligned with the bounds of the vertex. Note
* this value doesn't affect the positioning of label within the label
* bounds, to move the label vertically within the label bounds, use
* <code>STYLE_VERTICAL_ALIGN</code>.
*/
public static String STYLE_VERTICAL_LABEL_POSITION = "verticalLabelPosition";
/**
* Defines the key for the align style. Possible values are
* <code>ALIGN_LEFT</code>, <code>ALIGN_CENTER</code> and
* <code>ALIGN_RIGHT</code>. The value defines how any image in the vertex
* label is aligned horizontally within the label bounds of a SHAPE_LABEL
* shape.
*/
public static String STYLE_IMAGE_ALIGN = "imageAlign";
/**
* Defines the key for the verticalAlign style. Possible values are
* <code>ALIGN_TOP</code>, <code>ALIGN_MIDDLE</code> and
* <code>ALIGN_BOTTOM</code>. The value defines how any image in the vertex
* label is aligned vertically within the label bounds of a SHAPE_LABEL
* shape.
*/
public static String STYLE_IMAGE_VERTICAL_ALIGN = "imageVerticalAlign";
/**
* Defines the key for the glass style. Possible values are 0 (disabled) and
* 1(enabled). The default value is 0. This is used in mxLabel.
*/
public static String STYLE_GLASS = "glass";
/**
* Defines the key for the image style. Possible values are any image URL,
* registered key in mxImageResources or short data URI as defined in
* mxImageBundle.
* The type of the value is <code>String</code>. This is the path to the
* image to image that is to be displayed within the label of a vertex. See
* mxGraphics2DCanvas.getImageForStyle, loadImage and setImageBasePath on
* how the image URL is resolved. Finally, mxUtils.loadImage is used for
* loading the image for a given value.
*/
public static String STYLE_IMAGE = "image";
/**
* Defines the key for the imageWidth style. The type of this value is
* <code>int</code>, the value is the image width in pixels and must be
* greated than 0.
*/
public static String STYLE_IMAGE_WIDTH = "imageWidth";
/**
* Defines the key for the imageHeight style The type of this value is
* <code>int</code>, the value is the image height in pixels and must be
* greater than 0.
*/
public static String STYLE_IMAGE_HEIGHT = "imageHeight";
/**
* Defines the key for the image background color. This style is only used
* for image shapes. Possible values are all HTML color names or HEX codes.
*/
public static String STYLE_IMAGE_BACKGROUND = "imageBackground";
/**
* Defines the key for the image border color. This style is only used for
* image shapes. Possible values are all HTML color names or HEX codes.
*/
public static String STYLE_IMAGE_BORDER = "imageBorder";
/**
* Defines the key for the horizontal image flip. This style is only used
* in mxImageShape. Possible values are 0 and 1. Default is 0.
*/
public static String STYLE_IMAGE_FLIPH = "imageFlipH";
/**
* Defines the key for the vertical image flip. This style is only used
* in mxImageShape. Possible values are 0 and 1. Default is 0.
*/
public static String STYLE_IMAGE_FLIPV = "imageFlipV";
/**
* Defines the key for the horizontal stencil flip. This style is only used
* for <mxStencilShape>. Possible values are 0 and 1. Default is 0.
*/
public static String STYLE_STENCIL_FLIPH = "stencilFlipH";
/**
* Defines the key for the vertical stencil flip. This style is only used
* for <mxStencilShape>. Possible values are 0 and 1. Default is 0.
*/
public static String STYLE_STENCIL_FLIPV = "stencilFlipV";
/**
* Defines the key for the horizontal image flip. This style is only used
* in <mxImageShape>. Possible values are 0 and 1. Default is 0.
*/
public static String STYLE_FLIPH = "flipH";
/**
* Variable: STYLE_FLIPV
*
* Defines the key for the vertical flip. Possible values are 0 and 1.
* Default is 0.
*/
public static String STYLE_FLIPV = "flipV";
/**
* Defines the key for the noLabel style. If this is
* true then no label is visible for a given cell.
* Possible values are true or false (1 or 0).
* Default is false.
*/
public static String STYLE_NOLABEL = "noLabel";
/**
* Defines the key for the noEdgeStyle style. If this is
* true then no edge style is applied for a given edge.
* Possible values are true or false (1 or 0).
* Default is false.
*/
public static String STYLE_NOEDGESTYLE = "noEdgeStyle";
/**
* Defines the key for the label background color. The value is a string
* expression supported by mxUtils.parseColor.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_LABEL_BACKGROUNDCOLOR = "labelBackgroundColor";
/**
* Defines the key for the label border color. The value is a string
* expression supported by mxUtils.parseColor.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_LABEL_BORDERCOLOR = "labelBorderColor";
/**
* Defines the key for the indicatorShape style.
* Possible values are any of the SHAPE_*
* constants.
*/
public static String STYLE_INDICATOR_SHAPE = "indicatorShape";
/**
* Defines the key for the indicatorImage style.
* Possible values are any image URL, the type of the value is
* <code>String</code>.
*/
public static String STYLE_INDICATOR_IMAGE = "indicatorImage";
/**
* Defines the key for the indicatorColor style. The value is a string
* expression supported by mxUtils.parseColor.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_INDICATOR_COLOR = "indicatorColor";
/**
* Defines the key for the indicatorGradientColor style. The value is a
* string expression supported by mxUtils.parseColor. This style is only
* supported in SHAPE_LABEL shapes.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_INDICATOR_GRADIENTCOLOR = "indicatorGradientColor";
/**
* Defines the key for the indicatorSpacing style (in px).
*/
public static String STYLE_INDICATOR_SPACING = "indicatorSpacing";
/**
* Defines the key for the indicatorWidth style (in px).
*/
public static String STYLE_INDICATOR_WIDTH = "indicatorWidth";
/**
* Defines the key for the indicatorHeight style (in px).
*/
public static String STYLE_INDICATOR_HEIGHT = "indicatorHeight";
/**
* Defines the key for the shadow style. The type of the value is
* <code>boolean</code>. This style applies to vertices and arrow style
* edges.
*/
public static String STYLE_SHADOW = "shadow";
/**
* Defines the key for the segment style. The type of this value is
* <code>float</code> and the value represents the size of the horizontal
* segment of the entity relation style. Default is ENTITY_SEGMENT.
*/
public static String STYLE_SEGMENT = "segment";
/**
* Defines the key for the endArrow style.
* Possible values are all constants in this
* class that start with ARROW_. This style is
* supported in the <code>mxConnector</code> shape.
*/
public static String STYLE_ENDARROW = "endArrow";
/**
* Defines the key for the startArrow style.
* Possible values are all constants in this
* class that start with ARROW_.
* See STYLE_ENDARROW.
* This style is supported in the mxConnector shape.
*/
public static String STYLE_STARTARROW = "startArrow";
/**
* Defines the key for the endSize style. The type of this value is
* <code>float</code> and the value represents the size of the end
* marker in pixels.
*/
public static String STYLE_ENDSIZE = "endSize";
/**
* Defines the key for the startSize style. The type of this value is
* <code>float</code> and the value represents the size of the start marker
* or the size of the swimlane title region depending on the shape it is
* used for.
*/
public static String STYLE_STARTSIZE = "startSize";
/**
* Defines the key for the swimlaneLine style. This style specifies whether
* the line between the title regio of a swimlane should be visible. Use 0
* for hidden or 1 (default) for visible. Value is "swimlaneLine".
*/
public static String STYLE_SWIMLANE_LINE = "swimlaneLine";
/**
* Defines the key for the endFill style. Use 0 for no fill or 1
* (default) for fill. (This style is only exported via <mxImageExport>.)
*/
public static String STYLE_ENDFILL = "endFill";
/**
* Defines the key for the startFill style. Use 0 for no fill or 1
* (default) for fill. (This style is only exported via <mxImageExport>.)
*/
public static String STYLE_STARTFILL = "startFill";
/**
* Defines the key for the dashed style. The type of this value is
* <code>boolean</code> and the value determines whether or not an edge or
* border is drawn with a dashed pattern along the line.
*/
public static String STYLE_DASHED = "dashed";
/**
* Defines the key for the dashed pattern style. The type of this value
* is <code>float[]</code> and the value specifies the dashed pattern
* to apply to edges drawn with this style. This style allows the user
* to specify a custom-defined dash pattern. This is done using a series
* of numbers. Dash styles are defined in terms of the length of the dash
* (the drawn part of the stroke) and the length of the space between the
* dashes. The lengths are relative to the line width: a length of "1" is
* equal to the line width.
*/
public static String STYLE_DASH_PATTERN = "dashPattern";
/**
* Defines the key for the rounded style. The type of this value is
* <code>boolean</code>. For edges this determines whether or not joins
* between edges segments are smoothed to a rounded finish. For vertices
* that have the rectangle shape, this determines whether or not the
* rectangle is rounded.
*/
public static String STYLE_ROUNDED = "rounded";
/**
* Defines the rounding factor for a rounded rectangle in percent (without
* the percent sign). Possible values are between 0 and 100. If this value
* is not specified then RECTANGLE_ROUNDING_FACTOR * 100 is used. For
* edges, this defines the absolute size of rounded corners in pixels. If
* this values is not specified then LINE_ARCSIZE is used.
* (This style is only exported via <mxImageExport>.) Value is "arcSize".
*/
public static String STYLE_ARCSIZE = "arcSize";
/**
* Defines the key for the source perimeter spacing. The type of this value
* is <code>double</code>. This is the distance between the source
* connection point of an edge and the perimeter of the source vertex in
* pixels. This style only applies to edges.
*/
public static String STYLE_SOURCE_PERIMETER_SPACING = "sourcePerimeterSpacing";
/**
* Defines the key for the target perimeter spacing. The type of this value
* is <code>double</code>. This is the distance between the target
* connection point of an edge and the perimeter of the target vertex in
* pixels. This style only applies to edges.
*/
public static String STYLE_TARGET_PERIMETER_SPACING = "targetPerimeterSpacing";
/**
* Defines the key for the perimeter spacing. This is the distance between
* the connection point and the perimeter in pixels. When used in a vertex
* style, this applies to all incoming edges to floating ports (edges that
* terminate on the perimeter of the vertex). When used in an edge style,
* this spacing applies to the source and target separately, if they
* terminate in floating ports (on the perimeter of the vertex).
*/
public static String STYLE_PERIMETER_SPACING = "perimeterSpacing";
/**
* Defines the key for the spacing. The value represents the spacing, in
* pixels, added to each side of a label in a vertex (style applies to
* vertices only).
*/
public static String STYLE_SPACING = "spacing";
/**
* Defines the key for the spacingTop style. The value represents the
* spacing, in pixels, added to the top side of a label in a vertex (style
* applies to vertices only).
*/
public static String STYLE_SPACING_TOP = "spacingTop";
/**
* Defines the key for the spacingLeft style. The value represents the
* spacing, in pixels, added to the left side of a label in a vertex (style
* applies to vertices only).
*/
public static String STYLE_SPACING_LEFT = "spacingLeft";
/**
* Defines the key for the spacingBottom style The value represents the
* spacing, in pixels, added to the bottom side of a label in a vertex
* (style applies to vertices only).
*/
public static String STYLE_SPACING_BOTTOM = "spacingBottom";
/**
* Defines the key for the spacingRight style The value represents the
* spacing, in pixels, added to the right side of a label in a vertex (style
* applies to vertices only).
*/
public static String STYLE_SPACING_RIGHT = "spacingRight";
/**
* Defines the key for the horizontal style. Possible values are
* <code>true</code> or <code>false</code>. This value only applies to
* vertices. If the <code>STYLE_SHAPE</code> is <code>SHAPE_SWIMLANE</code>
* a value of <code>false</code> indicates that the swimlane should be drawn
* vertically, <code>true</code> indicates to draw it horizontally. If the
* shape style does not indicate that this vertex is a swimlane, this value
* affects only whether the label is drawn horizontally or vertically.
*/
public static String STYLE_HORIZONTAL = "horizontal";
/**
* Defines the key for the direction style. The direction style is used to
* specify the direction of certain shapes (eg. <code>mxTriangle</code>).
* Possible values are <code>DIRECTION_EAST</code> (default),
* <code>DIRECTION_WEST</code>, <code>DIRECTION_NORTH</code> and
* <code>DIRECTION_SOUTH</code>. This value only applies to vertices.
*/
public static String STYLE_DIRECTION = "direction";
/**
* Defines the key for the elbow style. Possible values are
* <code>ELBOW_HORIZONTAL</code> and <code>ELBOW_VERTICAL</code>. Default is
* <code>ELBOW_HORIZONTAL</code>. This defines how the three segment
* orthogonal edge style leaves its terminal vertices. The vertical style
* leaves the terminal vertices at the top and bottom sides.
*/
public static String STYLE_ELBOW = "elbow";
/**
* Defines the key for the fontColor style. The value is type
* <code>String</code> and of the expression supported by
* mxUtils.parseColor.
*
* @see com.mxgraph.util.mxUtils#parseColor(String)
*/
public static String STYLE_FONTCOLOR = "fontColor";
/**
* Defines the key for the fontFamily style. Possible values are names such
* as Arial; Dialog; Verdana; Times New Roman. The value is of type
* <code>String</code>.
*/
public static String STYLE_FONTFAMILY = "fontFamily";
/**
* Defines the key for the fontSize style (in px). The type of the value
* is <code>int</code>.
*/
public static String STYLE_FONTSIZE = "fontSize";
/**
* Defines the key for the fontStyle style. Values may be any logical AND
* (sum) of FONT_BOLD, FONT_ITALIC and FONT_UNDERLINE. The type
* of the value is <code>int</code>.
*/
public static String STYLE_FONTSTYLE = "fontStyle";
/**
* Defines the key for the autosize style. This specifies if a cell should be
* resized automatically if the value has changed. Possible values are 0 or 1.
* Default is 0. See mxGraph.isAutoSizeCell. This is normally combined with
* STYLE_RESIZABLE to disable manual sizing.
*/
public static String STYLE_AUTOSIZE = "autosize";
/**
* Defines the key for the foldable style. This specifies if a cell is foldable
* using a folding icon. Possible values are 0 or 1. Default is 1. See
* mxGraph.isCellFoldable.
*/
public static String STYLE_FOLDABLE = "foldable";
/**
* Defines the key for the editable style. This specifies if the value of
* a cell can be edited using the in-place editor. Possible values are 0 or
* 1. Default is 1. See mxGraph.isCellEditable.
*/
public static String STYLE_EDITABLE = "editable";
/**
* Defines the key for the bendable style. This specifies if the control
* points of an edge can be moved. Possible values are 0 or 1. Default is
* 1. See mxGraph.isCellBendable.
*/
public static String STYLE_BENDABLE = "bendable";
/**
* Defines the key for the movable style. This specifies if a cell can
* be moved. Possible values are 0 or 1. Default is 1. See
* mxGraph.isCellMovable.
*/
public static String STYLE_MOVABLE = "movable";
/**
* Defines the key for the resizable style. This specifies if a cell can
* be resized. Possible values are 0 or 1. Default is 1. See
* mxGraph.isCellResizable.
*/
public static String STYLE_RESIZABLE = "resizable";
/**
* Defines the key for the cloneable style. This specifies if a cell can
* be cloned. Possible values are 0 or 1. Default is 1. See
* mxGraph.isCellCloneable.
*/
public static String STYLE_CLONEABLE = "cloneable";
/**
* Defines the key for the deletable style. This specifies if a cell can be
* deleted. Possible values are 0 or 1. Default is 1. See
* mxGraph.isCellDeletable.
*/
public static String STYLE_DELETABLE = "deletable";
/**
* Defines the key for the shape style.
* Possible values are any of the SHAPE_*
* constants.
*/
public static String STYLE_SHAPE = "shape";
/**
* Takes a function that creates points. Possible values are the
* functions defined in mxEdgeStyle.
*/
public static String STYLE_EDGE = "edgeStyle";
/**
* Defines the key for the loop style. Possible values are the
* functions defined in mxEdgeStyle.
*/
public static String STYLE_LOOP = "loopStyle";
/**
* Defines the key for the horizontal routing center. Possible values are
* between -0.5 and 0.5. This is the relative offset from the center used
* for connecting edges. The type of this value is <code>float</code>.
*/
public static String STYLE_ROUTING_CENTER_X = "routingCenterX";
/**
* Defines the key for the vertical routing center. Possible values are
* between -0.5 and 0.5. This is the relative offset from the center used
* for connecting edges. The type of this value is <code>float</code>.
*/
public static String STYLE_ROUTING_CENTER_Y = "routingCenterY";
/**
* FONT_BOLD
*/
public static final int FONT_BOLD = 1;
/**
* FONT_ITALIC
*/
public static final int FONT_ITALIC = 2;
/**
* FONT_UNDERLINE
*/
public static final int FONT_UNDERLINE = 4;
/**
* SHAPE_RECTANGLE
*/
public static final String SHAPE_RECTANGLE = "rectangle";
/**
* SHAPE_ELLIPSE
*/
public static final String SHAPE_ELLIPSE = "ellipse";
/**
* SHAPE_DOUBLE_RECTANGLE