Class LVI<V>

  • Type Parameters:
    V -
    All Implemented Interfaces:
    LV<V>, SV<V>
    Direct Known Subclasses:
    SyntheticLV, SyntheticLV

    public class LVI<V>
    extends SVI<V>
    implements LV<V>
    Implementation of a vertex type for a layered layout algorithm.
    Instances of LVI<V> replace instances of V during layout The LVI<V> holds metadata information about the position of the vertex in the layered graph.
    • Field Detail

      • rank

        protected int rank
      • index

        protected int index
      • pos

        protected int pos
      • measure

        protected double measure
    • Constructor Detail

      • LVI

        protected LVI()
      • LVI

        protected LVI​(V vertex)
      • LVI

        protected LVI​(V vertex,
                      int rank,
                      int index)
      • LVI

        protected LVI​(V vertex,
                      int rank,
                      int index,
                      int pos,
                      double measure,
                      Point p)
      • LVI

        public LVI​(LVI<V> other)
    • Method Detail

      • copy

        public <T extends LV<V>> T copy()
        Specified by:
        copy in interface LV<V>
      • setRank

        public void setRank​(int rank)
        Specified by:
        setRank in interface LV<V>
      • getRank

        public int getRank()
        Specified by:
        getRank in interface LV<V>
      • setIndex

        public void setIndex​(int index)
        Specified by:
        setIndex in interface LV<V>
      • getIndex

        public int getIndex()
        Specified by:
        getIndex in interface LV<V>
      • getPoint

        public Point getPoint()
        Specified by:
        getPoint in interface LV<V>
      • setPoint

        public void setPoint​(Point p)
        Specified by:
        setPoint in interface LV<V>
      • getPos

        public int getPos()
        Specified by:
        getPos in interface LV<V>
      • setPos

        public void setPos​(int pos)
        Specified by:
        setPos in interface LV<V>
      • getMeasure

        public double getMeasure()
        Specified by:
        getMeasure in interface LV<V>
      • setMeasure

        public void setMeasure​(double measure)
        Specified by:
        setMeasure in interface LV<V>
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class SVI<V>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class SVI<V>