public abstract class ElementDraftImpl extends Object implements ElementDraft
ElementDraft.Factory| Constructor and Description |
|---|
ElementDraftImpl(ImportContainerImpl container,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterval(double intervalStart,
double intervalEnd) |
void |
addInterval(String intervalStartDateTime,
String intervalEndDateTime) |
void |
addIntervals(String intervals) |
void |
addTimestamp(double timestamp) |
void |
addTimestamp(String dateTime) |
void |
addTimestamps(String timestamps) |
Color |
getColor()
Returns the element's color.
|
org.gephi.graph.api.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.
|
org.gephi.graph.api.types.TimeSet |
getTimeSet() |
Object |
getValue(String key)
Returns the element's value for
key. |
boolean |
hasDynamicAttributes() |
boolean |
isDynamic() |
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]. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnspublic ElementDraftImpl(ImportContainerImpl container, String id)
public Double getGraphTimestamp()
getGraphTimestamp in interface ElementDraftpublic org.gephi.graph.api.Interval getGraphInterval()
getGraphInterval in interface ElementDraftpublic String getId()
ElementDraftThe element id is unique.
getId in interface ElementDraftpublic String getLabel()
ElementDraftgetLabel in interface ElementDraftpublic Color getColor()
ElementDraftgetColor in interface ElementDraftpublic boolean isLabelVisible()
ElementDraftDefault value is true.
isLabelVisible in interface ElementDraftpublic float getLabelSize()
ElementDraftDefault value is -1.
getLabelSize in interface ElementDraftpublic Color getLabelColor()
ElementDraftgetLabelColor in interface ElementDraftpublic void setLabel(String label)
ElementDraftsetLabel in interface ElementDraftlabel - labelpublic void setColor(Color color)
ElementDraftsetColor in interface ElementDraftcolor - colorpublic Object getValue(String key)
ElementDraftkey.getValue in interface ElementDraftkey - keypublic void setColor(String r, String g, String b)
ElementDraftComponents should be numbers between 0 and 255.
setColor in interface ElementDraftr - red component as stringg - green component as stringb - blue component as stringpublic void setColor(float r,
float g,
float b)
ElementDraftsetColor in interface ElementDraftr - red component as floatg - green component as floatb - blue component as floatpublic void setColor(int r,
int g,
int b)
ElementDraftsetColor in interface ElementDraftr - red component as intg - green component as intb - blue component as intpublic void setColor(String color)
ElementDraftColor can be an existing Java color (e.g. yellow, blue, cyan) or an octal or hexadecimal color representation (e.g. 0xFF0096, #FF0096).
setColor in interface ElementDraftcolor - color to be parsed and setpublic void setLabelVisible(boolean labelVisible)
ElementDraftsetLabelVisible in interface ElementDraftlabelVisible - label visible flagpublic void setLabelSize(float size)
ElementDraftsetLabelSize in interface ElementDraftsize - label sizepublic void setLabelColor(Color color)
ElementDraftsetLabelColor in interface ElementDraftcolor - label colorpublic void setLabelColor(String r, String g, String b)
ElementDraftComponents should be numbers between 0 and 255.
setLabelColor in interface ElementDraftr - red component as stringg - green component as stringb - blue component as stringpublic void setLabelColor(float r,
float g,
float b)
ElementDraftsetLabelColor in interface ElementDraftr - red component as floatg - green component as floatb - blue component as floatpublic void setLabelColor(int r,
int g,
int b)
ElementDraftsetLabelColor in interface ElementDraftr - red component as intg - green component as intb - blue component as intpublic void setLabelColor(String color)
ElementDraftColor can be an existing Java color (e.g. yellow, blue, cyan) or an octal or hexadecimal color representation (e.g. 0xFF0096, #FF0096).
setLabelColor in interface ElementDraftcolor - color to be parsed and setpublic void setValue(String key, Object value)
ElementDraftvalue for key.setValue in interface ElementDraftkey - keyvalue - valuepublic void setValue(String key, Object value, String dateTime)
ElementDraftvalue for key at the given
dateTime.setValue in interface ElementDraftkey - keyvalue - valuedateTime - dateTimepublic void setValue(String key, Object value, double timestamp)
ElementDraftvalue for key at the given
timestamp.setValue in interface ElementDraftkey - keyvalue - valuetimestamp - timestamppublic void setValue(String key, Object value, String startDateTime, String endDateTime)
ElementDraftvalue for key at the given interval
[startDateTime,endDateTime].setValue in interface ElementDraftkey - keyvalue - valuestartDateTime - interval start datetimeendDateTime - interval end datetimepublic void setValue(String key, Object value, double start, double end)
ElementDraftvalue for key at the given interval
[start,end].setValue in interface ElementDraftkey - keyvalue - valuestart - interval startend - interval endpublic void parseAndSetValue(String key, String value)
ElementDraftvalue for key.parseAndSetValue in interface ElementDraftkey - keyvalue - valuepublic void parseAndSetValue(String key, String value, String dateTime)
ElementDraftvalue for key at the given
dateTime.parseAndSetValue in interface ElementDraftkey - keyvalue - valuedateTime - dateTimepublic void parseAndSetValue(String key, String value, double timestamp)
ElementDraftvalue for key at the given
timestamp.parseAndSetValue in interface ElementDraftkey - keyvalue - valuetimestamp - timestamppublic void parseAndSetValue(String key, String value, String startDateTime, String endDateTime)
ElementDraftvalue for key at the given
dateTime.parseAndSetValue in interface ElementDraftkey - keyvalue - valuestartDateTime - interval start datetimeendDateTime - interval end datetimepublic void parseAndSetValue(String key, String value, double start, double end)
ElementDraftvalue for key at the given
interval [start,end].parseAndSetValue in interface ElementDraftkey - keyvalue - valuestart - interval startend - interval endpublic void addTimestamp(String dateTime)
addTimestamp in interface ElementDraftpublic void addTimestamp(double timestamp)
addTimestamp in interface ElementDraftpublic void addTimestamps(String timestamps)
addTimestamps in interface ElementDraftpublic org.gephi.graph.api.types.TimeSet getTimeSet()
getTimeSet in interface ElementDraftpublic void addInterval(String intervalStartDateTime, String intervalEndDateTime)
addInterval in interface ElementDraftpublic void addIntervals(String intervals)
addIntervals in interface ElementDraftpublic void addInterval(double intervalStart,
double intervalEnd)
addInterval in interface ElementDraftpublic boolean isDynamic()
public boolean hasDynamicAttributes()
Copyright © 2007–2017. All rights reserved.