Package org.jmol.shape
Class Sticks
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.Sticks
-
Field Summary
FieldsModifier and TypeFieldDescriptionjavajs.util.BS
private int[]
private static final int
private int
private final javajs.util.P3i
boolean
private javajs.util.BS
private static final int
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, javajs.util.BS bsVisible, boolean drawPicking) boolean
checkObjectHovered
(int x, int y, javajs.util.BS bsVisible) private Bond
findPickedBond
(int x, int y, javajs.util.BS bsVisible, javajs.util.P3 pt, int[] closestAtom) getProperty
(String property, int index) void
void
void
setProperty
(String propertyName, Object value, javajs.util.BS bs) protected void
setSize
(int size, javajs.util.BS bsSelected) sets the size of a bond, or sets the selectedBonds setMethods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectDragged, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getIndexFromName, getPropertyData, getPropShape, getShapeDetail, getSize, getSizeG, getTranslucentLabel, initializeShape, initModelSet, replaceGroup, setModelSet, setModelVisibilityFlags, setPropS, setShapeSizeRD, setSizeRD, wasClicked
-
Field Details
-
myMask
private int myMask -
reportAll
public boolean reportAll -
bsOrderSet
public javajs.util.BS bsOrderSet -
selectedBonds
private javajs.util.BS selectedBonds -
closestAtom
private int[] closestAtom -
MAX_BOND_CLICK_DISTANCE_SQUARED
private static final int MAX_BOND_CLICK_DISTANCE_SQUARED- See Also:
-
ptXY
private final javajs.util.P3i ptXY -
XY_THREASHOLD
private static final int XY_THREASHOLD- See Also:
-
-
Constructor Details
-
Sticks
public Sticks()
-
-
Method Details
-
initShape
public void initShape() -
setSize
protected void setSize(int size, javajs.util.BS bsSelected) sets the size of a bond, or sets the selectedBonds set -
setProperty
- Specified by:
setProperty
in classShape
-
getProperty
- Overrides:
getProperty
in classShape
- Parameters:
property
-index
-- Returns:
- true if serviced
-
setAtomClickability
public void setAtomClickability()- Overrides:
setAtomClickability
in classShape
-
getShapeState
- Specified by:
getShapeState
in classShape
-
checkObjectHovered
public boolean checkObjectHovered(int x, int y, javajs.util.BS bsVisible) - Overrides:
checkObjectHovered
in classShape
- Parameters:
x
-y
-bsVisible
-- Returns:
- T/F
-
checkObjectClicked
public Map<String,Object> checkObjectClicked(int x, int y, int modifiers, javajs.util.BS bsVisible, boolean drawPicking) - Overrides:
checkObjectClicked
in classShape
- Parameters:
x
-y
-modifiers
-bsVisible
-drawPicking
- TODO- Returns:
- Hashtable containing information about pt clicked
-
findPickedBond
private Bond findPickedBond(int x, int y, javajs.util.BS bsVisible, javajs.util.P3 pt, int[] closestAtom) - Parameters:
x
-y
-bsVisible
- UNUSED?pt
-closestAtom
-- Returns:
- picked bond or null
-