Class ShowScaleRenderer

java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
org.openjump.core.ui.plugin.view.helpclassescale.ShowScaleRenderer
All Implemented Interfaces:
Renderer

public class ShowScaleRenderer extends SimpleRenderer
Calculates the actual scale and draws the text and a white rectangle around
Author:
sstein
  • Field Details

  • Constructor Details

  • Method Details

    • paint

      protected void paint(Graphics2D g)
      Specified by:
      paint in class SimpleRenderer
    • isEnabled

      public static boolean isEnabled(LayerViewPanel panel)
      Parameters:
      panel - the LayerViewPanel
      Returns:
      true if the scale is enabled in the LayerViewPanel
    • setEnabled

      public static void setEnabled(boolean enabled, LayerViewPanel panel)
    • setMyPlugInContext

      public void setMyPlugInContext(PlugInContext myPlugInContext)
      Parameters:
      myPlugInContext - The myPlugInContext to set.