Logo Search packages:      
Sourcecode: jmol version File versions  Download package

Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Package Functions | Static Package Functions | Package Attributes | Static Package Attributes | Private Member Functions | Private Attributes | Static Private Attributes

org::jmol::shape::Labels Class Reference

Inheritance diagram for org::jmol::shape::Labels:
Inheritance graph
[legend]
Collaboration diagram for org::jmol::shape::Labels:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void checkBoundsMinMax (Point3f pointMin, Point3f pointMax)
Point3fi checkObjectClicked (int x, int y, int modifiers, BitSet bsVisible)
synchronized boolean checkObjectDragged (int prevX, int prevY, int x, int y, int modifiers, BitSet bsVisible)
boolean checkObjectHovered (int x, int y, BitSet bsVisible)
void findNearestAtomIndex (int xMouse, int yMouse, Atom[] closest, BitSet bsNot)
String getColorCommand (String type, short colix)
String getColorCommand (String type, byte pid, short colix)
int getIndexFromName (String thisID)
Object getProperty (String property, int index)
boolean getProperty (String property, Object[] data)
List getShapeDetail ()
String getShapeState ()
int getSize (Group group)
int getSize (int atomIndex)
Viewer getViewer ()
final void initializeShape (Viewer viewer, Graphics3D g3d, ModelSet modelSet, int shapeID)
void initShape ()
void merge (Shape shape)
short setColix (short colix, byte paletteID, int atomIndex)
void setModelClickability ()
void setModelSet (ModelSet modelSet)
void setProperty (String propertyName, Object value, BitSet bsSelected)
void setShapeProperty (String propertyName, Object value, BitSet bsSelected)
void setShapeSize (int size, RadiusData rd, BitSet bsSelected)
void setVisibilityFlags (BitSet bs)
boolean wasClicked (int x, int y)

Static Public Member Functions

static void appendCmd (StringBuffer s, String cmd)
static short getColix (short[] colixes, int i, Atom atom)
static String getFontCommand (String type, Font3D font)
static String getShapeCommands (Hashtable htDefine, Hashtable htMore, String selectCmd)
static String getShapeCommands (Hashtable htDefine, Hashtable htMore)
static void setStateInfo (Hashtable ht, int i, String key)
static void setStateInfo (Hashtable ht, int i1, int i2, String key)

Public Attributes

int atomCount
Atom[] atoms
short[] colixes
Graphics3D g3d
boolean isActive
boolean isBioShape
short[] mads
ModelSet modelSet
int myVisibilityFlag
byte[] paletteIDs
int shapeID
Viewer viewer

Static Public Attributes

static final float RADIUS_MAX = 4

Protected Member Functions

int coordinateInRange (int x, int y, Point3f vertex, int dmin2, Point3i ptXY)
void initModelSet ()
short setColix (short colix, byte paletteID, Bond bond)
short setColix (short colix, byte paletteID, Atom atom)
void setColixAndPalette (short colix, byte paletteID, int atomIndex)
void setSize (RadiusData rd, BitSet bsSelected)
void setSize (int size, BitSet bsSelected)

Protected Attributes

BitSet bsColixSet
BitSet bsSizeSet
boolean translucentAllowed = true
float translucentLevel
List xmlProperties

Package Functions

Text getLabel (int i)
void putLabel (int i, Text text)

Static Package Functions

static String encodeColor (short colix)
static int getAlignment (int offsetFull)

Package Attributes

short[] bgcolixes
BitSet bsBgColixSet
byte[] fids
String[] formats
int[] offsets
int pickedAtom = -1
int pickedOffset = 0
String[] strings
byte zeroFontId

Static Package Attributes

static final int ALIGN_FLAGS = 0x0C
static final int EXACT_OFFSET_FLAG = 0x80
static final int FLAG_OFFSET = 8
static final int FLAGS = 0xFF
static final int FRONT_FLAG = 0x20
static final int GROUP_FLAG = 0x10
static final int POINTER_FLAGS = 0x03
static final int SCALE_FLAG = 0x40
static final int ZPOS_FLAGS = 0x30

Private Member Functions

String getDefaultState ()
void move2D (int pickedAtom, int x, int y)
void setAlignment (int i, int alignment)
void setBgcolix (int i, short bgcolix)
void setColix (int i, short colix, byte pid)
void setFont (int i, byte fid)
void setFront (int i, boolean TF)
void setGroup (int i, boolean TF)
void setLabel (String value, int i)
void setLabel (String value, BitSet bsSelected)
void setLabel (String strLabel, int i, boolean isScaled, float scalePixelsPerMicron)
void setOffsets (int i, int offset, boolean isExact)
void setPointer (int i, int pointer)

Private Attributes

Hashtable atomLabels = new Hashtable()
BitSet bsFontSet
int defaultAlignment
short defaultBgcolix
short defaultColix
byte defaultFontId
int defaultOffset
byte defaultPaletteID
int defaultPointer
boolean defaultsOnlyForNone = true
int defaultZPos
boolean setDefaults = false
Text text

Static Private Attributes

static int zeroOffset

Detailed Description

Definition at line 39 of file Labels.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index