Documentation of 'jhplot.jadraw.Diagram' Java class.
Diagram
jhplot.jadraw

Class 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 object
      static JaBox Box(float xin, float yin)
      Get a box object
      static JaFArc FArc(float x1, float y1, float x2, float y2, float x3, float y3) 
      static JaFLine FLine(float xin, float yin)
      Get a fermion line
      static JaFLoop FLoop(float xin, float yin)
      Get a fermion loop object
      static JaGArc GArc(float x1, float y1, float x2, float y2, float x3, float y3)
      Get a g-line object
      static 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 object
      static JaGlLoop GlLoop(float xin, float yin)
      Get a gluon loop object
      static JaGLoop GLoop(float xin, float yin)
      Get a g-loop object
      static JaKey Key(int keytype, java.lang.String text, float xxin, float yyin)
      Get a text with key symbol
      static 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 object
      static JaPLoop PLoop(float xin, float yin)
      Get a photon loop object
      static 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 object
      static JaTextBox TextBox(java.lang.String[] text, float xxin, float yyin)
      A multiline boxed text object
      static JaTextBox TextBox(java.lang.String text, float xxin, float yyin)
      A boxed text object
      static JaObject Vertex(int vertexType, float xxin, float yyin)
      Get a vertex object
      static JaZigZagLine ZigZagLine(float xin, float yin)
      Get a zig zag object
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Diagram

        public Diagram()
    • Method Detail

      • Box

        public static JaBox Box(float xin,
                                float yin)
        Get a box object
        Parameters:
        xin - coordinate in NDC
        yin - coordinate in NDC
        Returns:
      • Blob

        public static JaBlob Blob(float xin,
                                  float yin)
        Get a blob object
        Parameters:
        xin - coordinate in NDC
        yin - 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 NDC
        yyin - coordinate in NDC
        Returns:
      • ZigZagLine

        public static JaZigZagLine ZigZagLine(float xin,
                                              float yin)
        Get a zig zag object
        Parameters:
        xin - coordinate in NDC
        yin - 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 NDC
        yyin - coordinate in NDC
        Returns:
      • TextBox

        public static JaTextBox TextBox(java.lang.String text,
                                        float xxin,
                                        float yyin)
        A boxed text object
        Parameters:
        text - input string
        xxin - coordinate in NDC
        yyin - 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 strings
        xxin - coordinate in NDC
        yyin - 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 - text
        xxin - coordinate in NDC
        yyin - coordinate in NDC
        Returns:
      • PLine

        public static JaPLine PLine(float xin,
                                    float yin)
        Get a photon line object
        Parameters:
        xin - coordinate in NDC
        yin - 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 NDC
        yin - coordinate in NDC
        Returns:
      • GlLine

        public static JaGlLine GlLine(float xin,
                                      float yin)
        Get a gluon line object
        Parameters:
        xin - coordinate in NDC
        yin - 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 NDC
        yin - coordinate in NDC
        Returns:
      • FLine

        public static JaFLine FLine(float xin,
                                    float yin)
        Get a fermion line
        Parameters:
        xin - coordinate in NDC
        yin - coordinate in NDC
        Returns:
      • FLoop

        public static JaFLoop FLoop(float xin,
                                    float yin)
        Get a fermion loop object
        Parameters:
        xin - coordinate in NDC
        yin - 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 NDC
        yin - coordinate in NDC
        Returns:
      • SLoop

        public static JaSLoop SLoop(float xin,
                                    float yin)
        A s-loop for scalar particles.
        Parameters:
        xin - coordinate in NDC
        yin - 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 NDC
        yin - coordinate in NDC
        Returns:
      • GLine

        public static JaGLine GLine(float xin,
                                    float yin)
        A g-line for ghost particles.
        Parameters:
        xin - coordinate in NDC
        yin - coordinate in NDC
        Returns:
      • GLoop

        public static JaGLoop GLoop(float xin,
                                    float yin)
        Get a g-loop object
        Parameters:
        xin - coordinate in NDC
        yin - 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 NDC
        yin - coordinate in NDC
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG