public final class EdgeLabel extends Object
Constructor and Description |
---|
EdgeLabel(boolean visible,
String alignment,
String fontFamily,
int fontSize,
String fontStyle,
String textColor,
String modelName,
String modelPosition,
String preferredPlacement,
double distance,
double ratio,
String text)
Create a new edge label from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlignment()
Return the alignment for this edge label.
|
double |
getDistance()
Return the distance for this edge label.
|
String |
getFontFamily()
Return the font family for this edge label.
|
int |
getFontSize()
Return the font size for this edge label.
|
String |
getFontStyle()
Return the font style for this edge label.
|
String |
getModelName()
Return the model name for this edge label.
|
String |
getModelPosition()
Return the model position for this edge label.
|
String |
getPreferredPlacement()
Return the preferred placement for this edge label.
|
double |
getRatio()
Return the ratio for this edge label.
|
String |
getText()
Return the text for this edge label.
|
String |
getTextColor()
Return the text color for this edge label.
|
boolean |
isVisible()
Return true if this edge label is visible.
|
public EdgeLabel(boolean visible, String alignment, String fontFamily, int fontSize, String fontStyle, String textColor, String modelName, String modelPosition, String preferredPlacement, double distance, double ratio, String text)
visible
- true if this edge label is visiblealignment
- alignment for this edge label, must not be nullfontFamily
- font family for this edge label, must not be nullfontSize
- font size for this edge labelfontStyle
- font style for this edge label, must not be nulltextColor
- text color for this edge label, must not be nullmodelName
- model name for this edge label, must not be nullmodelPosition
- model position for this edge label, must not be nullpreferredPlacement
- preferred placement for this edge label, must not be nulldistance
- distance for this edge labelratio
- ratio for this edge labeltext
- text for this edge label, must not be nullpublic boolean isVisible()
public String getAlignment()
public String getFontFamily()
public int getFontSize()
public String getFontStyle()
public String getTextColor()
public String getModelName()
public String getModelPosition()
public String getPreferredPlacement()
public double getDistance()
public double getRatio()
public String getText()
Copyright (c) 2008-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).