Package org.jmol.shape
Class Frank
java.lang.Object
org.jmol.shape.Shape
org.jmol.shape.Frank
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Font(package private) static final String(package private) static final int(package private) static final String(package private) int(package private) intintintstatic final intintprivate float(package private) int(package private) intFields 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 TypeMethodDescription(package private) voidbooleancheckObjectHovered(int x, int y, javajs.util.BS bsVisible) voidgetFont(float imageFontScaling) voidvoidsetProperty(String propertyName, Object value, javajs.util.BS bs) booleanwasClicked(int x, int y) Methods inherited from class org.jmol.shape.Shape
appendCmd, checkBoundsMinMax, checkObjectClicked, checkObjectDragged, coordinateInRange, encodeColor, findNearestAtomIndex, getColix, getColixA, getColixB, getColixI, getColorCommand, getColorCommandUnk, getFontCommand, getIndexFromName, getProperty, getPropertyData, getPropShape, getShapeDetail, getSize, getSizeG, getTranslucentLabel, initializeShape, initModelSet, replaceGroup, setAtomClickability, setModelSet, setModelVisibilityFlags, setPropS, setShapeSizeRD, setSize, setSizeRD
-
Field Details
-
defaultFontName
- See Also:
-
defaultFontStyle
- See Also:
-
defaultFontSize
static final int defaultFontSize- See Also:
-
frankMargin
public static final int frankMargin- See Also:
-
frankString
-
currentMetricsFont3d
Font currentMetricsFont3d -
baseFont3d
-
frankWidth
public int frankWidth -
frankAscent
public int frankAscent -
frankDescent
public int frankDescent -
x
int x -
y
int y -
dx
int dx -
dy
int dy -
scaling
private float scaling -
font3d
-
-
Constructor Details
-
Frank
public Frank()
-
-
Method Details
-
initShape
public void initShape() -
setProperty
- Specified by:
setPropertyin classShape
-
wasClicked
public boolean wasClicked(int x, int y) - Overrides:
wasClickedin classShape- Returns:
- T/F
-
checkObjectHovered
public boolean checkObjectHovered(int x, int y, javajs.util.BS bsVisible) - Overrides:
checkObjectHoveredin classShape- Returns:
- T/F
-
calcMetrics
void calcMetrics() -
getFont
public void getFont(float imageFontScaling) -
getShapeState
- Specified by:
getShapeStatein classShape
-