Class ShowViewCenterRenderer
java.lang.Object
com.vividsolutions.jump.workbench.ui.renderer.SimpleRenderer
org.openjump.core.ui.plugin.view.showcenter.ShowViewCenterRenderer
- All Implemented Interfaces:
Renderer
Calculates the actual scale and draws the text and a white rectangle around
- Author:
- sstein
-
Nested Class Summary
Nested classes/interfaces inherited from interface Renderer
Renderer.ContentDependendFactory, Renderer.Factory -
Field Summary
FieldsFields inherited from class SimpleRenderer
cancelled, panel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEnabled(LayerViewPanel panel) protected voidpaint(Graphics2D g) static voidsetEnabled(boolean enabled, LayerViewPanel panel) voidsetMyPlugInContext(PlugInContext myPlugInContext) Methods inherited from class SimpleRenderer
cancel, clearImageCache, copyTo, createRunnable, getContentID, isRendering
-
Field Details
-
CONTENT_ID
- See Also:
-
-
Constructor Details
-
ShowViewCenterRenderer
-
-
Method Details
-
paint
- Specified by:
paintin classSimpleRenderer- Throws:
Exception
-
isEnabled
- Parameters:
panel- the LayerViewPanel- Returns:
- true if the scale is enabled in the LayerViewPanel
-
setEnabled
-
setMyPlugInContext
- Parameters:
myPlugInContext- The myPlugInContext to set.
-
makeImage
-