Class PanelState

java.lang.Object
lu.kbra.modelizer_next.layout.PanelState

public class PanelState extends Object
Persistent state for one workspace panel.
  • Constructor Details

    • PanelState

      public PanelState()
      Creates a panel state instance.
  • Method Details

    • getLinkLayouts

      public List<LinkLayout> getLinkLayouts()
      Returns the link layouts.
      Returns:
      the link layouts
    • getNodeLayouts

      public List<NodeLayout> getNodeLayouts()
      Returns the node layouts.
      Returns:
      the node layouts
    • getPanX

      public double getPanX()
      Returns the pan x.
      Returns:
      the pan x
    • getPanY

      public double getPanY()
      Returns the pan y.
      Returns:
      the pan y
    • getZoom

      public double getZoom()
      Returns the zoom.
      Returns:
      the zoom
    • setLinkLayouts

      public void setLinkLayouts(List<LinkLayout> linkLayouts)
      Sets the link layouts.
      Parameters:
      linkLayouts - layout objects to read or modify
    • setNodeLayouts

      public void setNodeLayouts(List<NodeLayout> nodeLayouts)
      Sets the node layouts.
      Parameters:
      nodeLayouts - layout objects to read or modify
    • setPanX

      public void setPanX(double panX)
      Sets the pan x.
      Parameters:
      panX - numeric pan x value
    • setPanY

      public void setPanY(double panY)
      Sets the pan y.
      Parameters:
      panY - numeric pan y value
    • setZoom

      public void setZoom(double zoom)
      Sets the zoom.
      Parameters:
      zoom - numeric zoom value
    • toString

      public String toString()
      Builds a debug string for this panel state.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object