java.awt.font
20 classes of the module java.desktop.
Load them with:
using {
"java.awt.font"
}
FontRenderContext#
class · extends Object · java.awt.font.FontRenderContext
Constructors
new FontRenderContext(AffineTransform tx, Object aaHint, Object fmHint) |
new FontRenderContext(AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) |
Ring: new FontRenderContext(args) uses the constructor with the fewest parameters (at least one); new FontRenderContext makes the object with the constructor without parameters; the others: (new FontRenderContext).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAntiAliasingHint | getAntiAliasingHint() | Object getAntiAliasingHint() |
getFractionalMetricsHint | getFractionalMetricsHint() | Object getFractionalMetricsHint() |
getTransform | getTransform() | AffineTransform getTransform() |
getTransformType | getTransformType() | int getTransformType() |
isAntiAliased | isAntiAliased() | boolean isAntiAliased() |
isTransformed | isTransformed() | boolean isTransformed() |
usesFractionalMetrics | usesFractionalMetrics() | boolean usesFractionalMetrics() |
The methods and fields of Object are inherited.
GlyphJustificationInfo#
class final · extends Object · java.awt.font.GlyphJustificationInfo
Constructors
new GlyphJustificationInfo(float weight, boolean growAbsorb, int growPriority, float growLeftLimit, float growRightLimit, boolean shrinkAbsorb, int shrinkPriority, float shrinkLeftLimit, float shrinkRightLimit) |
Ring: new GlyphJustificationInfo(args) uses the constructor with the fewest parameters (at least one); new GlyphJustificationInfo makes the object with the constructor without parameters; the others: (new GlyphJustificationInfo).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
PRIORITY_KASHIDA | int | constant · static | o.PRIORITY_KASHIDA |
PRIORITY_WHITESPACE | int | constant · static | o.PRIORITY_WHITESPACE |
PRIORITY_INTERCHAR | int | constant · static | o.PRIORITY_INTERCHAR |
PRIORITY_NONE | int | constant · static | o.PRIORITY_NONE |
weight | float | constant | o.weight |
growPriority | int | constant | o.growPriority |
growAbsorb | boolean | constant | o.growAbsorb |
growLeftLimit | float | constant | o.growLeftLimit |
growRightLimit | float | constant | o.growRightLimit |
shrinkPriority | int | constant | o.shrinkPriority |
shrinkAbsorb | boolean | constant | o.shrinkAbsorb |
shrinkLeftLimit | float | constant | o.shrinkLeftLimit |
shrinkRightLimit | float | constant | o.shrinkRightLimit |
The methods and fields of Object are inherited.
GlyphMetrics#
class final · extends Object · java.awt.font.GlyphMetrics
Constructors
new GlyphMetrics(float advance, Rectangle2D bounds, byte glyphType) |
new GlyphMetrics(boolean horizontal, float advanceX, float advanceY, Rectangle2D bounds, byte glyphType) |
Ring: new GlyphMetrics(args) uses the constructor with the fewest parameters (at least one); new GlyphMetrics makes the object with the constructor without parameters; the others: (new GlyphMetrics).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
STANDARD | byte | constant · static | o.STANDARD |
LIGATURE | byte | constant · static | o.LIGATURE |
COMBINING | byte | constant · static | o.COMBINING |
COMPONENT | byte | constant · static | o.COMPONENT |
WHITESPACE | byte | constant · static | o.WHITESPACE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAdvance | getAdvance() | float getAdvance() |
getAdvanceX | getAdvanceX() | float getAdvanceX() |
getAdvanceY | getAdvanceY() | float getAdvanceY() |
getBounds2D | getBounds2D() | Rectangle2D getBounds2D() |
getLSB | getLSB() | float getLSB() |
getRSB | getRSB() | float getRSB() |
getType | getType() | int getType() |
isCombining | isCombining() | boolean isCombining() |
isComponent | isComponent() | boolean isComponent() |
isLigature | isLigature() | boolean isLigature() |
isStandard | isStandard() | boolean isStandard() |
isWhitespace | isWhitespace() | boolean isWhitespace() |
The methods and fields of Object are inherited.
GlyphVector#
abstract · extends Object · java.awt.font.GlyphVector
Implements: Cloneable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
FLAG_HAS_TRANSFORMS | int | constant · static | o.FLAG_HAS_TRANSFORMS |
FLAG_HAS_POSITION_ADJUSTMENTS | int | constant · static | o.FLAG_HAS_POSITION_ADJUSTMENTS |
FLAG_RUN_RTL | int | constant · static | o.FLAG_RUN_RTL |
FLAG_COMPLEX_GLYPHS | int | constant · static | o.FLAG_COMPLEX_GLYPHS |
FLAG_MASK | int | constant · static | o.FLAG_MASK |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getOutline | @getOutline([x,y])@getOutline([ :x = v, :y = v ]) | Shape getOutline(float x, float y) |
getFont | getFont() | Font getFont() |
getFontRenderContext | getFontRenderContext() | FontRenderContext getFontRenderContext() |
getGlyphCharIndex | getGlyphCharIndex(glyphIndex) | int getGlyphCharIndex(int glyphIndex) |
getGlyphCharIndices | getGlyphCharIndices(beginGlyphIndex,numEntries,codeReturn) | int[] getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn) |
getGlyphCode | getGlyphCode(glyphIndex) | int getGlyphCode(int glyphIndex) |
getGlyphCodes | getGlyphCodes(beginGlyphIndex,numEntries,codeReturn) | int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn) |
getGlyphJustificationInfo | getGlyphJustificationInfo(glyphIndex) | GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex) |
getGlyphLogicalBounds | getGlyphLogicalBounds(glyphIndex) | Shape getGlyphLogicalBounds(int glyphIndex) |
getGlyphMetrics | getGlyphMetrics(glyphIndex) | GlyphMetrics getGlyphMetrics(int glyphIndex) |
getGlyphOutline | getGlyphOutline(glyphIndex)getGlyphOutline([glyphIndex,x,y])getGlyphOutline([ :glyphIndex = v, :x = v, :y = v ]) | Shape getGlyphOutline(int glyphIndex)Shape getGlyphOutline(int glyphIndex, float x, float y) |
getGlyphPixelBounds | getGlyphPixelBounds(index,renderFRC,x,y) | Rectangle getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y) |
getGlyphPosition | getGlyphPosition(glyphIndex) | Point2D getGlyphPosition(int glyphIndex) |
getGlyphPositions | getGlyphPositions(beginGlyphIndex,numEntries,positionReturn) | float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn) |
getGlyphTransform | getGlyphTransform(glyphIndex) | AffineTransform getGlyphTransform(int glyphIndex) |
getGlyphVisualBounds | getGlyphVisualBounds(glyphIndex) | Shape getGlyphVisualBounds(int glyphIndex) |
getLayoutFlags | getLayoutFlags() | int getLayoutFlags() |
getLogicalBounds | getLogicalBounds() | Rectangle2D getLogicalBounds() |
getNumGlyphs | getNumGlyphs() | int getNumGlyphs() |
getOutline | getOutline() | Shape getOutline() |
getPixelBounds | getPixelBounds(renderFRC,x,y) | Rectangle getPixelBounds(FontRenderContext renderFRC, float x, float y) |
getVisualBounds | getVisualBounds() | Rectangle2D getVisualBounds() |
performDefaultLayout | performDefaultLayout() | void performDefaultLayout() |
setGlyphPosition | setGlyphPosition(glyphIndex,newPos) | void setGlyphPosition(int glyphIndex, Point2D newPos) |
setGlyphTransform | setGlyphTransform(glyphIndex,newTX) | void setGlyphTransform(int glyphIndex, AffineTransform newTX) |
The methods and fields of Object are inherited.
GraphicAttribute#
abstract · extends Object · java.awt.font.GraphicAttribute
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TOP_ALIGNMENT | int | constant · static | o.TOP_ALIGNMENT |
BOTTOM_ALIGNMENT | int | constant · static | o.BOTTOM_ALIGNMENT |
ROMAN_BASELINE | int | constant · static | o.ROMAN_BASELINE |
CENTER_BASELINE | int | constant · static | o.CENTER_BASELINE |
HANGING_BASELINE | int | constant · static | o.HANGING_BASELINE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
draw | draw(graphics,x,y) | void draw(Graphics2D graphics, float x, float y) |
getAdvance | getAdvance() | float getAdvance() |
getAlignment | getAlignment() | int getAlignment() |
getAscent | getAscent() | float getAscent() |
getBounds | getBounds() | Rectangle2D getBounds() |
getDescent | getDescent() | float getDescent() |
getJustificationInfo | getJustificationInfo() | GlyphJustificationInfo getJustificationInfo() |
getOutline | getOutline(tx) | Shape getOutline(AffineTransform tx) |
The methods and fields of Object are inherited.
ImageGraphicAttribute#
class final · extends GraphicAttribute · java.awt.font.ImageGraphicAttribute
Constructors
new ImageGraphicAttribute(Image image, int alignment) |
new ImageGraphicAttribute(Image image, int alignment, float originX, float originY) |
Ring: new ImageGraphicAttribute(args) uses the constructor with the fewest parameters (at least one); new ImageGraphicAttribute makes the object with the constructor without parameters; the others: (new ImageGraphicAttribute).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of GraphicAttribute are inherited.
LayoutPath#
abstract · extends Object · java.awt.font.LayoutPath
Methods
| Method | Ring call | Java overloads |
|---|---|---|
pathToPoint | pathToPoint(location,preceding,point) | void pathToPoint(Point2D location, boolean preceding, Point2D point) |
pointToPath | pointToPath(point,location) | boolean pointToPath(Point2D point, Point2D location) |
The methods and fields of Object are inherited.
LineBreakMeasurer#
class final · extends Object · java.awt.font.LineBreakMeasurer
Constructors
new LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc) |
new LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc) |
Ring: new LineBreakMeasurer(args) uses the constructor with the fewest parameters (at least one); new LineBreakMeasurer makes the object with the constructor without parameters; the others: (new LineBreakMeasurer).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
deleteChar | deleteChar(newParagraph,deletePos) | void deleteChar(AttributedCharacterIterator newParagraph, int deletePos) |
getPosition | getPosition() | int getPosition() |
insertChar | insertChar(newParagraph,insertPos) | void insertChar(AttributedCharacterIterator newParagraph, int insertPos) |
nextLayout | nextLayout(wrappingWidth)nextLayout([wrappingWidth,offsetLimit,requireNextWord])nextLayout([ :wrappingWidth = v, :offsetLimit = v, :requireNextWord = v ]) | TextLayout nextLayout(float wrappingWidth)TextLayout nextLayout(float wrappingWidth, int offsetLimit, boolean requireNextWord) |
nextOffset | nextOffset(wrappingWidth)nextOffset([wrappingWidth,offsetLimit,requireNextWord])nextOffset([ :wrappingWidth = v, :offsetLimit = v, :requireNextWord = v ]) | int nextOffset(float wrappingWidth)int nextOffset(float wrappingWidth, int offsetLimit, boolean requireNextWord) |
setPosition | setPosition(newPosition) | void setPosition(int newPosition) |
The methods and fields of Object are inherited.
LineMetrics#
abstract · extends Object · java.awt.font.LineMetrics
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAscent | getAscent() | float getAscent() |
getBaselineIndex | getBaselineIndex() | int getBaselineIndex() |
getBaselineOffsets | getBaselineOffsets() | float[] getBaselineOffsets() |
getDescent | getDescent() | float getDescent() |
getHeight | getHeight() | float getHeight() |
getLeading | getLeading() | float getLeading() |
getNumChars | getNumChars() | int getNumChars() |
getStrikethroughOffset | getStrikethroughOffset() | float getStrikethroughOffset() |
getStrikethroughThickness | getStrikethroughThickness() | float getStrikethroughThickness() |
getUnderlineOffset | getUnderlineOffset() | float getUnderlineOffset() |
getUnderlineThickness | getUnderlineThickness() | float getUnderlineThickness() |
The methods and fields of Object are inherited.
MultipleMaster#
interface · java.awt.font.MultipleMaster
Methods
| Method | Ring call | Java overloads |
|---|---|---|
deriveMMFont | deriveMMFont(axes)deriveMMFont([glyphWidths,avgStemWidth,typicalCapHeight,typicalXHeight,italicAngle])deriveMMFont([ :glyphWidths = v, :avgStemWidth = v, :typicalCapHeight = v, :typicalXHeight = v, :italicAngle = v ]) | Font deriveMMFont(float[] axes)Font deriveMMFont(float[] glyphWidths, float avgStemWidth, float typicalCapHeight, float typicalXHeight, float italicAngle) |
getDesignAxisDefaults | getDesignAxisDefaults() | float[] getDesignAxisDefaults() |
getDesignAxisNames | getDesignAxisNames() | String[] getDesignAxisNames() |
getDesignAxisRanges | getDesignAxisRanges() | float[] getDesignAxisRanges() |
getNumDesignAxes | getNumDesignAxes() | int getNumDesignAxes() |
NumericShaper#
class final · extends Object · java.awt.font.NumericShaper
Implements: Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
EUROPEAN | int | constant · static | o.EUROPEAN |
ARABIC | int | constant · static | o.ARABIC |
EASTERN_ARABIC | int | constant · static | o.EASTERN_ARABIC |
DEVANAGARI | int | constant · static | o.DEVANAGARI |
BENGALI | int | constant · static | o.BENGALI |
GURMUKHI | int | constant · static | o.GURMUKHI |
GUJARATI | int | constant · static | o.GUJARATI |
ORIYA | int | constant · static | o.ORIYA |
TAMIL | int | constant · static | o.TAMIL |
TELUGU | int | constant · static | o.TELUGU |
KANNADA | int | constant · static | o.KANNADA |
MALAYALAM | int | constant · static | o.MALAYALAM |
THAI | int | constant · static | o.THAI |
LAO | int | constant · static | o.LAO |
TIBETAN | int | constant · static | o.TIBETAN |
MYANMAR | int | constant · static | o.MYANMAR |
ETHIOPIC | int | constant · static | o.ETHIOPIC |
KHMER | int | constant · static | o.KHMER |
MONGOLIAN | int | constant · static | o.MONGOLIAN |
ALL_RANGES | int | constant · static | o.ALL_RANGES |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getContextualShaper | getContextualShaper(ranges)getContextualShaper([ranges,defaultContext])getContextualShaper([ :ranges = v, :defaultContext = v ]) | static NumericShaper getContextualShaper(Set ranges)static NumericShaper getContextualShaper(int ranges)static NumericShaper getContextualShaper(Set ranges, Range defaultContext)static NumericShaper getContextualShaper(int ranges, int defaultContext) |
getRanges | getRanges() | int getRanges() |
getRangeSet | getRangeSet() | Set getRangeSet() |
getShaper | getShaper(singleRange) | static NumericShaper getShaper(Range singleRange)static NumericShaper getShaper(int singleRange) |
isContextual | isContextual() | boolean isContextual() |
shape | shape([text,start,count])shape([ :text = v, :start = v, :count = v ])shape([text,start,count,context])shape([ :text = v, :start = v, :count = v, :context = v ]) | void shape(char[] text, int start, int count)void shape(char[] text, int start, int count, int context)void shape(char[] text, int start, int count, Range context) |
The methods and fields of Object are inherited.
NumericShaperRange#
enum · extends Enum · java.awt.font.NumericShaper$Range
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
EUROPEAN | Range | constant · static | o.EUROPEAN |
ARABIC | Range | constant · static | o.ARABIC |
EASTERN_ARABIC | Range | constant · static | o.EASTERN_ARABIC |
DEVANAGARI | Range | constant · static | o.DEVANAGARI |
BENGALI | Range | constant · static | o.BENGALI |
GURMUKHI | Range | constant · static | o.GURMUKHI |
GUJARATI | Range | constant · static | o.GUJARATI |
ORIYA | Range | constant · static | o.ORIYA |
TAMIL | Range | constant · static | o.TAMIL |
TELUGU | Range | constant · static | o.TELUGU |
KANNADA | Range | constant · static | o.KANNADA |
MALAYALAM | Range | constant · static | o.MALAYALAM |
THAI | Range | constant · static | o.THAI |
LAO | Range | constant · static | o.LAO |
TIBETAN | Range | constant · static | o.TIBETAN |
MYANMAR | Range | constant · static | o.MYANMAR |
ETHIOPIC | Range | constant · static | o.ETHIOPIC |
KHMER | Range | constant · static | o.KHMER |
MONGOLIAN | Range | constant · static | o.MONGOLIAN |
NKO | Range | constant · static | o.NKO |
MYANMAR_SHAN | Range | constant · static | o.MYANMAR_SHAN |
LIMBU | Range | constant · static | o.LIMBU |
NEW_TAI_LUE | Range | constant · static | o.NEW_TAI_LUE |
BALINESE | Range | constant · static | o.BALINESE |
SUNDANESE | Range | constant · static | o.SUNDANESE |
LEPCHA | Range | constant · static | o.LEPCHA |
OL_CHIKI | Range | constant · static | o.OL_CHIKI |
VAI | Range | constant · static | o.VAI |
SAURASHTRA | Range | constant · static | o.SAURASHTRA |
KAYAH_LI | Range | constant · static | o.KAYAH_LI |
CHAM | Range | constant · static | o.CHAM |
TAI_THAM_HORA | Range | constant · static | o.TAI_THAM_HORA |
TAI_THAM_THAM | Range | constant · static | o.TAI_THAM_THAM |
JAVANESE | Range | constant · static | o.JAVANESE |
MEETEI_MAYEK | Range | constant · static | o.MEETEI_MAYEK |
SINHALA | Range | constant · static | o.SINHALA |
MYANMAR_TAI_LAING | Range | constant · static | o.MYANMAR_TAI_LAING |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static Range valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static Range[] values() |
The methods and fields of Enum are inherited.
OpenType#
interface · java.awt.font.OpenType
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TAG_CMAP | int | constant · static | o.TAG_CMAP |
TAG_HEAD | int | constant · static | o.TAG_HEAD |
TAG_NAME | int | constant · static | o.TAG_NAME |
TAG_GLYF | int | constant · static | o.TAG_GLYF |
TAG_MAXP | int | constant · static | o.TAG_MAXP |
TAG_PREP | int | constant · static | o.TAG_PREP |
TAG_HMTX | int | constant · static | o.TAG_HMTX |
TAG_KERN | int | constant · static | o.TAG_KERN |
TAG_HDMX | int | constant · static | o.TAG_HDMX |
TAG_LOCA | int | constant · static | o.TAG_LOCA |
TAG_POST | int | constant · static | o.TAG_POST |
TAG_OS2 | int | constant · static | o.TAG_OS2 |
TAG_CVT | int | constant · static | o.TAG_CVT |
TAG_GASP | int | constant · static | o.TAG_GASP |
TAG_VDMX | int | constant · static | o.TAG_VDMX |
TAG_VMTX | int | constant · static | o.TAG_VMTX |
TAG_VHEA | int | constant · static | o.TAG_VHEA |
TAG_HHEA | int | constant · static | o.TAG_HHEA |
TAG_TYP1 | int | constant · static | o.TAG_TYP1 |
TAG_BSLN | int | constant · static | o.TAG_BSLN |
TAG_GSUB | int | constant · static | o.TAG_GSUB |
TAG_DSIG | int | constant · static | o.TAG_DSIG |
TAG_FPGM | int | constant · static | o.TAG_FPGM |
TAG_FVAR | int | constant · static | o.TAG_FVAR |
TAG_GVAR | int | constant · static | o.TAG_GVAR |
TAG_CFF | int | constant · static | o.TAG_CFF |
TAG_MMSD | int | constant · static | o.TAG_MMSD |
TAG_MMFX | int | constant · static | o.TAG_MMFX |
TAG_BASE | int | constant · static | o.TAG_BASE |
TAG_GDEF | int | constant · static | o.TAG_GDEF |
TAG_GPOS | int | constant · static | o.TAG_GPOS |
TAG_JSTF | int | constant · static | o.TAG_JSTF |
TAG_EBDT | int | constant · static | o.TAG_EBDT |
TAG_EBLC | int | constant · static | o.TAG_EBLC |
TAG_EBSC | int | constant · static | o.TAG_EBSC |
TAG_LTSH | int | constant · static | o.TAG_LTSH |
TAG_PCLT | int | constant · static | o.TAG_PCLT |
TAG_ACNT | int | constant · static | o.TAG_ACNT |
TAG_AVAR | int | constant · static | o.TAG_AVAR |
TAG_BDAT | int | constant · static | o.TAG_BDAT |
TAG_BLOC | int | constant · static | o.TAG_BLOC |
TAG_CVAR | int | constant · static | o.TAG_CVAR |
TAG_FEAT | int | constant · static | o.TAG_FEAT |
TAG_FDSC | int | constant · static | o.TAG_FDSC |
TAG_FMTX | int | constant · static | o.TAG_FMTX |
TAG_JUST | int | constant · static | o.TAG_JUST |
TAG_LCAR | int | constant · static | o.TAG_LCAR |
TAG_MORT | int | constant · static | o.TAG_MORT |
TAG_OPBD | int | constant · static | o.TAG_OPBD |
TAG_PROP | int | constant · static | o.TAG_PROP |
TAG_TRAK | int | constant · static | o.TAG_TRAK |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getFontTable | getFontTable(strSfntTag)getFontTable([strSfntTag,offset,count])getFontTable([ :strSfntTag = v, :offset = v, :count = v ]) | byte[] getFontTable(String strSfntTag)byte[] getFontTable(int sfntTag)byte[] getFontTable(String strSfntTag, int offset, int count)byte[] getFontTable(int sfntTag, int offset, int count) |
getFontTableSize | getFontTableSize(strSfntTag) | int getFontTableSize(String strSfntTag)int getFontTableSize(int sfntTag) |
getVersion | getVersion() | int getVersion() |
ShapeGraphicAttribute#
class final · extends GraphicAttribute · java.awt.font.ShapeGraphicAttribute
Constructors
new ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke) |
Ring: new ShapeGraphicAttribute(args) uses the constructor with the fewest parameters (at least one); new ShapeGraphicAttribute makes the object with the constructor without parameters; the others: (new ShapeGraphicAttribute).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
STROKE | boolean | constant · static | o.STROKE |
FILL | boolean | constant · static | o.FILL |
The methods and fields of GraphicAttribute are inherited.
TextAttribute#
class final · extends AttributedCharacterIteratorAttribute · java.awt.font.TextAttribute
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
FAMILY | TextAttribute | constant · static | o.FAMILY |
WEIGHT | TextAttribute | constant · static | o.WEIGHT |
WEIGHT_EXTRA_LIGHT | Float | constant · static | o.WEIGHT_EXTRA_LIGHT |
WEIGHT_LIGHT | Float | constant · static | o.WEIGHT_LIGHT |
WEIGHT_DEMILIGHT | Float | constant · static | o.WEIGHT_DEMILIGHT |
WEIGHT_REGULAR | Float | constant · static | o.WEIGHT_REGULAR |
WEIGHT_SEMIBOLD | Float | constant · static | o.WEIGHT_SEMIBOLD |
WEIGHT_MEDIUM | Float | constant · static | o.WEIGHT_MEDIUM |
WEIGHT_DEMIBOLD | Float | constant · static | o.WEIGHT_DEMIBOLD |
WEIGHT_BOLD | Float | constant · static | o.WEIGHT_BOLD |
WEIGHT_HEAVY | Float | constant · static | o.WEIGHT_HEAVY |
WEIGHT_EXTRABOLD | Float | constant · static | o.WEIGHT_EXTRABOLD |
WEIGHT_ULTRABOLD | Float | constant · static | o.WEIGHT_ULTRABOLD |
WIDTH | TextAttribute | constant · static | o.WIDTH |
WIDTH_CONDENSED | Float | constant · static | o.WIDTH_CONDENSED |
WIDTH_SEMI_CONDENSED | Float | constant · static | o.WIDTH_SEMI_CONDENSED |
WIDTH_REGULAR | Float | constant · static | o.WIDTH_REGULAR |
WIDTH_SEMI_EXTENDED | Float | constant · static | o.WIDTH_SEMI_EXTENDED |
WIDTH_EXTENDED | Float | constant · static | o.WIDTH_EXTENDED |
POSTURE | TextAttribute | constant · static | o.POSTURE |
POSTURE_REGULAR | Float | constant · static | o.POSTURE_REGULAR |
POSTURE_OBLIQUE | Float | constant · static | o.POSTURE_OBLIQUE |
SIZE | TextAttribute | constant · static | o.SIZE |
TRANSFORM | TextAttribute | constant · static | o.TRANSFORM |
SUPERSCRIPT | TextAttribute | constant · static | o.SUPERSCRIPT |
SUPERSCRIPT_SUPER | Integer | constant · static | o.SUPERSCRIPT_SUPER |
SUPERSCRIPT_SUB | Integer | constant · static | o.SUPERSCRIPT_SUB |
FONT | TextAttribute | constant · static | o.FONT |
CHAR_REPLACEMENT | TextAttribute | constant · static | o.CHAR_REPLACEMENT |
FOREGROUND | TextAttribute | constant · static | o.FOREGROUND |
BACKGROUND | TextAttribute | constant · static | o.BACKGROUND |
UNDERLINE | TextAttribute | constant · static | o.UNDERLINE |
UNDERLINE_ON | Integer | constant · static | o.UNDERLINE_ON |
STRIKETHROUGH | TextAttribute | constant · static | o.STRIKETHROUGH |
STRIKETHROUGH_ON | Boolean | constant · static | o.STRIKETHROUGH_ON |
RUN_DIRECTION | TextAttribute | constant · static | o.RUN_DIRECTION |
RUN_DIRECTION_LTR | Boolean | constant · static | o.RUN_DIRECTION_LTR |
RUN_DIRECTION_RTL | Boolean | constant · static | o.RUN_DIRECTION_RTL |
BIDI_EMBEDDING | TextAttribute | constant · static | o.BIDI_EMBEDDING |
JUSTIFICATION | TextAttribute | constant · static | o.JUSTIFICATION |
JUSTIFICATION_FULL | Float | constant · static | o.JUSTIFICATION_FULL |
JUSTIFICATION_NONE | Float | constant · static | o.JUSTIFICATION_NONE |
INPUT_METHOD_HIGHLIGHT | TextAttribute | constant · static | o.INPUT_METHOD_HIGHLIGHT |
INPUT_METHOD_UNDERLINE | TextAttribute | constant · static | o.INPUT_METHOD_UNDERLINE |
UNDERLINE_LOW_ONE_PIXEL | Integer | constant · static | o.UNDERLINE_LOW_ONE_PIXEL |
UNDERLINE_LOW_TWO_PIXEL | Integer | constant · static | o.UNDERLINE_LOW_TWO_PIXEL |
UNDERLINE_LOW_DOTTED | Integer | constant · static | o.UNDERLINE_LOW_DOTTED |
UNDERLINE_LOW_GRAY | Integer | constant · static | o.UNDERLINE_LOW_GRAY |
UNDERLINE_LOW_DASHED | Integer | constant · static | o.UNDERLINE_LOW_DASHED |
SWAP_COLORS | TextAttribute | constant · static | o.SWAP_COLORS |
SWAP_COLORS_ON | Boolean | constant · static | o.SWAP_COLORS_ON |
NUMERIC_SHAPING | TextAttribute | constant · static | o.NUMERIC_SHAPING |
KERNING | TextAttribute | constant · static | o.KERNING |
KERNING_ON | Integer | constant · static | o.KERNING_ON |
LIGATURES | TextAttribute | constant · static | o.LIGATURES |
LIGATURES_ON | Integer | constant · static | o.LIGATURES_ON |
TRACKING | TextAttribute | constant · static | o.TRACKING |
TRACKING_TIGHT | Float | constant · static | o.TRACKING_TIGHT |
TRACKING_LOOSE | Float | constant · static | o.TRACKING_LOOSE |
The methods and fields of AttributedCharacterIteratorAttribute are inherited.
TextHitInfo#
class final · extends Object · java.awt.font.TextHitInfo
Methods
| Method | Ring call | Java overloads |
|---|---|---|
afterOffset | afterOffset(offset) | static TextHitInfo afterOffset(int offset) |
beforeOffset | beforeOffset(offset) | static TextHitInfo beforeOffset(int offset) |
getCharIndex | getCharIndex() | int getCharIndex() |
getInsertionIndex | getInsertionIndex() | int getInsertionIndex() |
getOffsetHit | getOffsetHit(delta) | TextHitInfo getOffsetHit(int delta) |
getOtherHit | getOtherHit() | TextHitInfo getOtherHit() |
isLeadingEdge | isLeadingEdge() | boolean isLeadingEdge() |
leading | leading(charIndex) | static TextHitInfo leading(int charIndex) |
trailing | trailing(charIndex) | static TextHitInfo trailing(int charIndex) |
The methods and fields of Object are inherited.
TextLayout#
class final · extends Object · java.awt.font.TextLayout
Implements: Cloneable
Constructors
new TextLayout(AttributedCharacterIterator text, FontRenderContext frc) |
new TextLayout(String string, Map attributes, FontRenderContext frc) |
new TextLayout(String string, Font font, FontRenderContext frc) |
Ring: new TextLayout(args) uses the constructor with the fewest parameters (at least one); new TextLayout makes the object with the constructor without parameters; the others: (new TextLayout).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DEFAULT_CARET_POLICY | CaretPolicy | constant · static | o.DEFAULT_CARET_POLICY |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
draw | draw(g2,x,y) | void draw(Graphics2D g2, float x, float y) |
getAdvance | getAdvance() | float getAdvance() |
getAscent | getAscent() | float getAscent() |
getBaseline | getBaseline() | byte getBaseline() |
getBaselineOffsets | getBaselineOffsets() | float[] getBaselineOffsets() |
getBlackBoxBounds | getBlackBoxBounds(firstEndpoint,secondEndpoint) | Shape getBlackBoxBounds(int firstEndpoint, int secondEndpoint) |
getBounds | getBounds() | Rectangle2D getBounds() |
getCaretInfo | getCaretInfo(hit)getCaretInfo([hit,bounds])getCaretInfo([ :hit = v, :bounds = v ]) | float[] getCaretInfo(TextHitInfo hit)float[] getCaretInfo(TextHitInfo hit, Rectangle2D bounds) |
getCaretShape | getCaretShape(hit)getCaretShape([hit,bounds])getCaretShape([ :hit = v, :bounds = v ]) | Shape getCaretShape(TextHitInfo hit)Shape getCaretShape(TextHitInfo hit, Rectangle2D bounds) |
getCaretShapes | getCaretShapes(offset)getCaretShapes([offset,bounds])getCaretShapes([ :offset = v, :bounds = v ])getCaretShapes([offset,bounds,policy])getCaretShapes([ :offset = v, :bounds = v, :policy = v ]) | Shape[] getCaretShapes(int offset)Shape[] getCaretShapes(int offset, Rectangle2D bounds)Shape[] getCaretShapes(int offset, Rectangle2D bounds, CaretPolicy policy) |
getCharacterCount | getCharacterCount() | int getCharacterCount() |
getCharacterLevel | getCharacterLevel(index) | byte getCharacterLevel(int index) |
getDescent | getDescent() | float getDescent() |
getJustifiedLayout | getJustifiedLayout(justificationWidth) | TextLayout getJustifiedLayout(float justificationWidth) |
getLayoutPath | getLayoutPath() | LayoutPath getLayoutPath() |
getLeading | getLeading() | float getLeading() |
getLogicalHighlightShape | getLogicalHighlightShape([firstEndpoint,secondEndpoint])getLogicalHighlightShape([ :firstEndpoint = v, :secondEndpoint = v ])getLogicalHighlightShape([firstEndpoint,secondEndpoint,bounds])getLogicalHighlightShape([ :firstEndpoint = v, :secondEndpoint = v, :bounds = v ]) | Shape getLogicalHighlightShape(int firstEndpoint, int secondEndpoint)Shape getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds) |
getLogicalRangesForVisualSelection | getLogicalRangesForVisualSelection(firstEndpoint,secondEndpoint) | int[] getLogicalRangesForVisualSelection(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) |
getNextLeftHit | getNextLeftHit(offset)getNextLeftHit([offset,policy])getNextLeftHit([ :offset = v, :policy = v ]) | TextHitInfo getNextLeftHit(int offset)TextHitInfo getNextLeftHit(TextHitInfo hit)TextHitInfo getNextLeftHit(int offset, CaretPolicy policy) |
getNextRightHit | getNextRightHit(offset)getNextRightHit([offset,policy])getNextRightHit([ :offset = v, :policy = v ]) | TextHitInfo getNextRightHit(int offset)TextHitInfo getNextRightHit(TextHitInfo hit)TextHitInfo getNextRightHit(int offset, CaretPolicy policy) |
getOutline | getOutline(tx) | Shape getOutline(AffineTransform tx) |
getPixelBounds | getPixelBounds(frc,x,y) | Rectangle getPixelBounds(FontRenderContext frc, float x, float y) |
getVisibleAdvance | getVisibleAdvance() | float getVisibleAdvance() |
getVisualHighlightShape | getVisualHighlightShape([firstEndpoint,secondEndpoint])getVisualHighlightShape([ :firstEndpoint = v, :secondEndpoint = v ])getVisualHighlightShape([firstEndpoint,secondEndpoint,bounds])getVisualHighlightShape([ :firstEndpoint = v, :secondEndpoint = v, :bounds = v ]) | Shape getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint)Shape getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds) |
getVisualOtherHit | getVisualOtherHit(hit) | TextHitInfo getVisualOtherHit(TextHitInfo hit) |
hitTestChar | hitTestChar([x,y])hitTestChar([ :x = v, :y = v ])hitTestChar([x,y,bounds])hitTestChar([ :x = v, :y = v, :bounds = v ]) | TextHitInfo hitTestChar(float x, float y)TextHitInfo hitTestChar(float x, float y, Rectangle2D bounds) |
hitToPoint | hitToPoint(hit,point) | void hitToPoint(TextHitInfo hit, Point2D point) |
isLeftToRight | isLeftToRight() | boolean isLeftToRight() |
isVertical | isVertical() | boolean isVertical() |
The methods and fields of Object are inherited.
TextLayoutCaretPolicy#
class · extends Object · java.awt.font.TextLayout$CaretPolicy
Constructors
new TextLayoutCaretPolicy() |
Ring: new TextLayoutCaretPolicy(args) uses the constructor with the fewest parameters (at least one); new TextLayoutCaretPolicy makes the object with the constructor without parameters; the others: (new TextLayoutCaretPolicy).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getStrongCaret | getStrongCaret(hit1,hit2,layout) | TextHitInfo getStrongCaret(TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) |
The methods and fields of Object are inherited.
TextMeasurer#
class final · extends Object · java.awt.font.TextMeasurer
Implements: Cloneable
Constructors
new TextMeasurer(AttributedCharacterIterator text, FontRenderContext frc) |
Ring: new TextMeasurer(args) uses the constructor with the fewest parameters (at least one); new TextMeasurer makes the object with the constructor without parameters; the others: (new TextMeasurer).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
deleteChar | deleteChar(newParagraph,deletePos) | void deleteChar(AttributedCharacterIterator newParagraph, int deletePos) |
getAdvanceBetween | getAdvanceBetween(start,limit) | float getAdvanceBetween(int start, int limit) |
getLayout | getLayout(start,limit) | TextLayout getLayout(int start, int limit) |
getLineBreakIndex | getLineBreakIndex(start,maxAdvance) | int getLineBreakIndex(int start, float maxAdvance) |
insertChar | insertChar(newParagraph,insertPos) | void insertChar(AttributedCharacterIterator newParagraph, int insertPos) |
The methods and fields of Object are inherited.
TransformAttribute#
class final · extends Object · java.awt.font.TransformAttribute
Implements: Serializable
Constructors
new TransformAttribute(AffineTransform transform) |
Ring: new TransformAttribute(args) uses the constructor with the fewest parameters (at least one); new TransformAttribute makes the object with the constructor without parameters; the others: (new TransformAttribute).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IDENTITY | TransformAttribute | constant · static | o.IDENTITY |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getTransform | getTransform() | AffineTransform getTransform() |
isIdentity | isIdentity() | boolean isIdentity() |
The methods and fields of Object are inherited.