Module org.arakhne.afc.gis.gisroad
Package org.arakhne.afc.gis.road.layer
Class RoadNetworkLayerConstants
- java.lang.Object
-
- org.arakhne.afc.gis.road.layer.RoadNetworkLayerConstants
-
public final class RoadNetworkLayerConstants extends Object
Constants for the road network layer API.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:55
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- gisroad
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BORDER_SIZEDefault size of the road borders (in pixels).static int[]DEFAULT_ROAD_COLORSDefaults colors for the different types of roads.static intDEFAULT_ROAD_INTERN_COLORColor of the internal data structures of the road networks when they are drawn on the displayers.static booleanDEFAULT_ROAD_INTERN_DRAWINGDefault flag indicating if the internal data structures of the road networks may be drawn on the displayers.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreferencesgetPreferences()Replies the preferences for the road network layer.static intgetPreferredBorderColor(RoadType roadType)Replies the preferred color to draw the borders of the roads of the given type.static intgetPreferredBorderColor(RoadType roadType, boolean useSystemValue)Replies the preferred color to draw the borders of the roads of the given type.static intgetPreferredRoadBorderSize()Replies the preferred size of the roazd borders (in pixels).static IntegergetPreferredRoadBorderSize(boolean useSystemValue)Replies the preferred size of the roazd borders (in pixels).static intgetPreferredRoadColor(RoadType roadType)Replies the preferred color to draw the content of the roads of the given type.static intgetPreferredRoadColor(RoadType roadType, boolean useSystemValue)Replies the preferred color to draw the content of the roads of the given type.static intgetPreferredRoadInternColor()Replies the color of the internal data structures used when they are drawn on the displayers.static booleangetPreferredRoadInternDrawing()Replies if the internal data structure used to store the road network may be drawn on the displayers.static voidsetPreferredBorderColor(RoadType roadType, Integer color)Set the preferred color to draw the borders of the roads of the given type.static voidsetPreferredRoadBorderSize(Integer size)Set the preferred size of the roazd borders (in pixels).static voidsetPreferredRoadColor(RoadType roadType, Integer color)Set the preferred color to draw the content of the roads of the given type.static voidsetPreferredRoadInternColor(Integer color)Set the color of the internal data structures used when they are drawn on the displayers.static voidsetPreferredRoadInternDrawing(Boolean draw)Set if the internal data structure used to store the road network may be drawn on the displayers.
-
-
-
Field Detail
-
DEFAULT_ROAD_COLORS
public static final int[] DEFAULT_ROAD_COLORS
Defaults colors for the different types of roads. The array contains pairs of colors: one for the inner part, and one for the borders.
-
DEFAULT_ROAD_INTERN_DRAWING
public static final boolean DEFAULT_ROAD_INTERN_DRAWING
Default flag indicating if the internal data structures of the road networks may be drawn on the displayers.- See Also:
- Constant Field Values
-
DEFAULT_ROAD_INTERN_COLOR
public static final int DEFAULT_ROAD_INTERN_COLOR
Color of the internal data structures of the road networks when they are drawn on the displayers.- See Also:
- Constant Field Values
-
DEFAULT_BORDER_SIZE
public static final int DEFAULT_BORDER_SIZE
Default size of the road borders (in pixels).- See Also:
- Constant Field Values
-
-
Method Detail
-
getPreferences
@Pure public static Preferences getPreferences()
Replies the preferences for the road network layer.- Returns:
- the preferences.
-
getPreferredRoadBorderSize
@Pure public static int getPreferredRoadBorderSize()
Replies the preferred size of the roazd borders (in pixels).- Returns:
- size of the road borders.
-
getPreferredRoadBorderSize
@Pure public static Integer getPreferredRoadBorderSize(boolean useSystemValue)
Replies the preferred size of the roazd borders (in pixels).- Parameters:
useSystemValue- indicates if thenullvalue must be replaced by the default system value:DEFAULT_BORDER_SIZE.- Returns:
- size of the road borders.
-
setPreferredRoadBorderSize
public static void setPreferredRoadBorderSize(Integer size)
Set the preferred size of the roazd borders (in pixels).- Parameters:
size- is the preferred size of the roazd borders (in pixels).
-
getPreferredRoadColor
@Pure public static int getPreferredRoadColor(RoadType roadType)
Replies the preferred color to draw the content of the roads of the given type.- Parameters:
roadType- is the type of road for which the color should be replied.- Returns:
- the color of the inner parts of the roads.
-
getPreferredRoadColor
@Pure public static int getPreferredRoadColor(RoadType roadType, boolean useSystemValue)
Replies the preferred color to draw the content of the roads of the given type.- Parameters:
roadType- is the type of road for which the color should be replied.useSystemValue- indicates if thenullvalue must be replaced by the default system value inDEFAULT_ROAD_COLORS(iftrue).- Returns:
- the color of the inner parts of the roads.
-
setPreferredRoadColor
public static void setPreferredRoadColor(RoadType roadType, Integer color)
Set the preferred color to draw the content of the roads of the given type.- Parameters:
roadType- is the type of road for which the color should be replied.color- is the color ornullto restore the default value.
-
getPreferredBorderColor
@Pure public static int getPreferredBorderColor(RoadType roadType)
Replies the preferred color to draw the borders of the roads of the given type.- Parameters:
roadType- is the type of road for which the color should be replied.- Returns:
- the color of the inner parts of the roads.
-
getPreferredBorderColor
@Pure public static int getPreferredBorderColor(RoadType roadType, boolean useSystemValue)
Replies the preferred color to draw the borders of the roads of the given type.- Parameters:
roadType- is the type of road for which the color should be replied.useSystemValue- indicates if thenullvalue must be replaced by the default system value inDEFAULT_ROAD_COLORS(iftrue).- Returns:
- the color of the inner parts of the roads.
-
setPreferredBorderColor
public static void setPreferredBorderColor(RoadType roadType, Integer color)
Set the preferred color to draw the borders of the roads of the given type.- Parameters:
roadType- is the type of road for which the color should be replied.color- is the color ornullto restore the default value.
-
getPreferredRoadInternDrawing
@Pure public static boolean getPreferredRoadInternDrawing()
Replies if the internal data structure used to store the road network may be drawn on the displayers.- Returns:
trueif the internal data structures may be drawn on the displayers, otherwisefalse.
-
setPreferredRoadInternDrawing
public static void setPreferredRoadInternDrawing(Boolean draw)
Set if the internal data structure used to store the road network may be drawn on the displayers.- Parameters:
draw- istrueif the internal data structures may be drawn on the displayers,falseif the internal data structures may not be drawn on the displayers,nullto restore the default value given byDEFAULT_ROAD_INTERN_DRAWING.
-
getPreferredRoadInternColor
@Pure public static int getPreferredRoadInternColor()
Replies the color of the internal data structures used when they are drawn on the displayers.- Returns:
- the color of the internal data structures, never
null.
-
setPreferredRoadInternColor
public static void setPreferredRoadInternColor(Integer color)
Set the color of the internal data structures used when they are drawn on the displayers.- Parameters:
color- is the color of the internal data structures, nevernull.
-
-