public abstract class IltLineStyle extends Object implements IlLineStyle
When a line is drawn, the pattern is drawn in the foreground color,
and the remainder of the line is drawn in the background color.
If the background color is null
, it means that the line is transparent.
Ilt1DPalette
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
IltLineStyle.LineStyleWrapper
A line style which:
for thin lines makes an indirection to another
IlLineStyle ,
for thick lines fills all pixels in the foreground color. |
static class |
IltLineStyle.Solid
Describes a line style which fills all pixels in the foreground color.
|
Modifier and Type | Field and Description |
---|---|
static IltLineStyle |
Solid
This line style always fills the entire line with the foreground
color.
|
Modifier | Constructor and Description |
---|---|
protected |
IltLineStyle()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
abstract double |
drawThickLine(Graphics g,
ilog.tgo.grprim.internal.IltStrip s,
ilog.tgo.grprim.internal.IltLine halfplane1,
ilog.tgo.grprim.internal.IltLine halfplane2,
ilog.tgo.grprim.internal.IltLine halfplaneB1,
ilog.tgo.grprim.internal.IltLine halfplaneB2,
Color foreground,
Color background,
double offset)
Draws a thick line.
|
static IltLineStyle |
GetAlternatingLineStyle(float[] dashes)
Returns a line style with the given configuration if it exists.
|
static float[] |
GetAlternatingLineStyle(IlLineStyle lstyle) |
static IltLineStyle |
NewAlternatingLineStyle(double[] dashes)
Deprecated.
Please use the method that takes a float array argument instead.
|
static IltLineStyle |
NewAlternatingLineStyle(float[] dashes)
Returns a new alternating line style.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawLine, getPeriod, pixelColor
public static IltLineStyle Solid
public abstract double drawThickLine(Graphics g, ilog.tgo.grprim.internal.IltStrip s, ilog.tgo.grprim.internal.IltLine halfplane1, ilog.tgo.grprim.internal.IltLine halfplane2, ilog.tgo.grprim.internal.IltLine halfplaneB1, ilog.tgo.grprim.internal.IltLine halfplaneB2, Color foreground, Color background, double offset)
s
- the strip which is to be filledhalfplane1
- starting linehalfplane2
- end linehalfplaneB1
- bevel delimiter 1halfplaneB2
- bevel delimiter 2foreground
- foreground colorbackground
- background color, or null
offset
- the starting pixel within the pattern (>=0, < getPeriod())@Deprecated public static IltLineStyle NewAlternatingLineStyle(double[] dashes)
dashes
- A non-empty array of positive numbers. The first number is
the number of pixels in the foreground color, the second is the number of
pixels in the background color, the third number is
the number of pixels in the foreground color, and so on.public static IltLineStyle NewAlternatingLineStyle(float[] dashes)
dashes
- A non-empty array of positive numbers. The first number is
the number of pixels in the foreground color, the second is the number of
pixels in the background color, the third number is
the number of pixels in the foreground color, and so on.public static float[] GetAlternatingLineStyle(IlLineStyle lstyle)
public static IltLineStyle GetAlternatingLineStyle(float[] dashes)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.