IlvJAutomaticScaleBar graphicScale = new IlvJAutomaticScaleBar(); graphicScale.setView(view);
panel.add(graphicScale, BorderLayout.SOUTH);
IlvDisplayPreferencesProperty
settings,
by calling the setFarUnit and setNearUnit methods in your application code.graphicScale.setMarginHeight(2); graphicScale.setMarginWidth(2); graphicScale.setTextSpacing(2);
graphicScale.setScaleStyle(IlvScaleBar.DOUBLE_DASH_SCALE_EVEN);
graphicScale.setScaleTextMode(IlvScaleBar.THREE_LABELS);
graphicScale.setScaleHeight(10);