org.jmol.shape
Class Sticks
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.Sticks
public class Sticks
- extends Shape
Method Summary |
Point3fi |
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,
Point3fi 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 |
Methods inherited from class org.jmol.shape.Shape |
appendCmd, checkBoundsMinMax, checkObjectDragged, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getIndexFromName, getProperty, getShapeCommands, getShapeCommands, getShapeDetail, getSize, getSize, getViewer, initializeShape, initModelSet, merge, setColix, setColix, setColix, setModelSet, setShapeProperty, setShapeSize, setSize, setStateInfo, setStateInfo, setVisibilityFlags, wasClicked |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myMask
private int myMask
reportAll
private boolean reportAll
bsOrderSet
private java.util.BitSet bsOrderSet
bsSizeSet
private java.util.BitSet bsSizeSet
bsColixSet
private java.util.BitSet bsColixSet
selectedBonds
private java.util.BitSet selectedBonds
MAX_BOND_CLICK_DISTANCE_SQUARED
private static final int MAX_BOND_CLICK_DISTANCE_SQUARED
- See Also:
- Constant Field Values
ptXY
private final javax.vecmath.Point3i ptXY
Sticks
public Sticks()
initShape
public void initShape()
- Overrides:
initShape
in class Shape
setSize
protected void setSize(int size,
java.util.BitSet bsSelected)
- sets the size of a bond, or sets the selectedBonds set
- Overrides:
setSize
in class Shape
- Parameters:
size
- bsSelected
-
setProperty
public void setProperty(java.lang.String propertyName,
java.lang.Object value,
java.util.BitSet bs)
- Description copied from class:
Shape
- may come from any source -- executed AFTER a shape's own setProperty method
- Overrides:
setProperty
in class Shape
getProperty
public java.lang.Object getProperty(java.lang.String property,
int index)
- Overrides:
getProperty
in class Shape
- Returns:
- true if serviced
setModelClickability
public void setModelClickability()
- Overrides:
setModelClickability
in class Shape
getShapeState
public java.lang.String getShapeState()
- Overrides:
getShapeState
in class Shape
checkObjectHovered
public boolean checkObjectHovered(int x,
int y,
java.util.BitSet bsVisible)
- Overrides:
checkObjectHovered
in class Shape
- Returns:
- T/F
checkObjectClicked
public Point3fi checkObjectClicked(int x,
int y,
int modifiers,
java.util.BitSet bsVisible)
- Overrides:
checkObjectClicked
in class Shape
- Returns:
- pt clicked
findPickedBond
private Bond findPickedBond(int x,
int y,
java.util.BitSet bsVisible,
Point3fi pt)
- Parameters:
x
- y
- bsVisible
- UNUSED?pt
-
- Returns:
- picked bond or null