Class BarSubScalebarDrawer


  • public class BarSubScalebarDrawer
    extends BarScalebarDrawer
    Draw a bar with alternating black and white zones marking the sub-intervals. Intervals have small additional ticks.
    • Constructor Detail

      • BarSubScalebarDrawer

        public BarSubScalebarDrawer​(java.awt.Graphics2D graphics2d,
                                    ScaleBarRenderSettings settings)
        Constructor.
        Parameters:
        graphics2d - The graphics context.
        settings - Parameters for rendering the scalebar.
    • Method Detail

      • drawBar

        protected final void drawBar()
        Description copied from class: ScalebarDrawer
        Draws the bar itself. The transformation is setup in a manner where the bar should be drawn into the rectangle (0, 0) (intervals*intervalWidth, -barSize).
        Overrides:
        drawBar in class BarScalebarDrawer