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, title
Fields 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 TypeMethodDescriptionvoid
checkObjectClicked
(int x, int y, int action, BS bsVisible, boolean drawPicking) boolean
checkObjectDragged
(int prevX, int prevY, int x, int y, int dragAction, BS bsVisible) boolean
checkObjectHovered
(int x, int y, BS bsVisible) protected void
clean()
getProperty
(String property, int index) boolean
getPropertyData
(String property, Object[] data) void
static boolean
static boolean
isPolygonDisplayable
(Mesh mesh, int i) static P3
void
setModelVisibilityFlags
(BS bsModels) void
setProperty
(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, setTokenProperty
Methods 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:
allocMesh
in classMeshCollection
-
initShape
public void initShape()- Overrides:
initShape
in classMeshCollection
-
setProperty
- Specified by:
setProperty
in classShape
-
setTitle
- Overrides:
setTitle
in classMeshCollection
-
getPropertyData
- Overrides:
getPropertyData
in classShape
- Parameters:
property
-data
-- Returns:
- true if serviced
-
getProperty
- Overrides:
getProperty
in classShape
- Parameters:
property
-index
-- Returns:
- true if serviced
-
clean
protected void clean()- Overrides:
clean
in classMeshCollection
-
setModelVisibilityFlags
- Overrides:
setModelVisibilityFlags
in classMeshCollection
- Parameters:
bsModels
-
-
checkObjectClicked
public Map<String,Object> checkObjectClicked(int x, int y, int action, BS bsVisible, boolean drawPicking) - Overrides:
checkObjectClicked
in classShape
- Parameters:
x
-y
-action
-bsVisible
-drawPicking
- TODO- Returns:
- Hashtable containing information about pt clicked
-
checkObjectHovered
- Overrides:
checkObjectHovered
in classShape
- Parameters:
x
-y
-bsVisible
-- Returns:
- T/F
-
checkObjectDragged
- Overrides:
checkObjectDragged
in classShape
- Parameters:
prevX
-prevY
-x
-y
-dragAction
-bsVisible
-- Returns:
- T/F
-
isPolygonDisplayable
-
is2DPoint
-
getShapeDetail
- Overrides:
getShapeDetail
in classShape
-
getShapeState
- Specified by:
getShapeState
in classShape
-
randomPoint
-