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) int
int
int
static final int
int
private float
(package private) int
(package private) int
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 TypeMethodDescription(package private) void
boolean
checkObjectHovered
(int x, int y, javajs.util.BS bsVisible) void
getFont
(float imageFontScaling) void
void
setProperty
(String propertyName, Object value, javajs.util.BS bs) boolean
wasClicked
(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:
setProperty
in classShape
-
wasClicked
public boolean wasClicked(int x, int y) - Overrides:
wasClicked
in classShape
- Returns:
- T/F
-
checkObjectHovered
public boolean checkObjectHovered(int x, int y, javajs.util.BS bsVisible) - Overrides:
checkObjectHovered
in classShape
- Returns:
- T/F
-
calcMetrics
void calcMetrics() -
getFont
public void getFont(float imageFontScaling) -
getShapeState
- Specified by:
getShapeState
in classShape
-