Class TLcdGXYContext

java.lang.Object
com.luciad.view.gxy.TLcdGXYContext
All Implemented Interfaces:
ILcdCloneable, ILcdGXYContext, Serializable, Cloneable

public class TLcdGXYContext extends Object implements ILcdGXYContext, ILcdCloneable
This is an implementation of ILcdGXYContext. This class contains the information to enable a painter (editor) to perform its drawing (editing) on an ILcdGXYView.
See Also:
  • Constructor Details

    • TLcdGXYContext

      public TLcdGXYContext()
      Default constructor, which creates an TLcdGXYContext without any information. Use the available setters to store information in this TLcdGXYContext object.
    • TLcdGXYContext

      public TLcdGXYContext(ILcdGXYView aGXYView, ILcdGXYPen aGXYPen, int aX, int aY, int aDeltaX, int aDeltaY)
      Create a new TLcdGXYContext object
      Parameters:
      aGXYView - the view. See getGXYView()
      aGXYPen - the pen. See getGXYPen()
      aX - the x coordinate of the ( mouse ) location, expressed in view coordinates. See getX()
      aY - the y coordinate of the ( mouse ) location, expressed in view coordinates. See getY()
      aDeltaX - the delta x to consider when painting or editing. See getDeltaX()
      aDeltaY - the delta y to consider when painting or editing. See getDeltaY()
    • TLcdGXYContext

      public TLcdGXYContext(ILcdGXYView aGXYView, ILcdGXYLayer aGXYLayer, List<Point> aOriginalLocations, List<Point> aCurrentLocations)

      Create a new TLcdGXYContext object.

      It allows to store multiple input points. The aOriginalLocations lists contains the location of all the input points. aCurrentLocations contains the current locations of the points. Both lists should have the same length, and the first point in aOriginalLocations should be the original location of the first point in aCurrentLocations. The same applies for the other points in both lists.

      Parameters:
      aGXYView - the view. See getGXYView()
      aGXYLayer - the layer. See getGXYLayer()
      aOriginalLocations - a list containing the original locations of all input points. The points should be expressed in view coordinates. Must not be null. Use an empty list when no input points should be considered.
      aCurrentLocations - a list containing the current locations of all input points. The points should be expressed in view coordinates. Must not be null. Use an empty list when no input points should be considered.
    • TLcdGXYContext

      public TLcdGXYContext(ILcdGXYView aGXYView, ILcdGXYLayer aGXYLayer)

      Create a new TLcdGXYContext object. It is initialized with default values to paint/edit an Object that belongs to aGXYLayer on aGXYView.

      Parameters:
      aGXYView - the view. See getGXYView()
      aGXYLayer - the layer. See getGXYLayer()
    • TLcdGXYContext

      public TLcdGXYContext(ILcdGXYContext aGXYContext)
      Constructs a TLcdGXYContext from another ILcdGXYContext.
      Parameters:
      aGXYContext - the context on which the created TLcdGXYContext will be based. Must not be null
  • Method Details