Package org.tweetyproject.commons
Class Plotter
java.lang.Object
org.tweetyproject.commons.Plotter
- Direct Known Subclasses:
PlotterMultiFrame
A class for managing and displaying several plots in a single frame
- Author:
- Benedikt Knopp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a sub-plot the the framevoid
Add some description to the framevoid
createFrame
(int frameWidth, int frameHeight) Create a new main frame with specific proportionsgetFrame()
int
getHGap()
Get the horizontal gap between panelsint
getVGap()
Get the vertical gap between panelsvoid
show()
Show the frame after adding some plots
-
Constructor Details
-
Plotter
public Plotter()Create a new instance
-
-
Method Details
-
createFrame
public void createFrame(int frameWidth, int frameHeight) Create a new main frame with specific proportions- Parameters:
frameWidth
- the width of the frameframeHeight
- the height of the frame
-
show
public void show()Show the frame after adding some plots -
getFrame
- Returns:
- the frame
-
add
Add a sub-plot the the frame- Parameters:
panel
- the panel containing the sub-plot
-
getHGap
public int getHGap()Get the horizontal gap between panels- Returns:
- the horizontal gap
-
getVGap
public int getVGap()Get the vertical gap between panels- Returns:
- the vertical gap
-
addLabels
Add some description to the frame- Parameters:
labels
- a list of strings that will be aligned vertically
-