Package lu.kbra.modelizer_next.layout
Class PanelState
java.lang.Object
lu.kbra.modelizer_next.layout.PanelState
Persistent state for one workspace panel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the link layouts.Returns the node layouts.doublegetPanX()Returns the pan x.doublegetPanY()Returns the pan y.doublegetZoom()Returns the zoom.voidsetLinkLayouts(List<LinkLayout> linkLayouts) Sets the link layouts.voidsetNodeLayouts(List<NodeLayout> nodeLayouts) Sets the node layouts.voidsetPanX(double panX) Sets the pan x.voidsetPanY(double panY) Sets the pan y.voidsetZoom(double zoom) Sets the zoom.toString()Builds a debug string for this panel state.
-
Constructor Details
-
PanelState
public PanelState()Creates a panel state instance.
-
-
Method Details
-
getLinkLayouts
Returns the link layouts.- Returns:
- the link layouts
-
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
Sets the link layouts.- Parameters:
linkLayouts- layout objects to read or modify
-
setNodeLayouts
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
Builds a debug string for this panel state.
-