|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.util.MolImageSize
public class MolImageSize
Class that stores the size and magnification of a molecule image.
| Field Summary | |
|---|---|
int |
height
Height. |
double |
scale
Scaling factor. |
int |
width
Width. |
| Constructor Summary | |
|---|---|
MolImageSize()
Constructs an object with zero width, height and scale. |
|
MolImageSize(int w,
int h,
double s)
Constructs an object with the specified width, height and scale. |
|
MolImageSize(MolImageSize other)
Copy constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates an identical copy. |
java.lang.String |
toString()
Returns a string representation of the image size and scale. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int width
public int height
public double scale
| Constructor Detail |
|---|
public MolImageSize()
public MolImageSize(int w,
int h,
double s)
public MolImageSize(MolImageSize other)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
MolImageSize g = new MolImageSize(200, 200, scale);
byte[] png = mol.toBinFormat("png:"+g);
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||