public class Sticks extends Shape
Modifier and Type | Field and Description |
---|---|
private java.util.BitSet |
bsColixSet |
private java.util.BitSet |
bsOrderSet |
private java.util.BitSet |
bsSizeSet |
private static int |
MAX_BOND_CLICK_DISTANCE_SQUARED |
private int |
myMask |
private javax.vecmath.Point3i |
ptXY |
private boolean |
reportAll |
private java.util.BitSet |
selectedBonds |
g3d, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer, xmlProperties
Constructor and Description |
---|
Sticks() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
checkObjectClicked(int x,
int y,
int modifiers,
java.util.BitSet bsVisible) |
boolean |
checkObjectHovered(int x,
int y,
java.util.BitSet bsVisible) |
private Bond |
findPickedBond(int x,
int y,
java.util.BitSet bsVisible,
javax.vecmath.Point3f pt) |
java.lang.Object |
getProperty(java.lang.String property,
int index) |
java.lang.String |
getShapeState() |
void |
initShape() |
void |
setModelClickability() |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value,
java.util.BitSet bs)
may come from any source -- executed AFTER a shape's own setProperty method
|
protected void |
setSize(int size,
java.util.BitSet bsSelected)
sets the size of a bond, or sets the selectedBonds set
|
appendCmd, checkBoundsMinMax, checkObjectDragged, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getIndexFromName, getProperty, getShapeCommands, getShapeCommands, getShapeDetail, getSize, getSize, getTranslucentLabel, getViewer, initializeShape, initModelSet, merge, setColix, setColix, setColix, setModelSet, setShapeProperty, setShapeSize, setSize, setStateInfo, setStateInfo, setVisibilityFlags, wasClicked
private int myMask
private boolean reportAll
private java.util.BitSet bsOrderSet
private java.util.BitSet bsSizeSet
private java.util.BitSet bsColixSet
private java.util.BitSet selectedBonds
private static final int MAX_BOND_CLICK_DISTANCE_SQUARED
private final javax.vecmath.Point3i ptXY
protected void setSize(int size, java.util.BitSet bsSelected)
public void setProperty(java.lang.String propertyName, java.lang.Object value, java.util.BitSet bs)
Shape
setProperty
in class Shape
public java.lang.Object getProperty(java.lang.String property, int index)
getProperty
in class Shape
public void setModelClickability()
setModelClickability
in class Shape
public java.lang.String getShapeState()
getShapeState
in class Shape
public boolean checkObjectHovered(int x, int y, java.util.BitSet bsVisible)
checkObjectHovered
in class Shape
public java.util.Map<java.lang.String,java.lang.Object> checkObjectClicked(int x, int y, int modifiers, java.util.BitSet bsVisible)
checkObjectClicked
in class Shape
private Bond findPickedBond(int x, int y, java.util.BitSet bsVisible, javax.vecmath.Point3f pt)
x
- y
- bsVisible
- UNUSED?pt
-