| Constructor and Description |
|---|
TextBlock(float hue, String
|
TextBlock(String
|
protected static final ObservableProperties.Key <String > KEY_TEXT
protected static final ObservableProperties.Key <Font > KEY_FONT
protected static final ObservableProperties.Key <Boolean > KEY_IS_ANTIALIASING
protected static final ObservableProperties.Key <Boolean > KEY_USING_FRACTIONAL_METRICS
protected static final ObservableProperties.Key <Integer > KEY_CURVE_WIDTH
protected static final ObservableProperties.Key <Insets > KEY_TEXT_INSETS
protected static final ObservableProperties.Key <Insets > KEY_INSETS
protected static final ObservableProperties.Key <Paint > KEY_BORDER_PAINT
protected static final ObservableProperties.Key <Paint > KEY_BACKGROUND
protected static final ObservableProperties.Key <Paint > KEY_TEXT_PAINT
protected static final ObservableProperties.Key <Stroke > KEY_STROKE
protected static final ObservableProperties.Key <Boolean > KEY_TEXT_SHADOW
protected static final ObservableProperties.Key <Boolean > KEY_BODY_SHADOW
protected static final ObservableProperties.Key <Color > KEY_SHADOW_BACKGROUND_COLOR
protected boolean dirty
protected int width
protected int height
protected GeneralPathbody
public TextBlock(Stringtext)
public TextBlock(float hue,
String text) public int hashCode()
public boolean equals(Objectobj)
public void setText(Stringtext)
public StringgetText()
public FontgetFont()
public void setFont(Fontfont)
public FontRenderContextcreateFontRenderContext()
public boolean usesFractionalMetrics()
public boolean isTextShadowActive()
public boolean isShadowActive()
public void setTextShadowActive(boolean active)
public void setShadowActive(boolean active)
public boolean isAntiAliased()
public int getCurveWidth()
public void setCurveWidth(int curveWidth)
public InsetsgetTextInsets()
public void setTextInsets(Insetsinsets)
public InsetsgetInsets()
public void setInsets(Insetsinsets)
protected Rectangle2DgetStringBounds()
public void revalidate()
public int getWidth()
public int getHeight()
public void paint(Graphics2Dg)
protected void paintText(Graphics2Dg, GeneralPath bodyOutline)
protected void paintBorder(Graphics2Dg, GeneralPath bodyOutline)
public StrokegetStroke()
public PaintgetBorderPaint()
public PaintgetBackground()
public void setTextPaint(PainttextColor)
public PaintgetTextPaint()
public void setStroke(Strokestroke)
public void setBorderPaint(PaintborderPaint)
public void setBackground(Paintbackground)
protected void paintBackground(Graphics2Dg, GeneralPath bodyOutline)
public void setBackgroundShadowColor(Colorcolor)
public ColorgetBackgroundShadowColor()
public JComponentcreateComponent()