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[]
int
short
short
int
int
byte
int
int
int[]
String[]
int[]
String[]
int
Fields inherited from class org.jmol.shape.AtomShape
bsSizeDefault, colixes, isActive, isSet, mad, mads, monomerCount, paletteIDs
Fields 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) boolean
checkObjectDragged
(int prevX, int prevY, int x, int y, int dragAction, BS bsVisible) float[]
getBox
(int i) short
getLabel
(int i) getProperty
(String property, int index) void
void
putBox
(int i, float[] boxXY) void
void
void
setProperty
(String propertyName, Object value, BS bs) Methods inherited from class org.jmol.shape.AtomShape
checkColixLength, getShapeState, getSize, initModelSet, setColixAndPalette, setPropAS, setSize, setSize2, setSizeRD, setSizeRD2
Methods 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:
setProperty
in classShape
-
getProperty
- Overrides:
getProperty
in 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:
setAtomClickability
in classAtomShape
-
checkObjectClicked
public Map<String,Object> checkObjectClicked(int x, int y, int modifiers, BS bsVisible, boolean drawPicking) - Overrides:
checkObjectClicked
in classShape
- Parameters:
x
-y
-modifiers
-bsVisible
-drawPicking
- TODO- Returns:
- Hashtable containing information about pt clicked
-
checkObjectDragged
- Overrides:
checkObjectDragged
in classShape
- Parameters:
prevX
-prevY
-x
-y
-dragAction
-bsVisible
-- Returns:
- T/F
-
getColix2
-