Package com.intellij.util.ui
Class RegionPainter.Alpha
java.lang.Object
com.intellij.util.ui.RegionPainter.Alpha
- All Implemented Interfaces:
RegionPainter<Float>
- Enclosing interface:
RegionPainter<T>
This class provides a base functionality to paint a region with the specified alpha.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.intellij.util.ui.RegionPainter
RegionPainter.Alpha, RegionPainter.Image -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected floatCalculates alpha from the specified value.protected CompositegetComposite(float alpha) Returns new composite with the specified alpha.protected abstract voidpaint(Graphics2D g, int x, int y, int width, int height) Renders to the givenGraphics2Dobject.final voidpaint(Graphics2D g, int x, int y, int width, int height, Float value) Renders to the givenGraphics2Dobject.
-
Constructor Details
-
Alpha
public Alpha()
-
-
Method Details
-
paint
Description copied from interface:RegionPainterRenders to the givenGraphics2Dobject.- Specified by:
paintin interfaceRegionPainter<Float>- Parameters:
g- theGraphics2Dobject to render tox- X position of the area to painty- Y position of the area to paintwidth- width of the area to paintheight- height of the area to paintvalue- an optional configuration parameter
-
getAlpha
Calculates alpha from the specified value.- Parameters:
value- a configuration parameter used to calculate alpha- Returns:
- an alpha calculated from the specified value
-
getComposite
Returns new composite with the specified alpha.- Parameters:
alpha- the constant alpha to be multiplied with the alpha of the source- Returns:
- new composite with the specified alpha
-
paint
Renders to the givenGraphics2Dobject.- Parameters:
g- theGraphics2Dobject to render tox- X position of the area to painty- Y position of the area to paintwidth- width of the area to paintheight- height of the area to paint
-