Beanshell:Setting Scale Bar options
Jump to navigation
Jump to search
Example script to set Scale Bar options
{
import com.vividsolutions.jump.workbench.ui.plugin.scalebar.ScaleBarRenderer; import java.awt.Font; ScaleBarRenderer.setBAR_HEIGHT(13); ScaleBarRenderer.setFILL1(Color.white); ScaleBarRenderer.setFILL2(Color.lightGray); ScaleBarRenderer.setTEXT_COLOR(Color.black); ScaleBarRenderer.setFONT(new Font("Dialog", Font.BOLD, 12)); ScaleBarRenderer.setUNIT_FONT(new Font("Dialog", Font.BOLD, 12)); ScaleBarRenderer.setUNIT_TEXT_COLOR(Color.black); ScaleBarRenderer.setVERTICAL_MARGIN(5); ScaleBarRenderer.setHORIZONTAL_MARGIN(5);
}
Predefined colors are
black, blue, cyan, darkGray, gray,green, lightGray, magenta, orange, pink, red, white, yellow