Package com.luciad.view.lightspeed.style
Class TLspLineStyle.DashPattern
java.lang.Object
com.luciad.view.lightspeed.style.TLspLineStyle.DashPattern
- Enclosing class:
TLspLineStyle
Dash pattern for line styles.
- Since:
- 2012.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
Stipple pattern for a dash-double dotted linestatic final short
Stipple pattern for a dotted linestatic final short
Stipple pattern for a dot-dashed linestatic final short
Stipple pattern for a long-dashed linestatic final short
Stipple pattern for a long-short-short dashed linestatic final short
Stipple pattern for a short dashed linestatic final short
Stipple pattern for a solid line -
Constructor Summary
ConstructorDescriptionDashPattern
(short aStipplePattern, int aPatternScale) A dash pattern is characterized by two attributes: a stipple pattern and a pattern scale. -
Method Summary
-
Field Details
-
SOLID
public static final short SOLIDStipple pattern for a solid line- See Also:
-
DOT
public static final short DOTStipple pattern for a dotted line- See Also:
-
DOT_DASH
public static final short DOT_DASHStipple pattern for a dot-dashed line- See Also:
-
LONG_DASH
public static final short LONG_DASHStipple pattern for a long-dashed line- See Also:
-
LONG_SHORT_DASH
public static final short LONG_SHORT_DASHStipple pattern for a long-short-short dashed line- See Also:
-
SHORT_DASH
public static final short SHORT_DASHStipple pattern for a short dashed line- See Also:
-
DASH_DOUBLE_DOT
public static final short DASH_DOUBLE_DOTStipple pattern for a dash-double dotted line- See Also:
-
-
Constructor Details
-
DashPattern
public DashPattern(short aStipplePattern, int aPatternScale) A dash pattern is characterized by two attributes: a stipple pattern and a pattern scale. The stipple pattern must contain exactly 16 bits and it defines how the line will be dashed (0 = gap, 1 = line being drawn). The pattern scale specifies a multiplier for each bit in the stipple pattern. For example, if the pattern scale is 3, each bit in the pattern will be used 3 times before progressing to the next bit.- Parameters:
aStipplePattern
- the stipple patternaPatternScale
- the pattern scale
-
-
Method Details
-
getStipplePattern
public short getStipplePattern()Gets the stipple pattern. It is a pattern represented as 16 bits (one short value) that defines how the line will be dashed.- Returns:
- the stipple pattern
-
getPatternScale
public int getPatternScale()Gets the stipple pattern pattern scale. The pattern scale specifies a multiplier for each bit in the stipple pattern. For example, if the pattern scale is 3, each bit in the pattern will be used 3 times before progressing to the next bit.- Returns:
- the pattern scale
-
equals
-
hashCode
public int hashCode() -
toString
-