public class NFEFeatureUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Double |
ARROW_MARKER_HEIGHT
Arrow marker height.
|
static java.lang.String |
ARROW_MARKER_NAME
Arrow marker name.
|
static java.lang.Double |
ARROW_MARKER_POSITION
Arrow marker position.
|
static java.lang.Double |
ARROW_MARKER_WIDTH
Arrow marker width.
|
| Constructor and Description |
|---|
NFEFeatureUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JGeometry |
calculateFeatureElementGeometry(NFEFeatureElement featElem, JGeometry netElemGeom)
Returns the feature element geometry considering the start and end percentage.
|
static StyleMarker |
getArrowStyle(NFELink nfeLink, boolean isPath, boolean isNetworkDirected)
Returns the arrow marker style for the link.
|
static StyleMarker |
getBiDirectionalArrow()
Returns the arrow marker style for a bidirectional arrow.
|
static int |
getFeatureElementType(FeatureElement.FeatureElementType type)
Returns the feature element type identifier.
|
static int |
getFeatureLayerType(FeatureLayerMetadata.FeatureLayerType featureLayerType)
Returns the feature layer type identifier.
|
static StyleMarker |
getSimpleArrow()
Returns the arrow marker style for an unidirectional arrow.
|
static void |
setBiDirectionalArrow(StyleMarker biDirectionalArrow)
Sets the arrow marker style for a bidirectional arrow.
|
static void |
setSimpleArrow(StyleMarker simpleArrow)
Sets the arrow marker style for an unidirectional arrow.
|
public static final java.lang.String ARROW_MARKER_NAME
public static final java.lang.Double ARROW_MARKER_HEIGHT
public static final java.lang.Double ARROW_MARKER_WIDTH
public static final java.lang.Double ARROW_MARKER_POSITION
public static int getFeatureLayerType(FeatureLayerMetadata.FeatureLayerType featureLayerType)
featureLayerType - feature layer typepublic static int getFeatureElementType(FeatureElement.FeatureElementType type)
type - feature element typepublic static JGeometry calculateFeatureElementGeometry(NFEFeatureElement featElem, JGeometry netElemGeom)
featElem - feature elementnetElemGeom - network element geometrypublic static StyleMarker getArrowStyle(NFELink nfeLink, boolean isPath, boolean isNetworkDirected)
nfeLink - linkisPath - true if the link is a path, false otherwiseisNetworkDirected - true if the network is directed, false otherwise.public static StyleMarker getSimpleArrow()
public static void setSimpleArrow(StyleMarker simpleArrow)
simpleArrow - arrow marker style for an unidirectional arrowpublic static StyleMarker getBiDirectionalArrow()
public static void setBiDirectionalArrow(StyleMarker biDirectionalArrow)
biDirectionalArrow - arrow marker style for a bidirectional arrow