Gephi Toolkit Javadoc

org.gephi.data.attributes.api
Class AttributeUtils

java.lang.Object
  extended by org.gephi.data.attributes.api.AttributeUtils

public abstract class AttributeUtils
extends java.lang.Object

Author:
Mathieu Bastian, Martin Ć kurla

Constructor Summary
AttributeUtils()
           
 
Method Summary
abstract  boolean areAllColumnsOfSameType(AttributeColumn[] columns)
           
abstract  boolean areAllColumnsOfType(AttributeColumn[] columns, AttributeType type)
           
abstract  boolean areAllDynamicNumberColumns(AttributeColumn[] columns)
           
abstract  boolean areAllNumberColumns(AttributeColumn[] columns)
           
abstract  boolean areAllNumberListColumns(AttributeColumn[] columns)
           
abstract  boolean areAllNumberOrNumberListColumns(AttributeColumn[] columns)
           
abstract  boolean areAllStringColumns(AttributeColumn[] columns)
           
abstract  AttributeColumn[] getAllCollums(AttributeModel model)
           
static AttributeUtils getDefault()
           
abstract  java.lang.Comparable getMax(AttributeColumn column, java.lang.Comparable[] values)
           
abstract  java.lang.Comparable getMin(AttributeColumn column, java.lang.Comparable[] values)
           
abstract  AttributeColumn[] getNumberColumns(AttributeTable table)
           
abstract  AttributeColumn[] getStringColumns(AttributeTable table)
           
static java.lang.String getXMLDateStringFromDouble(double d)
          Used for attributes representation.
abstract  boolean isColumnOfType(AttributeColumn column, AttributeType type)
           
abstract  boolean isDynamicNumberColumn(AttributeColumn column)
           
abstract  boolean isEdgeColumn(AttributeColumn column)
           
abstract  boolean isNodeColumn(AttributeColumn column)
           
abstract  boolean isNumberColumn(AttributeColumn column)
           
abstract  boolean isNumberListColumn(AttributeColumn column)
           
abstract  boolean isNumberOrNumberListColumn(AttributeColumn column)
           
abstract  boolean isStringColumn(AttributeColumn column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeUtils

public AttributeUtils()
Method Detail

isNodeColumn

public abstract boolean isNodeColumn(AttributeColumn column)

isEdgeColumn

public abstract boolean isEdgeColumn(AttributeColumn column)

isColumnOfType

public abstract boolean isColumnOfType(AttributeColumn column,
                                       AttributeType type)

areAllColumnsOfType

public abstract boolean areAllColumnsOfType(AttributeColumn[] columns,
                                            AttributeType type)

areAllColumnsOfSameType

public abstract boolean areAllColumnsOfSameType(AttributeColumn[] columns)

isStringColumn

public abstract boolean isStringColumn(AttributeColumn column)

areAllStringColumns

public abstract boolean areAllStringColumns(AttributeColumn[] columns)

isNumberColumn

public abstract boolean isNumberColumn(AttributeColumn column)

areAllNumberColumns

public abstract boolean areAllNumberColumns(AttributeColumn[] columns)

isNumberListColumn

public abstract boolean isNumberListColumn(AttributeColumn column)

areAllNumberListColumns

public abstract boolean areAllNumberListColumns(AttributeColumn[] columns)

isNumberOrNumberListColumn

public abstract boolean isNumberOrNumberListColumn(AttributeColumn column)

areAllNumberOrNumberListColumns

public abstract boolean areAllNumberOrNumberListColumns(AttributeColumn[] columns)

isDynamicNumberColumn

public abstract boolean isDynamicNumberColumn(AttributeColumn column)

areAllDynamicNumberColumns

public abstract boolean areAllDynamicNumberColumns(AttributeColumn[] columns)

getNumberColumns

public abstract AttributeColumn[] getNumberColumns(AttributeTable table)

getStringColumns

public abstract AttributeColumn[] getStringColumns(AttributeTable table)

getAllCollums

public abstract AttributeColumn[] getAllCollums(AttributeModel model)

getMin

public abstract java.lang.Comparable getMin(AttributeColumn column,
                                            java.lang.Comparable[] values)

getMax

public abstract java.lang.Comparable getMax(AttributeColumn column,
                                            java.lang.Comparable[] values)

getDefault

public static AttributeUtils getDefault()

getXMLDateStringFromDouble

public static java.lang.String getXMLDateStringFromDouble(double d)
Used for attributes representation.

Parameters:
d - a double to convert from
Returns:
an XML date string.
Throws:
java.lang.IllegalArgumentException - if d is infinite.

Gephi Toolkit Javadoc