|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.grprim.IltLineStyle
public abstract class IltLineStyle
This class describes a pattern with which a 1D line can be filled.
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 Form| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
static IltLineStyle |
Solid
This line style always fills the entire line with the foreground color. |
| Constructor Summary | |
|---|---|
protected |
IltLineStyle()
Default constructor |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.util.IlLineStyle |
|---|
drawLine, getPeriod, pixelColor |
| Field Detail |
|---|
public static IltLineStyle Solid
| Constructor Detail |
|---|
protected IltLineStyle()
| Method Detail |
|---|
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 nulloffset - the starting pixel within the pattern (>=0, < getPeriod())
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)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||