Package org.gephi.graph.api
Interface ElementProperties
-
- All Known Subinterfaces:
Edge
,EdgeProperties
,Element
,Node
,NodeProperties
public interface ElementProperties
Element visual properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
alpha()
Returns the alpha (transparency) component between zero and one.float
b()
Returns the blue color component between zero and one.float
g()
Returns the green color component between zero and one.Color
getColor()
Returns the color.int
getRGBA()
Returns the RGBA color.TextProperties
getTextProperties()
Returns the text properties.float
r()
Returns the red color component between zero and one.void
setAlpha(float a)
Sets the alpha (transparency) color component.void
setB(float b)
Sets the blue color component.void
setColor(Color color)
Sets the color.void
setG(float g)
Sets the green color component.void
setR(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
-
-