public class Sticks extends Shape
Modifier and Type | Field and Description |
---|---|
private BS |
bsOrderSet |
private static int |
MAX_BOND_CLICK_DISTANCE_SQUARED |
private int |
myMask |
private P3i |
ptXY |
private boolean |
reportAll |
private BS |
selectedBonds |
bsColixSet, bsSizeSet, gdata, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer
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,
BS bsVisible,
boolean drawPicking) |
boolean |
checkObjectHovered(int x,
int y,
BS bsVisible) |
private Bond |
findPickedBond(int x,
int y,
BS bsVisible,
P3 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,
BS bs)
may come from any source -- executed AFTER a shape's own setProperty method
|
protected void |
setSize(int size,
BS bsSelected)
sets the size of a bond, or sets the selectedBonds set
|
appendCmd, checkBoundsMinMax, checkObjectDragged, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getIndexFromName, getPropertyData, getShapeDetail, getSize, getSizeG, getTranslucentLabel, getViewer, initializeShape, initModelSet, merge, setModelSet, setPropS, setShapeSizeRD, setSizeRD, setVisibilityFlags, wasClicked
private int myMask
private boolean reportAll
private BS bsOrderSet
private BS selectedBonds
private static final int MAX_BOND_CLICK_DISTANCE_SQUARED
private final P3i ptXY
protected void setSize(int size, BS bsSelected)
public void setProperty(java.lang.String propertyName, java.lang.Object value, BS 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, BS bsVisible)
checkObjectHovered
in class Shape
public java.util.Map<java.lang.String,java.lang.Object> checkObjectClicked(int x, int y, int modifiers, BS bsVisible, boolean drawPicking)
checkObjectClicked
in class Shape
drawPicking
- TODO