Modifier and Type | Interface and Description |
---|---|
static interface |
ElementDraft.Factory
Node and edge draft factory.
|
Modifier and Type | Method and Description |
---|---|
void |
addInterval(double start,
double end) |
void |
addInterval(String startDateTime,
String endDateTime) |
void |
addIntervals(String intervals) |
void |
addTimestamp(double timestamp) |
void |
addTimestamp(String dateTime) |
void |
addTimestamps(String timestamps) |
Color |
getColor()
Returns the element's color.
|
Iterable<ColumnDraft> |
getColumns() |
Interval |
getGraphInterval() |
Double |
getGraphTimestamp() |
String |
getId()
Returns the element's id.
|
String |
getLabel()
Returns the element's label.
|
Color |
getLabelColor()
Returns the label's color.
|
float |
getLabelSize()
Returns the label's size.
|
TimeSet |
getTimeSet() |
Object |
getValue(String key)
Returns the element's value for
key . |
boolean |
isLabelVisible()
Returns true if the label is visible.
|
void |
parseAndSetValue(String key,
String value)
Parses and sets the
value for key . |
void |
parseAndSetValue(String key,
String value,
double timestamp)
Parses and sets the
value for key at the given
timestamp . |
void |
parseAndSetValue(String key,
String value,
double start,
double end)
Parses and sets the
value for key at the given
interval [start,end] . |
void |
parseAndSetValue(String key,
String value,
String dateTime)
Parses and sets the
value for key at the given
dateTime . |
void |
parseAndSetValue(String key,
String value,
String startDateTime,
String endDateTime)
Parses and sets the
value for key at the given
dateTime . |
void |
setColor(Color color)
Sets this element's color.
|
void |
setColor(float r,
float g,
float b)
Sets this element's color using real color numbers (i.e numbers between 0
and 1).
|
void |
setColor(int r,
int g,
int b)
Sets this element's color using int color numbers (i.e numbers between 0
and 255).
|
void |
setColor(String color)
Parse and sets this element's color.
|
void |
setColor(String r,
String g,
String b)
Parses and sets this element's color using string components.
|
void |
setLabel(String label)
Sets this element's label.
|
void |
setLabelColor(Color color)
Sets the label's color.
|
void |
setLabelColor(float r,
float g,
float b)
Sets the label's color using real color numbers (i.e numbers between 0
and 1).
|
void |
setLabelColor(int r,
int g,
int b)
Sets the label's color using int color numbers (i.e numbers between 0 and
255).
|
void |
setLabelColor(String color)
Parses and sets the label's color.
|
void |
setLabelColor(String r,
String g,
String b)
Parses and sets the label's color using string components.
|
void |
setLabelSize(float size)
Sets the label's size.
|
void |
setLabelVisible(boolean labelVisible)
Sets whether the label is visible.
|
void |
setValue(String key,
Object value)
Sets the
value for key . |
void |
setValue(String key,
Object value,
double timestamp)
Sets the
value for key at the given
timestamp . |
void |
setValue(String key,
Object value,
double start,
double end)
Sets the
value for key at the given interval
[start,end] . |
void |
setValue(String key,
Object value,
String dateTime)
Sets the
value for key at the given
dateTime . |
void |
setValue(String key,
Object value,
String startDateTime,
String endDateTime)
Sets the
value for key at the given interval
[startDateTime,endDateTime] . |
String getId()
The element id is unique.
Object getValue(String key)
key
.key
- keyString getLabel()
Color getColor()
boolean isLabelVisible()
Default value is true.
float getLabelSize()
Default value is -1.
Color getLabelColor()
void setValue(String key, Object value)
value
for key
.key
- keyvalue
- valuevoid setValue(String key, Object value, double timestamp)
value
for key
at the given
timestamp
.key
- keyvalue
- valuetimestamp
- timestampvoid setValue(String key, Object value, double start, double end)
value
for key
at the given interval
[start,end]
.key
- keyvalue
- valuestart
- interval startend
- interval endvoid setValue(String key, Object value, String dateTime)
value
for key
at the given
dateTime
.key
- keyvalue
- valuedateTime
- dateTimevoid setValue(String key, Object value, String startDateTime, String endDateTime)
value
for key
at the given interval
[startDateTime,endDateTime]
.key
- keyvalue
- valuestartDateTime
- interval start datetimeendDateTime
- interval end datetimevoid parseAndSetValue(String key, String value)
value
for key
.key
- keyvalue
- valuevoid parseAndSetValue(String key, String value, double timestamp)
value
for key
at the given
timestamp
.key
- keyvalue
- valuetimestamp
- timestampvoid parseAndSetValue(String key, String value, double start, double end)
value
for key
at the given
interval [start,end]
.key
- keyvalue
- valuestart
- interval startend
- interval endvoid parseAndSetValue(String key, String value, String dateTime)
value
for key
at the given
dateTime
.key
- keyvalue
- valuedateTime
- dateTimevoid parseAndSetValue(String key, String value, String startDateTime, String endDateTime)
value
for key
at the given
dateTime
.key
- keyvalue
- valuestartDateTime
- interval start datetimeendDateTime
- interval end datetimevoid setLabel(String label)
label
- labelvoid setColor(Color color)
color
- colorvoid setColor(String r, String g, String b)
Components should be numbers between 0 and 255.
r
- red component as stringg
- green component as stringb
- blue component as stringvoid setColor(float r, float g, float b)
r
- red component as floatg
- green component as floatb
- blue component as floatvoid setColor(int r, int g, int b)
r
- red component as intg
- green component as intb
- blue component as intvoid setColor(String color)
Color can be an existing Java color (e.g. yellow, blue, cyan) or an octal or hexadecimal color representation (e.g. 0xFF0096, #FF0096).
color
- color to be parsed and setvoid setLabelVisible(boolean labelVisible)
labelVisible
- label visible flagvoid setLabelSize(float size)
size
- label sizevoid setLabelColor(Color color)
color
- label colorvoid setLabelColor(String r, String g, String b)
Components should be numbers between 0 and 255.
r
- red component as stringg
- green component as stringb
- blue component as stringvoid setLabelColor(float r, float g, float b)
r
- red component as floatg
- green component as floatb
- blue component as floatvoid setLabelColor(int r, int g, int b)
r
- red component as intg
- green component as intb
- blue component as intvoid setLabelColor(String color)
Color can be an existing Java color (e.g. yellow, blue, cyan) or an octal or hexadecimal color representation (e.g. 0xFF0096, #FF0096).
color
- color to be parsed and setvoid addTimestamp(double timestamp)
void addTimestamp(String dateTime)
void addTimestamps(String timestamps)
void addInterval(double start, double end)
void addIntervals(String intervals)
TimeSet getTimeSet()
Iterable<ColumnDraft> getColumns()
Double getGraphTimestamp()
Interval getGraphInterval()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.