ilog.tgo.grprim
Class IltLineStyle.Solid
java.lang.Object
ilog.tgo.grprim.IltLineStyle
ilog.tgo.grprim.IltLineStyle.Solid
- All Implemented Interfaces:
- IlLineStyle, Serializable
- Enclosing class:
- IltLineStyle
public static class IltLineStyle.Solid
- extends IltLineStyle
Describes a line style which fills all pixels in the foreground color.
Internal use only !
- See Also:
- Serialized Form
- Internal method or field: do not use!
|
Method Summary |
double |
drawLine(Graphics g,
int x1,
int y1,
int x2,
int y2,
Color foreground,
Color background,
double offset)
Draws a line of thickness 1. |
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. |
boolean |
equals(Object o)
|
double |
getPeriod()
Returns the periodicity of the pattern. |
int |
hashCode()
|
int |
pixelColor(double offset)
Returns the color for a given offset. |
String |
toString()
|
IltLineStyle.Solid
public IltLineStyle.Solid()
IltLineStyle.Solid
public IltLineStyle.Solid(String contents)
toString
public String toString()
- Overrides:
toString in class Object
getPeriod
public double getPeriod()
- Description copied from interface:
IlLineStyle
- Returns the periodicity of the pattern.
pixelColor
public int pixelColor(double offset)
- Description copied from interface:
IlLineStyle
- Returns the color for a given offset.
- Returns:
- 0 for background, 1 for foreground.
drawLine
public double drawLine(Graphics g,
int x1,
int y1,
int x2,
int y2,
Color foreground,
Color background,
double offset)
- Description copied from interface:
IlLineStyle
- Draws a line of thickness 1.
- Parameters:
g - The Graphics where the line will be drawn.x1 - Starting point of the line.y1 - Starting point of the line.x2 - End point of the line.y2 - End point of the line.foreground - Foreground color.background - Background color or null.offset - The starting pixel within the pattern (>=0, < getPeriod()).
- Returns:
- The next pixel within the pattern.
drawThickLine
public 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)
- Description copied from class:
IltLineStyle
- Draws a thick line.
More precisely, this fills a trapezoid bounded by s, halfplane1,
halfplane2, halfplaneB1 and halfplaneB2.
- Specified by:
drawThickLine in class IltLineStyle
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())
- Returns:
- the next pixel within the pattern
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage. . All Rights Reserved.