org.jmol.shape
Class Object2dShape

java.lang.Object
  extended by org.jmol.shape.Shape
      extended by org.jmol.shape.Object2dShape
Direct Known Subclasses:
TextShape

public class Object2dShape
extends Shape


Field Summary
(package private)  Object currentBgColor
           
(package private)  float currentBgTranslucentLevel
           
(package private)  Object currentColor
           
(package private)  Font3D currentFont
           
(package private)  Object2d currentObject
           
(package private)  float currentTranslucentLevel
           
(package private)  boolean isAll
           
(package private)  boolean isHover
           
(package private)  Hashtable objects
           
protected  String thisID
           
 
Fields inherited from class org.jmol.shape.Shape
g3d, isBioShape, modelSet, myVisibilityFlag, RADIUS_MAX, shapeID, translucentAllowed, translucentLevel, viewer, xmlProperties
 
Constructor Summary
Object2dShape()
           
 
Method Summary
 Point3fi checkObjectClicked(int x, int y, int modifiers, BitSet bsVisible)
           
 boolean checkObjectHovered(int x, int y, BitSet bsVisible)
           
protected  void initModelSet()
           
 void setProperty(String propertyName, Object value, BitSet bsSelected)
          may come from any source -- executed AFTER a shape's own setProperty method
 void setVisibilityFlags(BitSet bs)
           
 
Methods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectDragged, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColorCommand, getColorCommand, getFontCommand, getIndexFromName, getProperty, getProperty, getShapeCommands, getShapeCommands, getShapeDetail, getShapeState, getSize, getSize, getViewer, initializeShape, initShape, merge, setColix, setColix, setColix, setModelClickability, setModelSet, setShapeProperty, setShapeSize, setSize, setSize, setStateInfo, setStateInfo, wasClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objects

Hashtable objects

currentObject

Object2d currentObject

currentFont

Font3D currentFont

currentColor

Object currentColor

currentBgColor

Object currentBgColor

currentTranslucentLevel

float currentTranslucentLevel

currentBgTranslucentLevel

float currentBgTranslucentLevel

thisID

protected String thisID

isHover

boolean isHover

isAll

boolean isAll
Constructor Detail

Object2dShape

public Object2dShape()
Method Detail

setProperty

public void setProperty(String propertyName,
                        Object value,
                        BitSet bsSelected)
Description copied from class: Shape
may come from any source -- executed AFTER a shape's own setProperty method

Overrides:
setProperty in class Shape

initModelSet

protected void initModelSet()
Overrides:
initModelSet in class Shape

setVisibilityFlags

public void setVisibilityFlags(BitSet bs)
Overrides:
setVisibilityFlags in class Shape

checkObjectClicked

public Point3fi checkObjectClicked(int x,
                                   int y,
                                   int modifiers,
                                   BitSet bsVisible)
Overrides:
checkObjectClicked in class Shape

checkObjectHovered

public boolean checkObjectHovered(int x,
                                  int y,
                                  BitSet bsVisible)
Overrides:
checkObjectHovered in class Shape