Package org.gephi.graph.api
Interface ElementProperties
-
- All Known Subinterfaces:
Edge,EdgeProperties,Element,Node,NodeProperties
public interface ElementPropertiesElement visual properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatalpha()Returns the alpha (transparency) component between zero and one.floatb()Returns the blue color component between zero and one.floatg()Returns the green color component between zero and one.ColorgetColor()Returns the color.intgetRGBA()Returns the RGBA color.TextPropertiesgetTextProperties()Returns the text properties.floatr()Returns the red color component between zero and one.voidsetAlpha(float a)Sets the alpha (transparency) color component.voidsetB(float b)Sets the blue color component.voidsetColor(Color color)Sets the color.voidsetG(float g)Sets the green color component.voidsetR(float r)Sets the red color component.
-
-
-
Method Detail
-
r
float r()
Returns the red color component between zero and one.- Returns:
- the red color component
-
g
float g()
Returns the green color component between zero and one.- Returns:
- the green color component
-
b
float b()
Returns the blue color component between zero and one.- Returns:
- the blue color component
-
getRGBA
int getRGBA()
Returns the RGBA color.- Returns:
- the color
-
getColor
Color getColor()
Returns the color.- Returns:
- the color
-
alpha
float alpha()
Returns the alpha (transparency) component between zero and one.- Returns:
- the alpha
-
getTextProperties
TextProperties getTextProperties()
Returns the text properties.- Returns:
- the text properties
-
setR
void setR(float r)
Sets the red color component.- Parameters:
r- the color component, between zero and one
-
setG
void setG(float g)
Sets the green color component.- Parameters:
g- the color component, between zero and one
-
setB
void setB(float b)
Sets the blue color component.- Parameters:
b- the color component, between zero and one
-
setAlpha
void setAlpha(float a)
Sets the alpha (transparency) color component.- Parameters:
a- the alpha component, between zero and one
-
setColor
void setColor(Color color)
Sets the color.- Parameters:
color- the color
-
-