Class FreeformViewport

All Implemented Interfaces:
PropertyChangeListener, EventListener, IFigure

public class FreeformViewport extends Viewport
A viewport for FreeformFigures. FreeformFigures can only reside in this type of viewport.
  • Constructor Details

    • FreeformViewport

      public FreeformViewport()
      Constructs a new FreeformViewport. This viewport must use graphics translation to scroll the FreeformFigures inside of it.
  • Method Details

    • readjustScrollBars

      protected void readjustScrollBars()
      Readjusts the scrollbars. In doing so, it gets the freeform extent of the contents and unions this rectangle with this viewport's client area, then sets the contents freeform bounds to be this unioned rectangle. Then proceeds to set the scrollbar values based on this new information.
      Overrides:
      readjustScrollBars in class Viewport
      See Also:
    • useLocalCoordinates

      protected boolean useLocalCoordinates()
      Returns true.
      Overrides:
      useLocalCoordinates in class Figure
      Returns:
      true if this Figure uses local coordinates
      See Also: