Class PartitionImpl

    • Constructor Detail

      • PartitionImpl

        protected PartitionImpl()
    • Method Detail

      • getColor

        public Color getColor​(Object value)
        Description copied from interface: Partition
        Returns the color for the given value.
        Specified by:
        getColor in interface Partition
        Parameters:
        value - value to get the color for
        Returns:
        color or null if not defined
      • setColor

        public void setColor​(Object value,
                             Color color)
        Description copied from interface: Partition
        Sets the color for the given value.
        Specified by:
        setColor in interface Partition
        Parameters:
        value - value to set the color for
        color - color
      • setColors

        public void setColors​(org.gephi.graph.api.Graph graph,
                              Color[] colors)
        Description copied from interface: Partition
        Sets the colors for all values. It uses the descending value count as order from getSortedValues().
        Specified by:
        setColors in interface Partition
        Parameters:
        graph - graph this partition applies to
        colors - colors to set
      • isValid

        public abstract boolean isValid​(org.gephi.graph.api.Graph graph)
      • getValueType

        public abstract Class getValueType()
      • getVersion

        public abstract int getVersion​(org.gephi.graph.api.Graph graph)