public abstract class IltLineSpec extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
_width
The line's width.
|
static double |
ScaledBorderWidthThreshold
If a border gets thinner than this during scale, it is dropped.
|
Modifier | Constructor and Description |
---|---|
protected |
IltLineSpec(double width)
Creates a new IltLineSpec.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
drawPolyline(Graphics g,
IltPolyline shape)
Draws a polyline using this style.
|
double |
getWidth()
Returns the line's width.
|
static IltLineSpec |
NewBorderedLineSpec(double width,
double borderWidth,
Ilt1DPalette normalPalette,
Ilt1DPalette borderPalette)
Returns a new IltLineSpec which draws the middle of the line using
a palette, and additionally draws borders around it using another palette.
|
static IltLineSpec |
NewLineSpecFromLegendValues(IltLegend legend,
boolean innerValues)
Deprecated.
|
static IltLineSpec |
NewReliefLineSpec(double width,
double borderWidth,
Ilt1DPalette normalPalette,
Ilt1DPalette brightPalette,
Ilt1DPalette darkPalette)
Returns a new IltLineSpec which draws the middle of the line using
a palette, and additionally borders with a relief look.
|
static IltLineSpec |
NewSimpleLineSpec(double width,
Ilt1DPalette palette)
Returns a new IltLineSpec which draws the entire line using
a single Ilt1DPalette.
|
abstract IltLineSpec |
scale(double factor)
Returns a scaled version of this linespec.
|
protected double _width
public static double ScaledBorderWidthThreshold
protected IltLineSpec(double width)
width
- the line's widthpublic double getWidth()
public abstract void drawPolyline(Graphics g, IltPolyline shape)
public abstract IltLineSpec scale(double factor)
factor
- factor by which the width will be multipliedpublic static IltLineSpec NewSimpleLineSpec(double width, Ilt1DPalette palette)
public static IltLineSpec NewBorderedLineSpec(double width, double borderWidth, Ilt1DPalette normalPalette, Ilt1DPalette borderPalette)
public static IltLineSpec NewReliefLineSpec(double width, double borderWidth, Ilt1DPalette normalPalette, Ilt1DPalette brightPalette, Ilt1DPalette darkPalette)
@Deprecated public static IltLineSpec NewLineSpecFromLegendValues(IltLegend legend, boolean innerValues)
IltLineSpec
whose characteristics
are deduced from legend values.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.