Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jplot: Javadoc index of package jplot.


Package Samples:

jplot

Classes:

GraphLabel: This class defines a label in terms of the actual text, font, color and position but also stuff like rotation, whether to hide or show etc. Some special treatment for standard X, Y labels and a title. Random labels are considered to be of type OTHER, which places them, by default, in the lower-left corner of the graph. Extends Rectangle, since a label has a rectangular bounding box, used to select, drag and drop the label. Note that the bounding box is defined by the upper-left corner, width (to the right) and height (directed towards the bottom).
Graph: The Graph class builds a panel which displays a graph according to the data stored in the DataArray . Extends JPanel since the graph is returned in a panel (it can be used in other applications or embedded in a frame. Implements Printable, so we can print the graph, and ComponentListener, needed to listen to a resize event. This class should be subclassed in order to build a specific graph type (i.e. a 2D graph, piper diagram or 3D, later)
LabelPanel: Creates a panel with options to set labels (X-, Y-axis labels, a title, random labels or text in general). Note that the number of labels and names of the pre-defined labels may change as a function of the graph type: for ordinary 2D graphs, we typically pre-define a title, y-label and x-label but for a piper diagram we have 6 pre-defined labels... Calling the show method pops up a frame (dialog) which includes the panel.
StyleChooser: StyleChooser is a class which enables the user to set the drawing style. It must be called with a DataArray object, which contains the initial drawing style. This class also provides the data drawing style chooser, an advanced specific purpose chooser which allows to select a line- and/or point drawing style, a plotting style, colors etc.
SavePanel: SavePanel build a panel used to save the graph to some format (JPEG for the time being, waiting for a decent EPS/PS decoder). Extends JPanel and not JDialog since this allows to include, if needed later, the panel within another widget. Calling the show method pops up a frame (dialog) which includes the panel.
JPlot: JPLOT: a Jan's Plotting Program. Developped for JCHESS, but extended for general use. BUGS/TODO: - rescale the X-scale as well with some value - put the different graph-styles in separate functions. Otherwise it is impossible to use different graph-styles together (e.g., a histogram AND a line connecting the points).
GraphPars: GraphPars contains the parameters which are used to draw the graph such as number of tics, scaling values, offset parameters, axis lengths etc. All these parameters are settable by the GUI, and written to this class. Class Graph reads this class and draws the graph based on these parameters.
Graph_Piper: The Graph_Piper class builds a panel which displays a Piper-diagram (ask geochemists what this is) according to the data stored in the DataArray . All general graph stuff and initialization is done in class Graph .
ScalingPanel: ScalingPanel creates a panel which allows a user to modify the way the graph is scaled on the axes. For example, by setting the maximum and minimum values of the X-axis instead of using an automatic scaling. Calling the show method pops up a frame (dialog) which includes the panel.
DataArray: The DataArray class is a special-purpose array class for use with the graphical plotting program JPlot. All the plotting attributes are defined in the base-class LinePars, here we set the actual data array, i.e. a vector of points (PlotPoints) defining X,Y.
Graph_2D: The Graph_2D class builds a panel which displays a 2Dgraph according to the data stored in the DataArray . All general graph stuff and initialization is done in class Graph .
LegendPanel: LegendPanel creates a panel which allows a user to modify the parameters used to set the legend, such as position, color, font etc. Calling the show method pops up a frame (dialog) which includes the panel.
DataFile: This class contains all the info specific for one datafile. The PlotPanel provides the columns to-be-plotted for a specific file, with a line-style class for each column. This class keeps track of this information.
LabelProperties: This class pops up a panel with settings used by the labels. Large part of the panel concerns the font and text color, other parts define the exact location (x,y in pixels) and rotation of the label.
PiperOptions: Here we create a panel which allows a user to modify several parameters specific to piper diagrams. Calling the show method pops up a frame (dialog) which includes the panel.
PlotPoint: The PlotPoint defines a plot point in terms of it's X- and Y value. Also sets the lift-pen attribute, which, if true, will lift the pen after having plot this point.
AxesPanel: Builds a panel with Tabs, containing optional parameters for labels, legends, colors, etc. Calling the show method shows a dialog with apply and cancel buttons.
LineStyle: Linestyle is a class which shows the current drawing style. Returns a panel or canvas on which is paint the drawing style according to the parameters past to the class.
SimpleEditor: The class shows a frame which enables to look at and eventually edit a file, any type of file. Build in a JPanel, so someone can reuse the editor in another class.
GridPanel: Creates a panel with options to set or use grid lines in the graph. Calling the show method pops up a frame (dialog) which includes the panel.
SwatchPanel: SwatchPanel builds a chooser panel from a series of rectangular chooseable 'buttons'... Note that this class must be derived in order to be used properly.
SmallButton: Class small button displays a button in the new 'window' style, i.e., you only see the button in raised or lowered state if you are on it with the mouse.
SmallToggleButton: Class small button displays a toggle button in the new 'window' style, i.e., pressed lesses the button in a 'lowered' state, else it remains raised.

Home | Contact Us | Privacy Policy | Terms of Service