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
-
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()
Return the frameint
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
-
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
-