Package de.alpharogroup.swing.paint
Class PainterExtensions
- java.lang.Object
-
- de.alpharogroup.swing.paint.PainterExtensions
-
public class PainterExtensions extends java.lang.ObjectThe classPainterExtensions.
-
-
Constructor Summary
Constructors Constructor Description PainterExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jdesktop.swingx.painter.CompoundPaintergetCompoundPainter(java.awt.Color matte, java.awt.Color gloss, org.jdesktop.swingx.painter.GlossPainter.GlossPosition position, double angle, java.awt.Color pinstripe)Gets a CompoundPainter object.static org.jdesktop.swingx.painter.CompoundPaintergetCompoundPainter(java.awt.Color color, org.jdesktop.swingx.painter.GlossPainter.GlossPosition position, double angle)Gets the compound painter.static org.jdesktop.swingx.painter.MattePaintergetMattePainter(int width, int height, float[] fractions, java.awt.Color... colors)Gets a MattePainter object.
-
-
-
Method Detail
-
getCompoundPainter
public static org.jdesktop.swingx.painter.CompoundPainter getCompoundPainter(java.awt.Color matte, java.awt.Color gloss, org.jdesktop.swingx.painter.GlossPainter.GlossPosition position, double angle, java.awt.Color pinstripe)Gets a CompoundPainter object.- Parameters:
matte- the matte colorgloss- the gloss colorposition- the positionangle- the anglepinstripe- the pinstripe painter- Returns:
- the CompoundPainter object.
-
getCompoundPainter
public static org.jdesktop.swingx.painter.CompoundPainter getCompoundPainter(java.awt.Color color, org.jdesktop.swingx.painter.GlossPainter.GlossPosition position, double angle)Gets the compound painter.- Parameters:
color- the colorposition- the positionangle- the angle- Returns:
- the compound painter
-
getMattePainter
public static org.jdesktop.swingx.painter.MattePainter getMattePainter(int width, int height, float[] fractions, java.awt.Color... colors)Gets a MattePainter object.- Parameters:
width- the widthheight- the heightfractions- the fractionscolors- the colors- Returns:
- the MattePainter object
-
-