Class 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
    • 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, otherwise false
      • 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; otherwise false
      • setBusStopDrawable

        public static void setBusStopDrawable​(Boolean isDrawable)
        Set if the bus stops should be drawn or not.
        Parameters:
        isDrawable - is true if the bus stops are drawable; false if the bus stops are not drawable; or null 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; otherwise false
      • setBusStopNamesDrawable

        public static void setBusStopNamesDrawable​(Boolean isNamesDrawable)
        Set if the bus stops should be drawn or not.
        Parameters:
        isNamesDrawable - is true if the bus stops names are drawable; false if the bus stops names are not drawable; or null 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; otherwise false
      • 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 - is true if the bus stops name with no binding are drawable; false if the bus stops name with no binding are not drawable; or null 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; otherwise false
      • 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 - is true if the bus stops name with no binding are drawable; false if the bus stops name with no binding are not drawable; or null 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; otherwise false
      • 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 - is true if the attributes are exhibited by the layers; false if the attributes are not exhibited; or null if the default value must be restored.