Class MarkWithPosition

Object
Mark
MarkWithPosition
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConicBase, MarkWithPositionAndSingleRadius, RotatableBoundingBox

public abstract class MarkWithPosition extends Mark implements Serializable
An abstract base class for marks that have a position in 3D space.
See Also:
  • Constructor Details

    • MarkWithPosition

      protected MarkWithPosition()
      Constructs a new MarkWithPosition with a default position at the origin.
    • MarkWithPosition

      protected MarkWithPosition(MarkWithPosition src)
      Copy constructor for MarkWithPosition.
      Parameters:
      src - the MarkWithPosition to copy
  • Method Details

    • positionString

      protected String positionString()
      Describes the position of the mark as a string.
      Returns:
      the string.
    • scale

      public void scale(ScaleFactor scaleFactor) throws CheckedUnsupportedOperationException
      Description copied from class: Mark
      Scales the mark in X and Y dimensions.
      Specified by:
      scale in class Mark
      Parameters:
      scaleFactor - how much to scale by
      Throws:
      CheckedUnsupportedOperationException - if scaling is not supported for this mark type
    • centerPoint

      public Point3d centerPoint()
      Description copied from class: Mark
      Returns the center point of the mark.
      Specified by:
      centerPoint in class Mark
      Returns:
      the center point as a Point3d
    • equalsDeep

      public boolean equalsDeep(Mark m)
      Checks if this mark is equal to another mark by comparing all attributes.
      Overrides:
      equalsDeep in class Mark
      Parameters:
      m - the mark to compare with
      Returns:
      true if the marks are equal, false otherwise
    • getPosition

      public Point3d getPosition()
      The position of the mark in 3D space.
    • setPosition

      public void setPosition(Point3d position)
      The position of the mark in 3D space.