Class ReferencedImageStyle

java.lang.Object
com.vividsolutions.jump.workbench.imagery.ReferencedImageStyle
All Implemented Interfaces:
AlphaSetting, Style, Cloneable

public class ReferencedImageStyle extends Object implements Style, AlphaSetting
A JUMP style that will paint images
  • Constructor Details

    • ReferencedImageStyle

      public ReferencedImageStyle()
  • Method Details

    • paint

      public void paint(Feature f, Graphics2D g, Viewport viewport) throws Exception
      Specified by:
      paint in interface Style
      Throws:
      Exception
    • initialize

      public void initialize(Layer l)
      Description copied from interface: Style
      Called before #paint is applied to each Feature.
      Specified by:
      initialize in interface Style
      Parameters:
      l - the layer on which to apply this style
    • clone

      public Object clone()
      Specified by:
      clone in interface Style
      Overrides:
      clone in class Object
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface Style
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Style
      Returns:
      false if #paint should not be called e.g. because vertices are not shown. Don't need to check whether the layer is visible.
    • getImageryLayerDataset

      public ImageryLayerDataset getImageryLayerDataset()
    • getAlpha

      public int getAlpha()
      Specified by:
      getAlpha in interface AlphaSetting
    • setAlpha

      public void setAlpha(int alpha)
      Specified by:
      setAlpha in interface AlphaSetting