- 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 classBusLayerConstants.BusLayerDrawerTypeType of drawer for the bus layers.
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ATTRIBUTE_EXHIBITIONDoes the bus layers are exhibiting the attributes of the displayed bus network components.static booleanDEFAULT_BUS_STOP_DRAWINGDefault flag that is indicating if the bus stops are drawn by default.static booleanDEFAULT_BUS_STOP_NAMES_DRAWINGDefault flag that is indicating if the bus stops Names are drawn by default.static booleanDEFAULT_NO_BUS_HALT_BINDDefault flag that is indicating if the bus stops which are not binded to a bus halt are drawn by default.static booleanDEFAULT_NO_BUS_HALT_BIND_NAMESDefault flag that is indicating if the bus stops which are not binded to a bus halt have their names drawn by default.static intDEFAULT_SELECTION_COLORThe default selection color.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BusLayerConstants.BusLayerDrawerTypegetPreferredLineDrawAlgorithm()Replies if the bus network should be drawn with the algorithm.static intgetSelectionColor()Replies if the preferred color for bus stops selection.static booleanisAttributeExhibitable()Replies if the attributes of the bus network elements should be exhibited by the layers that are displaying them.static booleanisBusStopDrawable()Replies if the bus stops should be drawn or not.static booleanisBusStopNamesDrawable()Replies if the bus stops names should be drawn or not.static booleanisBusStopNoHaltBindingDrawable()Replies if the bus stops with no binding to bus halt should be drawn or not.static booleanisBusStopNoHaltBindingNamesDrawable()Replies if the bus stops with no binding to bus halt should have their names drawn or not.static voidsetAttributeExhibitable(Boolean isExhibit)Set if the attributes of the bus network elements should be exhibited by the layers that are displaying them.static voidsetBusStopDrawable(Boolean isDrawable)Set if the bus stops should be drawn or not.static voidsetBusStopNamesDrawable(Boolean isNamesDrawable)Set if the bus stops should be drawn or not.static voidsetBusStopNoHaltBindingDrawable(Boolean isDrawable)Set if the bus stops stops with no binding to bus halt should be drawn or not.static voidsetBusStopNoHaltBindingNamesDrawable(Boolean isDrawable)Set if the bus stops stops with no binding to bus halt should have their names drawn or not.static voidsetPreferredLineDrawingAlgorithm(BusLayerConstants.BusLayerDrawerType algorithm)Set if the bus network should be drawn with the algorithm.static voidsetSelectionColor(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:
trueif 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:
trueif 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- istrueif the bus stops are drawable;falseif the bus stops are not drawable; ornullif the default value must be restored.
-
isBusStopNamesDrawable
@Pure public static boolean isBusStopNamesDrawable()
Replies if the bus stops names should be drawn or not.- Returns:
trueif 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- istrueif the bus stops names are drawable;falseif the bus stops names are not drawable; ornullif 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:
trueif 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- istrueif the bus stops name with no binding are drawable;falseif the bus stops name with no binding are not drawable; ornullif 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:
trueif 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- istrueif the bus stops name with no binding are drawable;falseif the bus stops name with no binding are not drawable; ornullif 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:
trueif 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- istrueif the attributes are exhibited by the layers;falseif the attributes are not exhibited; ornullif the default value must be restored.
-
-