public interface TextProperties
Modifier and Type | Method and Description |
---|---|
float |
getAlpha()
Returns the alpha (transparency) component between zero and one.
|
float |
getB()
Returns the blue color component between zero and one.
|
Color |
getColor()
Returns the color.
|
float |
getG()
Returns the green color component between zero and one.
|
float |
getHeight()
Returns the text's height.
|
float |
getR()
Returns the red color component between zero and one.
|
int |
getRGBA()
Returns the RGBA color.
|
float |
getSize()
Returns the size.
|
String |
getText()
Returns the text.
|
float |
getWidth()
Returns the text's width.
|
boolean |
isVisible()
Returns true if visible.
|
void |
setAlpha(float a)
Sets the alpha (transparency) component.
|
void |
setB(float b)
Sets the blue color component.
|
void |
setColor(Color color)
Sets the color.
|
void |
setDimensions(float width,
float height)
Sets the text's dimensions.
|
void |
setG(float g)
Sets the green color component.
|
void |
setR(float r)
Sets the red color component.
|
void |
setSize(float size)
Sets the size.
|
void |
setText(String text)
Sets the text.
|
void |
setVisible(boolean visible)
Sets the visibility.
|
float getR()
float getG()
float getB()
int getRGBA()
Color getColor()
float getAlpha()
float getSize()
boolean isVisible()
String getText()
float getWidth()
float getHeight()
void setR(float r)
r
- the color component, between zero and onevoid setG(float g)
g
- the color component, between zero and onevoid setB(float b)
b
- the color component, between zero and onevoid setAlpha(float a)
a
- the alpha component, between zero and onevoid setColor(Color color)
color
- the colorvoid setSize(float size)
size
- the sizevoid setVisible(boolean visible)
visible
- true if visible, false otherwisevoid setText(String text)
text
- the textvoid setDimensions(float width, float height)
width
- widthheight
- heightCopyright © 2007–2015 Gephi Consortium. All rights reserved.