Package hec.map.image

Class ImageGlyph

java.lang.Object
hec.map.MapGlyph
hec.map.image.ImageGlyph
All Implemented Interfaces:
IImageGlyph, ImageObserver, Comparable<MapGlyph>
Direct Known Subclasses:
ImageGlyphProxy, MrSidMapGlyph

public class ImageGlyph extends MapGlyph implements ImageObserver, IImageGlyph
  • Field Details

    • _image

      protected Image _image
    • _adjustmentEnabled

      protected boolean _adjustmentEnabled
  • Constructor Details

    • ImageGlyph

      public ImageGlyph()
    • ImageGlyph

      public ImageGlyph(MapPanel panel, ImageMap map)
  • Method Details

    • getDragPoints

      public List<DragPoint> getDragPoints()
      Specified by:
      getDragPoints in interface IImageGlyph
    • setAdjustmentEnabled

      public void setAdjustmentEnabled(boolean b)
      Specified by:
      setAdjustmentEnabled in interface IImageGlyph
    • isAdjustmentEnabled

      public boolean isAdjustmentEnabled()
      Specified by:
      isAdjustmentEnabled in interface IImageGlyph
    • fillMap

      public void fillMap(boolean load)
      Description copied from class: MapGlyph
      have the _map load or unload its data.

      Overrides:
      fillMap in class MapGlyph
      Parameters:
      load - true if _map is load it's data
    • getDefaultDataRecord

      public GlyphDataRecord getDefaultDataRecord()
      Description copied from class: MapGlyph
      Gets the DefaultDataRecord of the MapGlyph object

      Overrides:
      getDefaultDataRecord in class MapGlyph
      Returns:
      null unless overridden to return something else
    • getImageGlyphDataRecord

      protected ImageGlyphDataRecord getImageGlyphDataRecord()
    • scaleTransform

      protected void scaleTransform(AffineTransform af, MapScale scl)
    • draw

      public void draw(Graphics g, MapScale scl)
      Description copied from class: MapGlyph
      draw this MapGlyph to graphics using the MapScale scl

      Specified by:
      draw in class MapGlyph
      Parameters:
      g - the Graphics to draw to
      scl - The current MapScale
    • drawFileName

      protected void drawFileName(Graphics g2, LocalRect rect)
    • drawBorder

      protected void drawBorder(Graphics2D g2, LocalRect rect)
    • drawDragPoints

      protected void drawDragPoints(Graphics2D g2, LocalRect rect)
    • adjustImage

      public void adjustImage(DragPoint dragPoint, Point PT0, Point PT1)
      Specified by:
      adjustImage in interface IImageGlyph
    • imageUpdate

      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
      Specified by:
      imageUpdate in interface ImageObserver
    • saveImageCoordinates

      public void saveImageCoordinates()
      Specified by:
      saveImageCoordinates in interface IImageGlyph
    • adjustFinished

      public void adjustFinished()
      This is called when a series of adjustments are finished. This allows the glyph to hold off on the expensive paints until elements that are calling "adjustImage()" are done with their work.
      Specified by:
      adjustFinished in interface IImageGlyph