Class RelationLine

  • public class RelationLine
    extends java.lang.Object
    • Field Detail

      • fromX

        public final int fromX
      • fromY

        public final int fromY
      • fromDir

        public final int fromDir
      • toX

        public final int toX
      • toY

        public final int toY
      • toDir

        public final int toDir
      • nameDir

        public final int nameDir
      • name

        public final java.lang.String name
    • Constructor Detail

      • RelationLine

        public RelationLine​(int fromX,
                            int fromY,
                            int fromDir,
                            int toX,
                            int toY,
                            int toDir,
                            java.lang.String name)
    • Method Detail

      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • touchedBy

        public boolean touchedBy​(int xx,
                                 int yy)
        Allow this method to use negative width and height
        xx - to check
        yy - to check
        true if xx, yy is inside the rect.
      • getNameDirectionPi

        public double getNameDirectionPi()
      • getNameDirection180

        public int getNameDirection180()
      • getNameWidth

        public int getNameWidth()
      • getNameHeight

        public int getNameHeight()
      • getNameX

        public int getNameX()
      • getNameY

        public int getNameY()