Class SimpleFeaturePointFigure

java.lang.Object
com.bc.ceres.swing.figure.AbstractFigure
com.bc.ceres.swing.figure.AbstractPointFigure
org.esa.snap.ui.product.SimpleFeaturePointFigure
All Implemented Interfaces:
com.bc.ceres.swing.figure.Figure, com.bc.ceres.swing.figure.PointFigure, com.bc.ceres.swing.undo.Restorable, Cloneable, SimpleFeatureFigure

public class SimpleFeaturePointFigure extends com.bc.ceres.swing.figure.AbstractPointFigure implements SimpleFeatureFigure
A figure representing point features.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.bc.ceres.swing.figure.Figure

    com.bc.ceres.swing.figure.Figure.Rank
  • Field Summary

    Fields inherited from class com.bc.ceres.swing.figure.AbstractFigure

    NO_FIGURES, NO_HANDLES
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimpleFeaturePointFigure(org.opengis.feature.simple.SimpleFeature simpleFeature, SceneTransformProvider provider, com.bc.ceres.swing.figure.FigureStyle style)
     
    SimpleFeaturePointFigure(org.opengis.feature.simple.SimpleFeature simpleFeature, SceneTransformProvider provider, com.bc.ceres.swing.figure.FigureStyle normalStyle, com.bc.ceres.swing.figure.FigureStyle selectedStyle)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.bc.ceres.swing.figure.Handle[]
    createHandles(int selectionStage)
     
     
    protected void
    drawPoint(Rendering rendering)
     
    void
     
    org.locationtech.jts.geom.Point
     
    int
     
    double
     
    org.opengis.feature.simple.SimpleFeature
     
    double
     
    double
     
    void
    setGeometry(org.locationtech.jts.geom.Geometry geometry)
     
    void
    setLocation(double x, double y)
     
    void
    setMemento(Object memento)
     

    Methods inherited from class com.bc.ceres.swing.figure.AbstractPointFigure

    draw, getBounds, getEffectiveStyle, getLocation, getRank, getSymbol, isCloseTo, isCollection, move, rotate, scale, setLocation

    Methods inherited from class com.bc.ceres.swing.figure.AbstractFigure

    addChangeListener, addFigure, addFigure, addFigureImpl, addFigureImpl, addFigures, addFiguresImpl, addSegment, contains, createScaleHandles, dispose, fireFigureChanged, fireFigureChanged, fireFiguresAdded, fireFiguresRemoved, getChangeListeners, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getHandleStyle, getNormalStyle, getSegment, getSelectedHandleStyle, getSelectedStyle, isSelectable, isSelected, removeAllFigures, removeChangeListener, removeFigure, removeFigureImpl, removeFigures, removeFiguresImpl, removeFiguresImpl, removeSegment, setNormalStyle, setSegment, setSelectable, setSelected, setSelectedStyle

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.bc.ceres.swing.figure.Figure

    addChangeListener, addFigure, addFigure, addFigures, addSegment, contains, dispose, draw, getBounds, getChangeListeners, getEffectiveStyle, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getNormalStyle, getRank, getSegment, getSelectedStyle, isCloseTo, isCollection, isSelectable, isSelected, move, removeAllFigures, removeChangeListener, removeFigure, removeFigures, removeSegment, rotate, scale, setNormalStyle, setSegment, setSelected, setSelectedStyle
  • Constructor Details

    • SimpleFeaturePointFigure

      public SimpleFeaturePointFigure(org.opengis.feature.simple.SimpleFeature simpleFeature, SceneTransformProvider provider, com.bc.ceres.swing.figure.FigureStyle style)
    • SimpleFeaturePointFigure

      public SimpleFeaturePointFigure(org.opengis.feature.simple.SimpleFeature simpleFeature, SceneTransformProvider provider, com.bc.ceres.swing.figure.FigureStyle normalStyle, com.bc.ceres.swing.figure.FigureStyle selectedStyle)
  • Method Details

    • createMemento

      public Object createMemento()
      Specified by:
      createMemento in interface com.bc.ceres.swing.undo.Restorable
      Overrides:
      createMemento in class com.bc.ceres.swing.figure.AbstractFigure
    • setMemento

      public void setMemento(Object memento)
      Specified by:
      setMemento in interface com.bc.ceres.swing.undo.Restorable
      Overrides:
      setMemento in class com.bc.ceres.swing.figure.AbstractFigure
    • getSimpleFeature

      public org.opengis.feature.simple.SimpleFeature getSimpleFeature()
      Specified by:
      getSimpleFeature in interface SimpleFeatureFigure
    • getGeometry

      public org.locationtech.jts.geom.Point getGeometry()
      Specified by:
      getGeometry in interface SimpleFeatureFigure
    • setGeometry

      public void setGeometry(org.locationtech.jts.geom.Geometry geometry)
      Specified by:
      setGeometry in interface SimpleFeatureFigure
    • forceRegeneration

      public void forceRegeneration()
      Specified by:
      forceRegeneration in interface SimpleFeatureFigure
    • getX

      public double getX()
      Specified by:
      getX in interface com.bc.ceres.swing.figure.PointFigure
    • getY

      public double getY()
      Specified by:
      getY in interface com.bc.ceres.swing.figure.PointFigure
    • setLocation

      public void setLocation(double x, double y)
      Specified by:
      setLocation in class com.bc.ceres.swing.figure.AbstractPointFigure
    • getRadius

      public double getRadius()
      Specified by:
      getRadius in class com.bc.ceres.swing.figure.AbstractPointFigure
    • clone

      public Object clone()
      Specified by:
      clone in interface com.bc.ceres.swing.figure.Figure
      Overrides:
      clone in class com.bc.ceres.swing.figure.AbstractFigure
    • drawPoint

      protected void drawPoint(Rendering rendering)
      Overrides:
      drawPoint in class com.bc.ceres.swing.figure.AbstractPointFigure
    • getMaxSelectionStage

      public int getMaxSelectionStage()
      Specified by:
      getMaxSelectionStage in interface com.bc.ceres.swing.figure.Figure
      Overrides:
      getMaxSelectionStage in class com.bc.ceres.swing.figure.AbstractFigure
    • createHandles

      public com.bc.ceres.swing.figure.Handle[] createHandles(int selectionStage)
      Specified by:
      createHandles in interface com.bc.ceres.swing.figure.Figure
      Overrides:
      createHandles in class com.bc.ceres.swing.figure.AbstractFigure