Package org.jmol.shape
Class Labels
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.AtomShape
org.jmol.shape.Labels
-
Field Summary
FieldsModifier and TypeFieldDescriptionshort[]intshortshortintintbyteintintint[]String[]int[]String[]intFields inherited from class org.jmol.shape.AtomShape
bsSizeDefault, colixes, isActive, isSet, mad, mads, monomerCount, paletteIDsFields inherited from class org.jmol.shape.Shape
bsColixSet, bsSizeSet, isBioShape, ms, myType, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, vf, vwr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckObjectClicked(int x, int y, int modifiers, BS bsVisible, boolean drawPicking) booleancheckObjectDragged(int prevX, int prevY, int x, int y, int dragAction, BS bsVisible) float[]getBox(int i) shortgetLabel(int i) getProperty(String property, int index) voidvoidputBox(int i, float[] boxXY) voidvoidvoidsetProperty(String propertyName, Object value, BS bs) Methods inherited from class org.jmol.shape.AtomShape
checkColixLength, getShapeState, getSize, initModelSet, setColixAndPalette, setPropAS, setSize, setSize2, setSizeRD, setSizeRD2Methods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectHovered, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getIndexFromName, getPropertyData, getPropShape, getShapeDetail, getSizeG, getTranslucentLabel, initializeShape, replaceGroup, setModelSet, setModelVisibilityFlags, setProperties, setPropS, setShapeSizeRD, wasClicked
-
Field Details
-
strings
-
formats
-
bgcolixes
public short[] bgcolixes -
fids
public int[] fids -
offsets
public int[] offsets -
bsFontSet
-
bsBgColixSet
-
defaultOffset
public int defaultOffset -
defaultAlignment
public int defaultAlignment -
defaultZPos
public int defaultZPos -
defaultFontId
public int defaultFontId -
defaultColix
public short defaultColix -
defaultBgcolix
public short defaultBgcolix -
defaultPaletteID
public byte defaultPaletteID -
defaultPointer
public int defaultPointer -
zeroFontId
public int zeroFontId
-
-
Constructor Details
-
Labels
public Labels()
-
-
Method Details
-
initShape
public void initShape() -
setProperty
- Specified by:
setPropertyin classShape
-
getProperty
- Overrides:
getPropertyin classShape- Parameters:
property-index-- Returns:
- true if serviced
-
putLabel
-
getLabel
-
putBox
public void putBox(int i, float[] boxXY) -
getBox
public float[] getBox(int i) -
setAtomClickability
public void setAtomClickability()- Overrides:
setAtomClickabilityin classAtomShape
-
checkObjectClicked
public Map<String,Object> checkObjectClicked(int x, int y, int modifiers, BS bsVisible, boolean drawPicking) - Overrides:
checkObjectClickedin classShape- Parameters:
x-y-modifiers-bsVisible-drawPicking- TODO- Returns:
- Hashtable containing information about pt clicked
-
checkObjectDragged
- Overrides:
checkObjectDraggedin classShape- Parameters:
prevX-prevY-x-y-dragAction-bsVisible-- Returns:
- T/F
-
getColix2
-