- java.lang.Object
-
- org.arakhne.afc.gis.bus.layer.BusLayerConstants
-
public final class BusLayerConstants extends Object
Constants for bus network layers.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:56
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- gisbus
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BusLayerConstants.BusLayerDrawerType
Type of drawer for the bus layers.
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ATTRIBUTE_EXHIBITION
Does the bus layers are exhibiting the attributes of the displayed bus network components.static boolean
DEFAULT_BUS_STOP_DRAWING
Default flag that is indicating if the bus stops are drawn by default.static boolean
DEFAULT_BUS_STOP_NAMES_DRAWING
Default flag that is indicating if the bus stops Names are drawn by default.static boolean
DEFAULT_NO_BUS_HALT_BIND
Default flag that is indicating if the bus stops which are not binded to a bus halt are drawn by default.static boolean
DEFAULT_NO_BUS_HALT_BIND_NAMES
Default flag that is indicating if the bus stops which are not binded to a bus halt have their names drawn by default.static int
DEFAULT_SELECTION_COLOR
The default selection color.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BusLayerConstants.BusLayerDrawerType
getPreferredLineDrawAlgorithm()
Replies if the bus network should be drawn with the algorithm.static int
getSelectionColor()
Replies if the preferred color for bus stops selection.static boolean
isAttributeExhibitable()
Replies if the attributes of the bus network elements should be exhibited by the layers that are displaying them.static boolean
isBusStopDrawable()
Replies if the bus stops should be drawn or not.static boolean
isBusStopNamesDrawable()
Replies if the bus stops names should be drawn or not.static boolean
isBusStopNoHaltBindingDrawable()
Replies if the bus stops with no binding to bus halt should be drawn or not.static boolean
isBusStopNoHaltBindingNamesDrawable()
Replies if the bus stops with no binding to bus halt should have their names drawn or not.static void
setAttributeExhibitable(Boolean isExhibit)
Set if the attributes of the bus network elements should be exhibited by the layers that are displaying them.static void
setBusStopDrawable(Boolean isDrawable)
Set if the bus stops should be drawn or not.static void
setBusStopNamesDrawable(Boolean isNamesDrawable)
Set if the bus stops should be drawn or not.static void
setBusStopNoHaltBindingDrawable(Boolean isDrawable)
Set if the bus stops stops with no binding to bus halt should be drawn or not.static void
setBusStopNoHaltBindingNamesDrawable(Boolean isDrawable)
Set if the bus stops stops with no binding to bus halt should have their names drawn or not.static void
setPreferredLineDrawingAlgorithm(BusLayerConstants.BusLayerDrawerType algorithm)
Set if the bus network should be drawn with the algorithm.static void
setSelectionColor(Integer color)
Set the default color selection.
-
-
-
Field Detail
-
DEFAULT_SELECTION_COLOR
public static final int DEFAULT_SELECTION_COLOR
The default selection color.- See Also:
- Constant Field Values
-
DEFAULT_NO_BUS_HALT_BIND
public static final boolean DEFAULT_NO_BUS_HALT_BIND
Default flag that is indicating if the bus stops which are not binded to a bus halt are drawn by default.- See Also:
- Constant Field Values
-
DEFAULT_NO_BUS_HALT_BIND_NAMES
public static final boolean DEFAULT_NO_BUS_HALT_BIND_NAMES
Default flag that is indicating if the bus stops which are not binded to a bus halt have their names drawn by default.- See Also:
- Constant Field Values
-
DEFAULT_BUS_STOP_DRAWING
public static final boolean DEFAULT_BUS_STOP_DRAWING
Default flag that is indicating if the bus stops are drawn by default.- See Also:
- Constant Field Values
-
DEFAULT_BUS_STOP_NAMES_DRAWING
public static final boolean DEFAULT_BUS_STOP_NAMES_DRAWING
Default flag that is indicating if the bus stops Names are drawn by default.- See Also:
- Constant Field Values
-
DEFAULT_ATTRIBUTE_EXHIBITION
public static final boolean DEFAULT_ATTRIBUTE_EXHIBITION
Does the bus layers are exhibiting the attributes of the displayed bus network components.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPreferredLineDrawAlgorithm
@Pure public static BusLayerConstants.BusLayerDrawerType getPreferredLineDrawAlgorithm()
Replies if the bus network should be drawn with the algorithm.- Returns:
true
if the algorithm may be used, otherwisefalse
-
setPreferredLineDrawingAlgorithm
public static void setPreferredLineDrawingAlgorithm(BusLayerConstants.BusLayerDrawerType algorithm)
Set if the bus network should be drawn with the algorithm.- Parameters:
algorithm
- indicates if the drawing algorithm.
-
getSelectionColor
@Pure public static int getSelectionColor()
Replies if the preferred color for bus stops selection.- Returns:
- Color for selection
-
setSelectionColor
public static void setSelectionColor(Integer color)
Set the default color selection.- Parameters:
color
- is the default color for selection.
-
isBusStopDrawable
@Pure public static boolean isBusStopDrawable()
Replies if the bus stops should be drawn or not.- Returns:
true
if the bus stops are drawable; otherwisefalse
-
setBusStopDrawable
public static void setBusStopDrawable(Boolean isDrawable)
Set if the bus stops should be drawn or not.- Parameters:
isDrawable
- istrue
if the bus stops are drawable;false
if the bus stops are not drawable; ornull
if the default value must be restored.
-
isBusStopNamesDrawable
@Pure public static boolean isBusStopNamesDrawable()
Replies if the bus stops names should be drawn or not.- Returns:
true
if the bus stops are drawable; otherwisefalse
-
setBusStopNamesDrawable
public static void setBusStopNamesDrawable(Boolean isNamesDrawable)
Set if the bus stops should be drawn or not.- Parameters:
isNamesDrawable
- istrue
if the bus stops names are drawable;false
if the bus stops names are not drawable; ornull
if the default value must be restored.
-
isBusStopNoHaltBindingDrawable
@Pure public static boolean isBusStopNoHaltBindingDrawable()
Replies if the bus stops with no binding to bus halt should be drawn or not.- Returns:
true
if the bus stops name with no binding are drawable; otherwisefalse
-
setBusStopNoHaltBindingDrawable
public static void setBusStopNoHaltBindingDrawable(Boolean isDrawable)
Set if the bus stops stops with no binding to bus halt should be drawn or not.- Parameters:
isDrawable
- istrue
if the bus stops name with no binding are drawable;false
if the bus stops name with no binding are not drawable; ornull
if the default value must be restored.
-
isBusStopNoHaltBindingNamesDrawable
@Pure public static boolean isBusStopNoHaltBindingNamesDrawable()
Replies if the bus stops with no binding to bus halt should have their names drawn or not.- Returns:
true
if the bus stops name with no binding are drawable; otherwisefalse
-
setBusStopNoHaltBindingNamesDrawable
public static void setBusStopNoHaltBindingNamesDrawable(Boolean isDrawable)
Set if the bus stops stops with no binding to bus halt should have their names drawn or not.- Parameters:
isDrawable
- istrue
if the bus stops name with no binding are drawable;false
if the bus stops name with no binding are not drawable; ornull
if the default value must be restored.
-
isAttributeExhibitable
@Pure public static boolean isAttributeExhibitable()
Replies if the attributes of the bus network elements should be exhibited by the layers that are displaying them. For example, a BusLineLayer may exhibit the BusLine attributes.- Returns:
true
if the bus stops are drawable; otherwisefalse
-
setAttributeExhibitable
public static void setAttributeExhibitable(Boolean isExhibit)
Set if the attributes of the bus network elements should be exhibited by the layers that are displaying them. For example, a BusLineLayer may exhibit the BusLine attributes.- Parameters:
isExhibit
- istrue
if the attributes are exhibited by the layers;false
if the attributes are not exhibited; ornull
if the default value must be restored.
-
-