Package org.jmol.shape
Class Sticks
- java.lang.Object
-
- org.jmol.shape.Shape
-
- org.jmol.shape.Sticks
-
public class Sticks extends Shape
-
-
Field Summary
Fields Modifier and Type Field Description BSbsOrderSetprivate static intMAX_BOND_CLICK_DISTANCE_SQUAREDprivate intmyMaskprivate javajs.util.P3iptXYbooleanreportAllprivate BSselectedBonds-
Fields inherited from class org.jmol.shape.Shape
bsColixSet, bsSizeSet, isBioShape, ms, myType, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, vf, vwr
-
-
Constructor Summary
Constructors Constructor Description Sticks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>checkObjectClicked(int x, int y, int modifiers, BS bsVisible, boolean drawPicking)booleancheckObjectHovered(int x, int y, BS bsVisible)private BondfindPickedBond(int x, int y, BS bsVisible, javajs.util.P3 pt)java.lang.ObjectgetProperty(java.lang.String property, int index)java.lang.StringgetShapeState()voidinitShape()voidsetAtomClickability()voidsetProperty(java.lang.String propertyName, java.lang.Object value, BS bs)protected voidsetSize(int size, BS bsSelected)sets the size of a bond, or sets the selectedBonds set-
Methods 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 Detail
-
myMask
private int myMask
-
reportAll
public boolean reportAll
-
bsOrderSet
public BS bsOrderSet
-
selectedBonds
private BS selectedBonds
-
MAX_BOND_CLICK_DISTANCE_SQUARED
private static final int MAX_BOND_CLICK_DISTANCE_SQUARED
- See Also:
- Constant Field Values
-
ptXY
private final javajs.util.P3i ptXY
-
-
Method Detail
-
setSize
protected void setSize(int size, BS bsSelected)sets the size of a bond, or sets the selectedBonds set
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.Object value, BS bs)- Specified by:
setPropertyin classShape
-
getProperty
public java.lang.Object getProperty(java.lang.String property, int index)- Overrides:
getPropertyin classShape- Returns:
- true if serviced
-
setAtomClickability
public void setAtomClickability()
- Overrides:
setAtomClickabilityin classShape
-
getShapeState
public java.lang.String getShapeState()
- Specified by:
getShapeStatein classShape
-
checkObjectHovered
public boolean checkObjectHovered(int x, int y, BS bsVisible)- Overrides:
checkObjectHoveredin classShape- Returns:
- T/F
-
checkObjectClicked
public java.util.Map<java.lang.String,java.lang.Object> checkObjectClicked(int x, int y, int modifiers, BS bsVisible, boolean drawPicking)- Overrides:
checkObjectClickedin classShapedrawPicking- TODO- Returns:
- Hashtable containing information about pt clicked
-
-