Package org.gephi.graph.api
Interface TextProperties
-
public interface TextPropertiesText visual properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetAlpha()Returns the alpha (transparency) component between zero and one.floatgetB()Returns the blue color component between zero and one.ColorgetColor()Returns the color.floatgetG()Returns the green color component between zero and one.floatgetHeight()Returns the text's height.floatgetR()Returns the red color component between zero and one.intgetRGBA()Returns the RGBA color.floatgetSize()Returns the size.StringgetText()Returns the text.floatgetWidth()Returns the text's width.booleanisVisible()Returns true if visible.voidsetAlpha(float a)Sets the alpha (transparency) component.voidsetB(float b)Sets the blue color component.voidsetColor(Color color)Sets the color.voidsetDimensions(float width, float height)Sets the text's dimensions.voidsetG(float g)Sets the green color component.voidsetR(float r)Sets the red color component.voidsetSize(float size)Sets the size.voidsetText(String text)Sets the text.voidsetVisible(boolean visible)Sets the visibility.
-
-
-
Method Detail
-
getR
float getR()
Returns the red color component between zero and one.- Returns:
- the red color component
-
getG
float getG()
Returns the green color component between zero and one.- Returns:
- the green color component
-
getB
float getB()
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
-
getAlpha
float getAlpha()
Returns the alpha (transparency) component between zero and one.- Returns:
- the alpha
-
getSize
float getSize()
Returns the size.- Returns:
- the size
-
isVisible
boolean isVisible()
Returns true if visible.- Returns:
- true if visible, false otherwise
-
getText
String getText()
Returns the text.- Returns:
- the text
-
getWidth
float getWidth()
Returns the text's width.- Returns:
- the width
-
getHeight
float getHeight()
Returns the text's height.- Returns:
- the height
-
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) component.- Parameters:
a- the alpha component, between zero and one
-
setColor
void setColor(Color color)
Sets the color.- Parameters:
color- the color
-
setSize
void setSize(float size)
Sets the size.- Parameters:
size- the size
-
setVisible
void setVisible(boolean visible)
Sets the visibility.- Parameters:
visible- true if visible, false otherwise
-
setText
void setText(String text)
Sets the text.- Parameters:
text- the text
-
setDimensions
void setDimensions(float width, float height)Sets the text's dimensions.- Parameters:
width- widthheight- height
-
-