public class Cm2_Toolkit
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Cm2_Toolkit.Membrane_Image2D_Generator |
static class |
Cm2_Toolkit.ToolkitMembranePackingAlgorithm
This class is only used for direct access to the different methods
of the MembranePackingAlgorithm interface.
|
Modifier and Type | Field and Description |
---|---|
static char[] |
CHARS
Creates a copy of the passed matrix.
|
static java.lang.String[] |
MONTHS |
Constructor and Description |
---|
Cm2_Toolkit() |
Modifier and Type | Method and Description |
---|---|
static boolean |
amIRunningOnWebstart()
This is a dirty approach, i know
|
static int[] |
calcPercentages(int reference,
int[] olds)
Calculates the passed array of numbers
|
static float |
calculateLengthBetween(javax.vecmath.Point3f a,
javax.vecmath.Point3f b) |
static java.util.Vector<java.lang.Object> |
combineVectors(java.util.Vector<java.lang.Object> v1,
java.util.Vector<java.lang.Object> v2)
Puts the contents of first v1 and then v2 into a new Vector.
|
static void |
complain(java.lang.String text,
java.lang.String title) |
static void |
complainInternet() |
static void |
complainXML(java.lang.String fileName) |
static void |
compressToJar(java.io.File javafile,
java.io.File dest) |
static java.lang.String |
convertAtomNameToElementName(java.lang.String key) |
static java.lang.String |
convertFileSizeToString(long d)
Makes the passed Filesize to a string
|
static void |
copyFile(java.io.File sourceFile,
java.io.File destinationFile)
This method makes a copy of the given sourceFile to the defined destinationFile.
|
static javax.vecmath.Matrix3f |
copyMatrix(javax.vecmath.Matrix3f m) |
static javax.vecmath.Matrix3f |
createAUnitMatrix() |
static java.lang.String |
createCurrentDate() |
static java.awt.Color |
createRandomCholesterolColor() |
static void |
deleteDir(java.io.File dir,
boolean instantly) |
static java.lang.String |
extendLeft(java.lang.String sample,
int cols) |
static java.lang.String |
extendRight(java.lang.String sample,
int cols) |
static void |
extractFromJar(java.lang.String source,
java.lang.String dest) |
static java.util.Vector<java.lang.Object> |
fromArrayToVector(java.lang.Object[] obj)
Copies the array into a new Vector
|
static int |
getCharacterPosOf(char c) |
static java.awt.Color |
getRandomLipidColor()
Get a randomly created Color for Lipids
|
static java.awt.Color |
getRandomProteinColor()
Get a randomly created Color for Proteins
|
static java.lang.String |
getSimpleName(java.io.File file)
Returns the simple name without the file extension
|
static javax.vecmath.Point3f |
normalVectorInPlane(javax.vecmath.Point3f pointX,
javax.vecmath.Point3f pointX0)
Returns the normal vector of two given points
which are lying in one plane.
|
static void |
openWebPageOnSystemBrowser(java.lang.String url)
Tries to display the passed url in the Default OS Webbrowser
|
static void |
popUpLayoutDescription(net.infonode.docking.RootWindow root)
This is for development purposes only.
|
static void |
rotate_X_Axis_Matrix(javax.vecmath.Matrix3f current,
float angle) |
static void |
rotate_X_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current,
float angle) |
static void |
rotate_Y_Axis_Matrix(javax.vecmath.Matrix3f current,
float angle) |
static void |
rotate_Y_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current,
float angle) |
static void |
rotate_Z_Axis_Matrix(javax.vecmath.Matrix3f current,
float angle) |
static void |
rotate_Z_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current,
float angle) |
static java.awt.image.BufferedImage |
rotateImage90(java.awt.image.BufferedImage img) |
static void |
setAllCapabilitysForBranchGroup(javax.media.j3d.BranchGroup branch)
sets up capabilitys for BranchGroup
|
static void |
setAllCapabilitysForShape3D(javax.media.j3d.Shape3D shape)
Sets up the required capabilities for a molecule
|
static void |
setAllCapabilitysForTransformGroup(javax.media.j3d.TransformGroup trans)
sets up capabilitys for TransformGroup
|
static void |
setRenderingAttributes(javax.media.j3d.Appearance appear)
The given Appearance is assigned to the RenderingAttributes.
|
static java.lang.String |
showInputDialog(java.awt.Component component,
java.lang.String message,
java.lang.String title,
java.lang.String[] choices,
java.lang.String[] exclusions,
java.lang.String initial) |
static javax.vecmath.Point3f |
transformToNewPoint(javax.vecmath.Matrix3f matrix,
javax.vecmath.Point3f point3f)
Rotates a point according to the passed matrix.
|
public static final char[] CHARS
public static final java.lang.String[] MONTHS
public static javax.vecmath.Matrix3f copyMatrix(javax.vecmath.Matrix3f m)
public static java.lang.String getSimpleName(java.io.File file)
public static void popUpLayoutDescription(net.infonode.docking.RootWindow root)
public static int[] calcPercentages(int reference, int[] olds)
newval
- integers
- public static java.lang.String convertFileSizeToString(long d)
d
- public static java.awt.Color getRandomProteinColor()
public static java.awt.Color getRandomLipidColor()
public static java.awt.Color createRandomCholesterolColor()
public static javax.vecmath.Point3f transformToNewPoint(javax.vecmath.Matrix3f matrix, javax.vecmath.Point3f point3f)
matrix
- point3f
- public static javax.vecmath.Matrix3f createAUnitMatrix()
public static void rotate_X_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current, float angle)
public static void rotate_Y_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current, float angle)
public static void rotate_Z_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current, float angle)
public static void rotate_X_Axis_Matrix(javax.vecmath.Matrix3f current, float angle)
public static void rotate_Y_Axis_Matrix(javax.vecmath.Matrix3f current, float angle)
public static void rotate_Z_Axis_Matrix(javax.vecmath.Matrix3f current, float angle)
public static int getCharacterPosOf(char c)
public static java.lang.String createCurrentDate()
public static java.lang.String extendLeft(java.lang.String sample, int cols)
public static java.lang.String extendRight(java.lang.String sample, int cols)
public static void openWebPageOnSystemBrowser(java.lang.String url)
public static void complainInternet()
public static void complainXML(java.lang.String fileName)
public static void complain(java.lang.String text, java.lang.String title)
public static void extractFromJar(java.lang.String source, java.lang.String dest) throws java.lang.Exception
java.lang.Exception
public static void compressToJar(java.io.File javafile, java.io.File dest) throws java.lang.Exception
java.lang.Exception
public static void deleteDir(java.io.File dir, boolean instantly)
public static boolean amIRunningOnWebstart()
public static java.awt.image.BufferedImage rotateImage90(java.awt.image.BufferedImage img)
public static void setAllCapabilitysForBranchGroup(javax.media.j3d.BranchGroup branch)
branch
- public static void setAllCapabilitysForTransformGroup(javax.media.j3d.TransformGroup trans)
trans
- public static void setAllCapabilitysForShape3D(javax.media.j3d.Shape3D shape)
m
- public static void setRenderingAttributes(javax.media.j3d.Appearance appear)
appear
- the Appearance which should get the RenderingAttributespublic static java.util.Vector<java.lang.Object> combineVectors(java.util.Vector<java.lang.Object> v1, java.util.Vector<java.lang.Object> v2)
v1
- v2
- public static java.util.Vector<java.lang.Object> fromArrayToVector(java.lang.Object[] obj)
obj
- public static javax.vecmath.Point3f normalVectorInPlane(javax.vecmath.Point3f pointX, javax.vecmath.Point3f pointX0)
public static float calculateLengthBetween(javax.vecmath.Point3f a, javax.vecmath.Point3f b)
public static java.lang.String showInputDialog(java.awt.Component component, java.lang.String message, java.lang.String title, java.lang.String[] choices, java.lang.String[] exclusions, java.lang.String initial)
public static java.lang.String convertAtomNameToElementName(java.lang.String key)
public static void copyFile(java.io.File sourceFile, java.io.File destinationFile) throws java.io.IOException
sourceFile
- destinationFile
- java.io.IOException