Difference between revisions of "Beanshell:Setting Scale Bar options"
Jump to navigation
Jump to search
(Created page with '== Example script to set Scale Bar options == { import com.vividsolutions.jump.workbench.ui.plugin.scalebar.ScaleBarRenderer; import java.awt.Font; ScaleBarRenderer.setBAR_HE…') |
(No difference)
|
Revision as of 16:40, 17 February 2010
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