jhplot.jadraw
Class Diagram
- java.lang.Object
-
- jhplot.jadraw.Diagram
-
public class Diagram extends java.lang.Object
Main static methods to build objects for Feynman diagrams.
-
-
Constructor Summary
Constructors Constructor and Description Diagram()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static JaBlob
Blob(float xin, float yin)
Get a blob objectstatic JaBox
Box(float xin, float yin)
Get a box objectstatic JaFArc
FArc(float x1, float y1, float x2, float y2, float x3, float y3)
static JaFLine
FLine(float xin, float yin)
Get a fermion linestatic JaFLoop
FLoop(float xin, float yin)
Get a fermion loop objectstatic JaGArc
GArc(float x1, float y1, float x2, float y2, float x3, float y3)
Get a g-line objectstatic JaGlArc
GlArc(float x1, float y1, float x2, float y2, float x3, float y3)
static JaGLine
GLine(float xin, float yin)
A g-line for ghost particles.static JaGlLine
GlLine(float xin, float yin)
Get a gluon line objectstatic JaGlLoop
GlLoop(float xin, float yin)
Get a gluon loop objectstatic JaGLoop
GLoop(float xin, float yin)
Get a g-loop objectstatic JaKey
Key(int keytype, java.lang.String text, float xxin, float yyin)
Get a text with key symbolstatic JaPArc
PArc(float x1, float y1, float x2, float y2, float x3, float y3)
static JaPLine
PLine(float xin, float yin)
Get a photon line objectstatic JaPLoop
PLoop(float xin, float yin)
Get a photon loop objectstatic JaSArc
SArc(float x1, float y1, float x2, float y2, float x3, float y3)
A s-line for scalar particles.static JaSLine
SLine(float xin, float yin)
A s-line object for scalar particles.static JaSLoop
SLoop(float xin, float yin)
A s-loop for scalar particles.static JaText
Text(java.lang.String text, float xxin, float yyin)
Get a text objectstatic JaTextBox
TextBox(java.lang.String[] text, float xxin, float yyin)
A multiline boxed text objectstatic JaTextBox
TextBox(java.lang.String text, float xxin, float yyin)
A boxed text objectstatic JaObject
Vertex(int vertexType, float xxin, float yyin)
Get a vertex objectstatic JaZigZagLine
ZigZagLine(float xin, float yin)
Get a zig zag object
-
-
-
Method Detail
-
Box
public static JaBox Box(float xin, float yin)
Get a box object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
Blob
public static JaBlob Blob(float xin, float yin)
Get a blob object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
Vertex
public static JaObject Vertex(int vertexType, float xxin, float yyin)
Get a vertex object- Parameters:
vertexType
- 0 A vertex type 1 object (a dot).
1 A vertex type 2 object (a cross with a circle)
2 A vertex type 3 object (a filled square)
3 A vertex type 4 object (a cross).
4 A vertex type 5 object (a triangle).
5 A vertex type 6 object (a diamond).xxin
- coordinate in NDCyyin
- coordinate in NDC- Returns:
-
ZigZagLine
public static JaZigZagLine ZigZagLine(float xin, float yin)
Get a zig zag object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
Text
public static JaText Text(java.lang.String text, float xxin, float yyin)
Get a text object- Parameters:
xxin
- coordinate in NDCyyin
- coordinate in NDC- Returns:
-
TextBox
public static JaTextBox TextBox(java.lang.String text, float xxin, float yyin)
A boxed text object- Parameters:
text
- input stringxxin
- coordinate in NDCyyin
- coordinate in NDC- Returns:
-
TextBox
public static JaTextBox TextBox(java.lang.String[] text, float xxin, float yyin)
A multiline boxed text object- Parameters:
text
- input stringsxxin
- coordinate in NDCyyin
- coordinate in NDC- Returns:
-
Key
public static JaKey Key(int keytype, java.lang.String text, float xxin, float yyin)
Get a text with key symbol- Parameters:
keytype
- key type (1-12 and 20 (line), 21 (box), 22 (filled box)text
- textxxin
- coordinate in NDCyyin
- coordinate in NDC- Returns:
-
PLine
public static JaPLine PLine(float xin, float yin)
Get a photon line object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
PArc
public static JaPArc PArc(float x1, float y1, float x2, float y2, float x3, float y3)
-
PLoop
public static JaPLoop PLoop(float xin, float yin)
Get a photon loop object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
GlLine
public static JaGlLine GlLine(float xin, float yin)
Get a gluon line object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
GlArc
public static JaGlArc GlArc(float x1, float y1, float x2, float y2, float x3, float y3)
-
GlLoop
public static JaGlLoop GlLoop(float xin, float yin)
Get a gluon loop object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
FLine
public static JaFLine FLine(float xin, float yin)
Get a fermion line- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
FLoop
public static JaFLoop FLoop(float xin, float yin)
Get a fermion loop object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
FArc
public static JaFArc FArc(float x1, float y1, float x2, float y2, float x3, float y3)
-
SLine
public static JaSLine SLine(float xin, float yin)
A s-line object for scalar particles.- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
SLoop
public static JaSLoop SLoop(float xin, float yin)
A s-loop for scalar particles.- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
SArc
public static JaSArc SArc(float x1, float y1, float x2, float y2, float x3, float y3)
A s-line for scalar particles.- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
GLine
public static JaGLine GLine(float xin, float yin)
A g-line for ghost particles.- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
GLoop
public static JaGLoop GLoop(float xin, float yin)
Get a g-loop object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
GArc
public static JaGArc GArc(float x1, float y1, float x2, float y2, float x3, float y3)
Get a g-line object- Parameters:
xin
- coordinate in NDCyin
- coordinate in NDC- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG