Package org.jmol.shapespecial
Class Draw
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.MeshCollection
org.jmol.shapespecial.Draw
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jmol.shape.MeshCollection
bsDisplay, colix, color, connections, currentMesh, displayWithinDistance2, displayWithinPoints, explicitID, htObjects, isDisplayWithinNot, isFixed, jvxlData, linkedMesh, meshCount, meshes, modelIndex, nUnnamed, pickedMesh, pickedModel, pickedPt, pickedVertex, PREVIOUS_MESH_ID, previousMeshID, titleFields 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 TypeMethodDescriptionvoidcheckObjectClicked(int x, int y, int action, BS bsVisible, boolean drawPicking) booleancheckObjectDragged(int prevX, int prevY, int x, int y, int dragAction, BS bsVisible) booleancheckObjectHovered(int x, int y, BS bsVisible) protected voidclean()getProperty(String property, int index) booleangetPropertyData(String property, Object[] data) voidstatic booleanstatic booleanisPolygonDisplayable(Mesh mesh, int i) static P3voidsetModelVisibilityFlags(BS bsModels) voidsetProperty(String propertyName, Object value, BS bs) protected String[]Methods inherited from class org.jmol.shape.MeshCollection
checkExplicit, deleteMeshI, deleteMeshKey, getIndexFromName, getMesh, getMeshList, getPickedPoint, getPropDataMC, getPropMC, getValues, getVertices, merge, resetObjects, setMeshColor, setPropMC, setStatusPicked, setTokenPropertyMethods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getPropShape, getSize, getSizeG, getTranslucentLabel, initializeShape, initModelSet, replaceGroup, setAtomClickability, setModelSet, setProperties, setPropS, setShapeSizeRD, setSize, setSizeRD, wasClicked
-
Field Details
-
defaultFontId0
public int defaultFontId0 -
defaultFontId
public int defaultFontId
-
-
Constructor Details
-
Draw
public Draw()
-
-
Method Details
-
allocMesh
- Overrides:
allocMeshin classMeshCollection
-
initShape
public void initShape()- Overrides:
initShapein classMeshCollection
-
setProperty
- Specified by:
setPropertyin classShape
-
setTitle
- Overrides:
setTitlein classMeshCollection
-
getPropertyData
- Overrides:
getPropertyDatain classShape- Parameters:
property-data-- Returns:
- true if serviced
-
getProperty
- Overrides:
getPropertyin classShape- Parameters:
property-index-- Returns:
- true if serviced
-
clean
protected void clean()- Overrides:
cleanin classMeshCollection
-
setModelVisibilityFlags
- Overrides:
setModelVisibilityFlagsin classMeshCollection- Parameters:
bsModels-
-
checkObjectClicked
public Map<String,Object> checkObjectClicked(int x, int y, int action, BS bsVisible, boolean drawPicking) - Overrides:
checkObjectClickedin classShape- Parameters:
x-y-action-bsVisible-drawPicking- TODO- Returns:
- Hashtable containing information about pt clicked
-
checkObjectHovered
- Overrides:
checkObjectHoveredin classShape- Parameters:
x-y-bsVisible-- Returns:
- T/F
-
checkObjectDragged
- Overrides:
checkObjectDraggedin classShape- Parameters:
prevX-prevY-x-y-dragAction-bsVisible-- Returns:
- T/F
-
isPolygonDisplayable
-
is2DPoint
-
getShapeDetail
- Overrides:
getShapeDetailin classShape
-
getShapeState
- Specified by:
getShapeStatein classShape
-
randomPoint
-