public final class FillPatternStyleHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FillPatternStyleHelper.FillPattern |
| Modifier and Type | Field and Description |
|---|---|
protected static WeakHashMap<Color,ImagePattern> |
defaultHatchCache |
protected static WeakHashMap<Paint,WeakHashMap<Double,Image>> |
defaultHatchCacheWithStrokeWidth |
| Constructor and Description |
|---|
FillPatternStyleHelper() |
| Modifier and Type | Method and Description |
|---|---|
static ImagePattern |
getDefaultHatch(Color color) |
static ImagePattern |
getDefaultHatch(Paint color,
double xOffset) |
static int |
getDefaultHatchAngle() |
static int |
getDefaultHatchSpacing() |
static ImagePattern |
getHatch(FillPatternStyleHelper.FillPattern fillPattern,
Paint color) |
static ImagePattern |
getHatch(FillPatternStyleHelper.FillPattern fillPattern,
Paint color,
double width) |
static void |
setDefaultHatchAngle(int angle) |
static void |
setDefaultHatchSpacing(int spacing) |
protected static WeakHashMap<Color,ImagePattern> defaultHatchCache
protected static WeakHashMap<Paint,WeakHashMap<Double,Image>> defaultHatchCacheWithStrokeWidth
public static ImagePattern getDefaultHatch(Color color)
public static ImagePattern getDefaultHatch(Paint color, double xOffset)
public static int getDefaultHatchAngle()
public static int getDefaultHatchSpacing()
public static ImagePattern getHatch(FillPatternStyleHelper.FillPattern fillPattern, Paint color)
public static ImagePattern getHatch(FillPatternStyleHelper.FillPattern fillPattern, Paint color, double width)
public static void setDefaultHatchAngle(int angle)
public static void setDefaultHatchSpacing(int spacing)
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.