Package org.tweetyproject.commons
Class Plotter
java.lang.Object
org.tweetyproject.commons.Plotter
A class for managing and displaying several plots in a single frame
- Author:
 - Benedikt Knopp
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a sub-plot the the framevoidAdd some description to the framevoidcreateFrame(int frameWidth, int frameHeight) Create a new main frame with specific proportionsgetFrame()intgetHGap()Get the horizontal gap between panelsintgetVGap()Get the vertical gap between panelsvoidshow()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
 
 -