Class ItalicPaintInstruction
java.lang.Object
org.eclipse.nebula.widgets.richtext.painter.instructions.ItalicPaintInstruction
- All Implemented Interfaces:
FontMetricsProvider,PaintInstruction
public class ItalicPaintInstruction extends java.lang.Object implements PaintInstruction, FontMetricsProvider
-
Constructor Summary
Constructors Constructor Description ItalicPaintInstruction(TagProcessingState state) -
Method Summary
Modifier and Type Method Description org.eclipse.swt.graphics.FontMetricsgetFontMetrics(org.eclipse.swt.graphics.GC gc)Calculates theFontMetricsbased on the font information of thisFontMetricsProviderin conjunction with the current set font information set to the givenGC.voidpaint(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle area)
-
Constructor Details
-
Method Details
-
paint
public void paint(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle area)- Specified by:
paintin interfacePaintInstruction
-
getFontMetrics
public org.eclipse.swt.graphics.FontMetrics getFontMetrics(org.eclipse.swt.graphics.GC gc)Description copied from interface:FontMetricsProviderCalculates theFontMetricsbased on the font information of thisFontMetricsProviderin conjunction with the current set font information set to the givenGC.Note: To retrieve the
FontMetricsit is necessary to set theFontbased on the local font information and the current applied font. You should not reset theFonton theGCin this method again, because the font information might be used by otherFontMetricsProvider.- Specified by:
getFontMetricsin interfaceFontMetricsProvider- Parameters:
gc- TheGCthat should be used to retrieve theFontMetrics- Returns:
- The
FontMetricsbased on the font information of thisFontMetricsProviderin conjunction with the current set font information set to the givenGC.
-