|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.dynamic.DynamicUtilities
public final class DynamicUtilities
Contains only static, and toolkit functions, like type conversion for the needs of dynamic stuff.
Constructor Summary | |
---|---|
DynamicUtilities()
|
Method Summary | |
---|---|
static DynamicType |
createDynamicObject(AttributeType type,
DynamicType source)
Returns a deep copy of source . |
static DynamicType |
createDynamicObject(AttributeType type,
DynamicType source,
Interval in)
Returns a deep copy of source that contains a given
Interval in. |
static DynamicType |
createDynamicObject(AttributeType type,
DynamicType source,
Interval in,
Interval out)
Returns a deep copy of source that contains a given
Interval in. |
static DynamicType |
createDynamicObject(AttributeType type,
DynamicType source,
java.util.List<Interval> in)
Returns a deep copy of source with additional intervals
given by List<Interval> in. |
static DynamicType |
createDynamicObject(AttributeType type,
DynamicType source,
java.util.List<Interval> in,
java.util.List<Interval> out)
Returns a deep copy of source with additional intervals
given by List<Interval> in. |
static DynamicType |
createDynamicObject(AttributeType type,
Interval in)
Returns a new DynamicType instance that contains a given
Interval in. |
static DynamicType |
createDynamicObject(AttributeType type,
java.util.List<Interval> in)
Returns a new DynamicType instance with intervals given by
List<Interval> in. |
static Interval |
createInterval(DynamicType dynamicType,
double low,
double high,
boolean lopen,
boolean ropen,
java.lang.Object value)
|
static DynamicType |
fitToInterval(DynamicType source,
double low,
double high)
It checks intervals of the source and make it fit to the given interval
[low , high ], possibly removing intervals out of the window and
changing low or high of intervals to fit. |
static DynamicType |
fitToInterval(DynamicType source,
Interval interval)
It checks intervals of the source and make it fit to the given interval,
possibly removing intervals out of the window and
changing low or high of intervals to fit. |
static double |
getDoubleFromXMLDateString(java.lang.String str)
Used for import (parses XML date strings). |
static java.lang.Object |
getDynamicValue(java.lang.Object value,
double low,
double high)
|
static TimeInterval |
getVisibleInterval(DynamicModel dynamicModel)
Returns the visible time interval of dynamicModel if it is not
[-inf, +inf]. |
static java.lang.String |
getXMLDateStringFromDouble(double d)
Used for export (writes XML date strings). |
static DynamicType |
removeOverlapping(DynamicType dynamicType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicUtilities()
Method Detail |
---|
public static double getDoubleFromXMLDateString(java.lang.String str)
str
- a string to parse from
java.lang.IllegalArgumentException
- if str
is not a valid XMLGregorianCalendar
.
java.lang.NullPointerException
- if str
is null.public static java.lang.String getXMLDateStringFromDouble(double d)
d
- a double to convert from
java.lang.IllegalArgumentException
- if d
is infinite.public static DynamicType createDynamicObject(AttributeType type, Interval in)
DynamicType
instance that contains a given
Interval
in.
in
- interval to add (could be null)
DynamicType
instance that contains a given
Interval
in.public static DynamicType createDynamicObject(AttributeType type, java.util.List<Interval> in)
DynamicType
instance with intervals given by
List<Interval>
in.
in
- intervals to add (could be null)
DynamicType
instance with intervals given by
List<Interval>
in.public static DynamicType createDynamicObject(AttributeType type, DynamicType source)
source
.
source
- an object to copy from (could be null, then completely new
instance is created)
source
.public static DynamicType createDynamicObject(AttributeType type, DynamicType source, Interval in)
source
that contains a given
Interval
in.
source
- an object to copy from (could be null, then completely new
instance is created)in
- interval to add (could be null)
source
that contains a given
Interval
in.public static DynamicType createDynamicObject(AttributeType type, DynamicType source, Interval in, Interval out)
source
that contains a given
Interval
in. Before add it removes from the newly created
object all intervals that overlap with a given Interval
out.
source
- an object to copy from (could be null, then completely new
instance is created)in
- interval to add (could be null)out
- interval to remove (could be null)
source
that contains a given
Interval
in. Before add it removes from the newly created
object all intervals that overlap with a given Interval
out.public static DynamicType createDynamicObject(AttributeType type, DynamicType source, java.util.List<Interval> in)
source
with additional intervals
given by List<Interval>
in.
source
- an object to copy from (could be null, then completely new
instance is created)in
- intervals to add (could be null)
source
with additional intervals
given by List<Interval>
in.public static DynamicType createDynamicObject(AttributeType type, DynamicType source, java.util.List<Interval> in, java.util.List<Interval> out)
source
with additional intervals
given by List<Interval>
in. Before add it removes from the
newly created object all intervals that overlap with intervals given by
List<Interval>
out.
It can return null
if type is not dynamic.
source
- an object to copy from (could be null, then completely new
instance is created)in
- intervals to add (could be null)out
- intervals to remove (could be null)
source
with additional intervals
given by List<Interval>
in. Before add it removes from the
newly created object all intervals that overlap with intervals given by
List<Interval>
out. It can return null
if type
is not dynamic.public static DynamicType fitToInterval(DynamicType source, Interval interval)
source
and make it fit to the given interval,
possibly removing intervals out of the window and
changing low or high of intervals to fit.
source
- a DynamicType
to be performedinterval
- a given interval
DynamicType
instance.
java.lang.NullPointerException
- if source
is null.public static DynamicType fitToInterval(DynamicType source, double low, double high)
source
and make it fit to the given interval
[low
, high
], possibly removing intervals out of the window and
changing low or high of intervals to fit.
source
- a DynamicType
to be performedlow
- the left endpointhigh
- the right endpoint
DynamicType
instance.
java.lang.NullPointerException
- if source
is null.
java.lang.IllegalArgumentException
- if low
> high
.public static TimeInterval getVisibleInterval(DynamicModel dynamicModel)
dynamicModel
if it is not
[-inf, +inf]. Returns null in other cases.
- Parameters:
dynamicModel
- the dynamic model
- Returns:
- the valid visible interval, or
null
.
public static java.lang.Object getDynamicValue(java.lang.Object value, double low, double high)
public static DynamicType removeOverlapping(DynamicType dynamicType)
public static Interval createInterval(DynamicType dynamicType, double low, double high, boolean lopen, boolean ropen, java.lang.Object value)
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |