public class Text extends Object2d
Modifier and Type | Field and Description |
---|---|
private int |
ascent |
private int |
descent |
private boolean |
doFormatText |
private byte |
fid |
(package private) Font3D |
font |
private float |
fontScale |
(package private) java.lang.Object |
image |
(package private) float |
imageScale |
private int |
lineHeight |
private java.lang.String[] |
lines |
private java.lang.String |
text |
private int |
textHeight |
private java.lang.String |
textUnformatted |
private int |
textWidth |
private int[] |
widths |
adjustForWindow, align, ALIGN_CENTER, ALIGN_LEFT, ALIGN_NONE, ALIGN_RIGHT, bgcolix, boxHeight, boxWidth, boxX, boxXY, boxY, colix, g3d, hAlignNames, hidden, isLabelOrHover, modelIndex, movableX, movableXPercent, movableY, movableYPercent, movableZ, movableZPercent, offsetX, offsetY, pointer, POINTER_BACKGROUND, POINTER_NONE, POINTER_ON, scalePixelsPerMicron, script, target, valign, VALIGN_BOTTOM, VALIGN_MIDDLE, VALIGN_TOP, VALIGN_XY, VALIGN_XYZ, vAlignNames, viewer, visible, windowHeight, windowWidth, xyz, z, zSlab
Constructor and Description |
---|
Text(JmolRendererInterface g3d,
Font3D font,
java.lang.String text,
short colix,
short bgcolix,
int x,
int y,
int z,
int zSlab,
int textAlign,
float scalePixelsPerMicron) |
Text(Viewer viewer,
Graphics3D g3d,
Font3D font,
java.lang.String target,
short colix,
int valign,
int align,
float scalePixelsPerMicron) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
fixText(java.lang.String text) |
private void |
formatText() |
private void |
getFontMetrics() |
java.lang.String |
getState() |
protected void |
recalc() |
(package private) void |
render(JmolRendererInterface g3d,
float scalePixelsPerMicron,
float imageFontScaling,
boolean isExact,
float[] boxXY) |
(package private) static void |
renderSimpleLabel(JmolRendererInterface g3d,
Font3D font,
java.lang.String strLabel,
short colix,
short bgcolix,
float[] boxXY,
int z,
int zSlab,
int xOffset,
int yOffset,
float ascent,
int descent,
boolean doPointer,
short pointerColix,
boolean isExact) |
private static void |
setBoxXY(float boxWidth,
float boxHeight,
float xOffset,
float yOffset,
float[] boxXY,
boolean isExact) |
(package private) void |
setFid(byte fid) |
(package private) void |
setFont(Font3D f3d) |
(package private) void |
setFontScale(float scale) |
void |
setImage(java.lang.Object image) |
private void |
setPosition(float scale) |
void |
setScale(float scale) |
void |
setScalePixelsPerMicron(float scalePixelsPerMicron) |
(package private) void |
setText(java.lang.String text) |
private static void |
showBox(JmolRendererInterface g3d,
short colix,
int x,
int y,
int z,
int zSlab,
int boxWidth,
int boxHeight,
float imageFontScaling,
boolean atomBased) |
private int |
stringWidth(java.lang.String str) |
checkObjectClicked, drawPointer, getAlignment, getOffset, getPointer, getScalePixelsPerMicron, getScript, getXOffset, getYOffset, setAdjustForWindow, setAlignment, setAlignment, setBgColix, setBgColix, setBoxOffsetsInWindow, setColix, setColix, setModel, setMovableX, setMovableXPercent, setMovableY, setMovableYPercent, setMovableZ, setMovableZPercent, setOffset, setPointer, setProperty, setScript, setTranslucent, setVisibility, setWindow, setXY, setXYZ, setXYZs, setZs
private float fontScale
private java.lang.String text
private java.lang.String textUnformatted
private boolean doFormatText
private java.lang.String[] lines
Font3D font
private byte fid
private int ascent
private int descent
private int lineHeight
private int textWidth
private int textHeight
private int[] widths
java.lang.Object image
float imageScale
Text(JmolRendererInterface g3d, Font3D font, java.lang.String text, short colix, short bgcolix, int x, int y, int z, int zSlab, int textAlign, float scalePixelsPerMicron)
Text(Viewer viewer, Graphics3D g3d, Font3D font, java.lang.String target, short colix, int valign, int align, float scalePixelsPerMicron)
public void setScalePixelsPerMicron(float scalePixelsPerMicron)
setScalePixelsPerMicron
in class Object2d
private void getFontMetrics()
void setFid(byte fid)
void setText(java.lang.String text)
public void setImage(java.lang.Object image)
public void setScale(float scale)
void setFont(Font3D f3d)
void setFontScale(float scale)
java.lang.String fixText(java.lang.String text)
private void formatText()
void render(JmolRendererInterface g3d, float scalePixelsPerMicron, float imageFontScaling, boolean isExact, float[] boxXY)
private void setPosition(float scale)
private static void setBoxXY(float boxWidth, float boxHeight, float xOffset, float yOffset, float[] boxXY, boolean isExact)
private static void showBox(JmolRendererInterface g3d, short colix, int x, int y, int z, int zSlab, int boxWidth, int boxHeight, float imageFontScaling, boolean atomBased)
static final void renderSimpleLabel(JmolRendererInterface g3d, Font3D font, java.lang.String strLabel, short colix, short bgcolix, float[] boxXY, int z, int zSlab, int xOffset, int yOffset, float ascent, int descent, boolean doPointer, short pointerColix, boolean isExact)
public java.lang.String getState()
private int stringWidth(java.lang.String str)