ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Public Member Functions | Package Functions | Package Attributes | Private Member Functions | Private Attributes | Static Private Attributes
EPSCreator Class Reference

This class contains information about what isotopes exist, and what isotopes to draw with what color. More...

List of all members.

Public Member Functions

 EPSCreator (ArrayList< JIsotope > list, int blZ, int blA, int urZ, int urA)
 accepts a list of lists of isotopes, each list will be drawn in a distinct color with this constructor, what part of the table of isotopes should be drawn is not specified, the entire table of isotopes will be drawn by default
 EPSCreator (ArrayList< JIsotope > lists)
 sets what nuclides to draw (bottomLeftZ, bottomLeftA, upperRightZ, upperRightA)
void createEPSDocument (String filename)

Package Functions

int findMinN (int Z)
int findMaxN (int Z)
int findMinZ (int N)
int findMaxZ (int N)
 accepts a list of lists of isotopes, each list will be drawn in a distinct color the four integer arguments specify what part of the table of isotopes to draw they are in order: Z and A of the isotope that should be drawn in the bottom left corner and Z and A of the isotope that should be drawn in the upper right corner

Package Attributes

int bottomLeftA
int upperRightZ
int upperRightA
int upperRightN
int height
int isotopeWidth
int isotopeHeight
Graphics2D graphics
int preferredSizeOutside = 10
List< Integer > MagicNumbers
 Find minimum N for given Z.

Private Member Functions

void setViewingArea (int blZ, int blA, int urZ, int urA)
 Draw a line given input coordinates.
void drawLine (double x1, double x2, double y1, double y2)
 draws the entire nuclide chart with colours according to the lists in isotopeLists
void drawNuclideChart ()
 Returns the width within boundaries.
double widthBoundaryCheck (double toCheck)
 Returns the height within boundaries.
double heightBoundaryCheck (double toCheck)
 Draw magic lines.
void drawNewMagicLines ()
 Draw a JIsotope.
void drawJIsotope (JIsotope iso, Graphics g)
 creates the EPS document

Private Attributes

int bottomLeftZ
int bottomLeftN
int width

Static Private Attributes

static ArrayList< JIsotopeisotopeList
static ArrayList< RGBVectorrgbVectorList

Detailed Description

This class contains information about what isotopes exist, and what isotopes to draw with what color.

It also handles the drawing and creation of an EPS document.

Author:
Carl Toft, Philippe Klintefelt-Collet, Rikard Lundmark

Definition at line 27 of file EPSCreator.java.


Member Function Documentation

int EPSCreator::findMaxN ( int  Z) [inline, package]
Parameters:
ZFind maximum N for given Z.

Definition at line 57 of file EPSCreator.java.

Referenced by drawNewMagicLines().

    {
        int found = -10000;
        for(JIsotope i:isotopeList)
            {
                if(i.getZ()==Z)
                    {
                        if(i.getN()>found)
                            found=i.getN();
                    }
            }
        if(found>upperRightN)
            return upperRightN;
        return found;
    }
int EPSCreator::findMaxZ ( int  N) [inline, package]

accepts a list of lists of isotopes, each list will be drawn in a distinct color the four integer arguments specify what part of the table of isotopes to draw they are in order: Z and A of the isotope that should be drawn in the bottom left corner and Z and A of the isotope that should be drawn in the upper right corner

Parameters:
NFind maximum Z for given N.

Definition at line 89 of file EPSCreator.java.

Referenced by drawNewMagicLines().

int EPSCreator::findMinN ( int  Z) [inline, package]
Parameters:
ZZ

Definition at line 41 of file EPSCreator.java.

Referenced by drawNewMagicLines().

    {
        int found = 10000;
        for(JIsotope i:isotopeList)
            {
                if(i.getZ()==Z)
                    {
                        if(i.getN()<found)
                            found=i.getN();
                    }
            }
        if(found<bottomLeftN)
            return bottomLeftN;
        return found;
    }
int EPSCreator::findMinZ ( int  N) [inline, package]
Parameters:
NFind minimum Z for given N.

Definition at line 73 of file EPSCreator.java.

Referenced by drawNewMagicLines().

    {
        int found = 10000;
        for(JIsotope i:isotopeList)
            {
                if(i.getN()==N)
                    {
                        if(i.getZ()<found)
                            found=i.getZ();
                    }
            }
        if(found<bottomLeftZ)
            return bottomLeftZ;
        return found;
    }

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark