Package com.helger.pdflayout.spec
Class LineDashPatternSpec
java.lang.Object
com.helger.pdflayout.spec.LineDashPatternSpec
- All Implemented Interfaces:
Serializable
@MustImplementEqualsAndHashcode
public class LineDashPatternSpec
extends Object
implements Serializable
Different dashed line times
- Author:
- Philip Helger
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LineDashPatternSpecstatic final LineDashPatternSpecstatic final LineDashPatternSpecstatic final LineDashPatternSpecstatic final LineDashPatternSpec -
Constructor Summary
ConstructorsConstructorDescriptionLineDashPatternSpec(float fPattern) LineDashPatternSpec(float[] aPattern, float fPhase) LineDashPatternSpec(float fPatternOn, float fPatternOff) -
Method Summary
-
Field Details
-
SOLID
-
DASHED_2
-
DASHED_3
-
DASHED_4
-
DASHED_5
-
-
Constructor Details
-
LineDashPatternSpec
public LineDashPatternSpec() -
LineDashPatternSpec
-
LineDashPatternSpec
-
LineDashPatternSpec
- Parameters:
aPattern- The pattern array. May not benull. Must have 0-2 items. 0 items means solid line, 1 item means identical on and off length and 2 items means potentially different on and off length. All contains values must be > 0.fPhase- The phase of the pattern. Where to start the painting, first counting on than off.
-
-
Method Details
-
getPattern
- Returns:
- A copy with all patterns. 0-2 elements.
-
getPatternCOSArray
- Returns:
- A COS array with 0-2 elements. Never
null.
-
getPhase
public final float getPhase()- Returns:
- The phase to use.
-
equals
-
hashCode
public int hashCode() -
toString
-