Class TMAbstractEdge

    • Field Detail

      • lineWeight

        protected int lineWeight
      • shape

        protected int shape
      • icon

        protected Icon icon
      • font

        protected Font font
      • underMouse

        protected boolean underMouse
      • DEFAULT_SHAPE

        public static int DEFAULT_SHAPE
      • DEFAULT_LINE_WEIGHT

        public static int DEFAULT_LINE_WEIGHT
      • intBuffer

        protected static int[] intBuffer
      • shouldDisplayRoleHoverHelp

        protected boolean shouldDisplayRoleHoverHelp
      • scopingTopic

        protected TopicIF scopingTopic
    • Constructor Detail

      • TMAbstractEdge

        public TMAbstractEdge​(com.touchgraph.graphlayout.Node f,
                              com.touchgraph.graphlayout.Node t)
    • Method Detail

      • setVisible

        public final void setVisible​(boolean visible)
        setVisible is not supported in Vizigator.
        Specified by:
        setVisible in interface VizTMObjectIF
        Overrides:
        setVisible in class com.touchgraph.graphlayout.Edge
      • calculateMidPointBetween

        protected double calculateMidPointBetween​(double from,
                                                  double to)
      • getMidPoint

        public Point getMidPoint()
        Returns the mid point between the two assocaition targets.
      • getFromRolePosition

        protected Point getFromRolePosition()
      • getToRolePosition

        protected Point getToRolePosition()
      • paintAfterEdges

        public void paintAfterEdges​(Graphics g)
        Specified by:
        paintAfterEdges in interface com.touchgraph.graphlayout.TGPaintListener
      • paintConnection

        protected void paintConnection​(Graphics g)
      • paintLine

        protected void paintLine​(Graphics2D g)
      • paintCurvedLine

        protected void paintCurvedLine​(Graphics2D g,
                                       int index)
      • getCurvedLine

        protected QuadCurve2D getCurvedLine​(int index)
      • paintCurvedBowTie

        protected void paintCurvedBowTie​(Graphics2D g,
                                         int index)
      • getCurvedBowTie

        protected GeneralPath getCurvedBowTie​(int index)
      • getIndexInParents

        protected int getIndexInParents()
      • paintBowTie

        protected void paintBowTie​(Graphics2D g)
      • calculateOffset

        protected Dimension calculateOffset​(double x1,
                                            double x2,
                                            double y1,
                                            double y2,
                                            int weight)
      • paintLast

        public void paintLast​(Graphics g)
        Specified by:
        paintLast in interface com.touchgraph.graphlayout.TGPaintListener
      • paintToolTip

        protected void paintToolTip​(Graphics g)
      • getShape

        public int getShape()
      • getIcon

        public Icon getIcon()
      • getFont

        public Font getFont()
      • addTo

        public void addTo​(com.touchgraph.graphlayout.TGPanel tgpanel)
        Specified by:
        addTo in interface VizTMObjectIF
      • getLineWeight

        public int getLineWeight()
      • paintFirst

        public void paintFirst​(Graphics g)
        Specified by:
        paintFirst in interface com.touchgraph.graphlayout.TGPaintListener
      • paintToolTipText

        protected void paintToolTipText​(Graphics g,
                                        String string,
                                        int x,
                                        int y)
        Parameters:
        g - - The graphic context for the drawing operation.
        string - - The String to be rendered.
        x - - The x coordinate where the String should be positioned.
        y - - The y coordinate where the String should be positioned. NOTE: The text is centered over the given coordinates.
      • paint

        public void paint​(Graphics g,
                          com.touchgraph.graphlayout.TGPanel tgPanel)
        Overrides:
        paint in class com.touchgraph.graphlayout.Edge
      • deleteFrom

        public void deleteFrom​(com.touchgraph.graphlayout.TGPanel tgpanel)
        Specified by:
        deleteFrom in interface VizTMObjectIF
      • paintTypeToolTip

        protected void paintTypeToolTip​(Graphics g)
      • paintToolTipText

        protected void paintToolTipText​(Graphics g,
                                        String text,
                                        Point aPoint)
      • getMainHoverHelpText

        protected String getMainHoverHelpText()
      • setShouldDisplayRoleHoverHelp

        public void setShouldDisplayRoleHoverHelp​(boolean newValue)
      • getTargetsFrom

        public List getTargetsFrom​(com.touchgraph.graphlayout.Node find)
      • getDisplayShape

        protected Shape getDisplayShape()
      • distFromPoint

        public double distFromPoint​(double x,
                                    double y)
        Overrides:
        distFromPoint in class com.touchgraph.graphlayout.Edge