Uses of Class
java.awt.Graphics2D
-
Packages that use Graphics2D Package Description java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.awt.font Provides classes and interface relating to fonts.java.awt.image Provides classes for creating and modifying images.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.plaf.basic Provides user interface objects built according to the Basic look and feel.javax.swing.plaf.nimbus Provides user interface objects built according to the cross-platform Nimbus look and feel.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. -
-
Uses of Graphics2D in java.awt
Methods in java.awt that return Graphics2D Modifier and Type Method Description abstract Graphics2DGraphicsEnvironment. createGraphics(BufferedImage img)Returns aGraphics2Dobject for rendering into the specifiedBufferedImage.Graphics2DSplashScreen. createGraphics()Creates a graphics context (as aGraphics2Dobject) for the splash screen overlay image, which allows you to draw over the splash screen. -
Uses of Graphics2D in java.awt.font
Methods in java.awt.font with parameters of type Graphics2D Modifier and Type Method Description abstract voidGraphicAttribute. draw(Graphics2D graphics, float x, float y)Renders thisGraphicAttributeat the specified location.voidTextLayout. draw(Graphics2D g2, float x, float y)Renders thisTextLayoutat the specified location in the specifiedGraphics2Dcontext. -
Uses of Graphics2D in java.awt.image
Methods in java.awt.image that return Graphics2D Modifier and Type Method Description Graphics2DBufferedImage. createGraphics()Creates aGraphics2D, which can be used to draw into thisBufferedImage.abstract Graphics2DVolatileImage. createGraphics()Creates aGraphics2D, which can be used to draw into thisVolatileImage. -
Uses of Graphics2D in javax.swing
Methods in javax.swing with parameters of type Graphics2D Modifier and Type Method Description voidPainter. paint(Graphics2D g, T object, int width, int height)Renders to the givenGraphics2Dobject. -
Uses of Graphics2D in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic with parameters of type Graphics2D Modifier and Type Method Description static voidBasicGraphicsUtils. drawString(JComponent c, Graphics2D g, String string, float x, float y)Draws the given string at the specified location using text properties and anti-aliasing hints from the provided component.static voidBasicGraphicsUtils. drawStringUnderlineCharAt(JComponent c, Graphics2D g, String string, int underlinedIndex, float x, float y)Draws the given string at the specified location underlining the specified character. -
Uses of Graphics2D in javax.swing.plaf.nimbus
Methods in javax.swing.plaf.nimbus with parameters of type Graphics2D Modifier and Type Method Description protected voidAbstractRegionPainter. configureGraphics(Graphics2D g)Configures the given Graphics2D.protected abstract voidAbstractRegionPainter. doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys)Actually performs the painting operation. -
Uses of Graphics2D in javax.swing.text
Methods in javax.swing.text with parameters of type Graphics2D Modifier and Type Method Description protected floatPasswordView. drawEchoCharacter(Graphics2D g, float x, float y, char c)Renders the echo character, or whatever graphic should be used to display the password characters.protected voidPlainView. drawLine(int lineIndex, Graphics2D g, float x, float y)Renders a line of text, suppressing whitespace at the end and expanding any tabs.protected voidWrappedPlainView. drawLine(int p0, int p1, Graphics2D g, float x, float y)Renders a line of text, suppressing whitespace at the end and expanding any tabs.protected floatPlainView. drawSelectedText(Graphics2D g, float x, float y, int p0, int p1)Renders the given range in the model as selected text.protected floatWrappedPlainView. drawSelectedText(Graphics2D g, float x, float y, int p0, int p1)Renders the given range in the model as selected text.static floatUtilities. drawTabbedText(Segment s, float x, float y, Graphics2D g, TabExpander e, int startOffset)Draws the given text, expanding any tabs that are contained using the given tab expansion technique.protected floatPlainView. drawUnselectedText(Graphics2D g, float x, float y, int p0, int p1)Renders the given range in the model as normal unselected text.protected floatWrappedPlainView. drawUnselectedText(Graphics2D g, float x, float y, int p0, int p1)Renders the given range in the model as normal unselected text.
-