com.vividsolutions.jump.workbench.imagery
Class ReferencedImageStyle

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

public class ReferencedImageStyle
extends java.lang.Object
implements Style

A JUMP style that will paint images


Constructor Summary
ReferencedImageStyle()
           
 
Method Summary
 java.lang.Object clone()
           
 ImageryLayerDataset getImageryLayerDataset()
           
 void initialize(Layer l)
          Called before #paint is applied to each Feature.
 boolean isEnabled()
           
 void paint(Feature f, java.awt.Graphics2D g, Viewport viewport)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferencedImageStyle

public ReferencedImageStyle()
Method Detail

paint

public void paint(Feature f,
                  java.awt.Graphics2D g,
                  Viewport viewport)
           throws java.lang.Exception
Specified by:
paint in interface Style
Throws:
java.lang.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
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.

clone

public java.lang.Object clone()
Specified by:
clone in interface Style

setEnabled

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

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Style

getImageryLayerDataset

public ImageryLayerDataset getImageryLayerDataset()