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 SummaryConstructors
- 
Method SummaryModifier 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- 
Plotterpublic Plotter()Create a new instance
 
- 
- 
Method Details- 
createFramepublic void createFrame(int frameWidth, int frameHeight) Create a new main frame with specific proportions- Parameters:
- frameWidth- the width of the frame
- frameHeight- the height of the frame
 
- 
showpublic void show()Show the frame after adding some plots
- 
getFrame- Returns:
- the frame
 
- 
addAdd a sub-plot the the frame- Parameters:
- panel- the panel containing the sub-plot
 
- 
getHGappublic int getHGap()Get the horizontal gap between panels- Returns:
- the horizontal gap
 
- 
getVGappublic int getVGap()Get the vertical gap between panels- Returns:
- the vertical gap
 
- 
addLabelsAdd some description to the frame- Parameters:
- labels- a list of strings that will be aligned vertically
 
 
-