Package com.pspdfkit.ui.inspector.views
Class BorderStylePreset
-
- All Implemented Interfaces:
public class BorderStylePreset
Preset for border styles. Encapsulates both BorderStyle and dash array used for DASHED.
-
-
Field Summary
Fields Modifier and Type Field Description public final static BorderStylePreset
NONE
public final static BorderStylePreset
SOLID
public final static BorderStylePreset
CLOUDY
public final static BorderStylePreset
DASHED_1_1
public final static BorderStylePreset
DASHED_1_3
public final static BorderStylePreset
DASHED_3_3
public final static BorderStylePreset
DASHED_6_6
public final BorderStyle
borderStyle
public final BorderEffect
borderEffect
public final float
borderEffectIntensity
public final List<Integer>
dashArray
-
Constructor Summary
Constructors Constructor Description BorderStylePreset(BorderStyle style)
Creates preset with border style style
and null dash array.BorderStylePreset(BorderStyle style, List<Integer> dashArray)
Creates preset with border style style
and dash arraydashArray
.BorderStylePreset(BorderStyle borderStyle, BorderEffect borderEffect, List<Integer> dashArray)
Creates preset with border style borderStyle
, border effectborderEffect
and dash arraydashArray
.BorderStylePreset(BorderStyle borderStyle, BorderEffect borderEffect, float borderEffectIntensity, List<Integer> dashArray)
Creates preset with border style borderStyle
, border effectborderEffect
and dash arraydashArray
.
-
Method Summary
Modifier and Type Method Description BorderStyle
getBorderStyle()
Border style specified in this preset. BorderEffect
getBorderEffect()
Border effect specified by this preset. float
getBorderEffectIntensity()
Intensity of the border effect. List<Integer>
getDashArray()
Returns dash array specified in this preset. boolean
hasBorder()
Returns whether border style preset represents a border. boolean
equals(Object o)
int
hashCode()
-
-
Constructor Detail
-
BorderStylePreset
BorderStylePreset(BorderStyle style)
Creates preset with border stylestyle
and null dash array.- Parameters:
style
- Border style to use.
-
BorderStylePreset
BorderStylePreset(BorderStyle style, List<Integer> dashArray)
Creates preset with border stylestyle
and dash arraydashArray
.- Parameters:
style
- Border style to use.dashArray
- Dash array to use.
-
BorderStylePreset
BorderStylePreset(BorderStyle borderStyle, BorderEffect borderEffect, List<Integer> dashArray)
Creates preset with border styleborderStyle
, border effectborderEffect
and dash arraydashArray
.- Parameters:
borderStyle
- Border style to use.borderEffect
- Border effect to use.dashArray
- Dash array to use.
-
BorderStylePreset
BorderStylePreset(BorderStyle borderStyle, BorderEffect borderEffect, float borderEffectIntensity, List<Integer> dashArray)
Creates preset with border styleborderStyle
, border effectborderEffect
and dash arraydashArray
.- Parameters:
borderStyle
- Border style to use.borderEffect
- Border effect to use.borderEffectIntensity
- Intensity of the border effect.dashArray
- Dash array to use.
-
-
Method Detail
-
getBorderStyle
@NonNull() BorderStyle getBorderStyle()
Border style specified in this preset.
- Returns:
Border style, or NONE if no border should be used.
-
getBorderEffect
@NonNull() BorderEffect getBorderEffect()
Border effect specified by this preset.
- Returns:
Border effect, or NO_EFFECT if no effect should be used.
-
getBorderEffectIntensity
@FloatRange(from = 0.0) float getBorderEffectIntensity()
Intensity of the border effect. Valid only if the border effect is CLOUDY.
- Returns:
Border effect intensity.
-
getDashArray
@Nullable() List<Integer> getDashArray()
Returns dash array specified in this preset.
- Returns:
Dash array or
null
if none is specified (for example when not using dashed border style).
-
hasBorder
boolean hasBorder()
Returns whether border style preset represents a border.
- Returns:
true
when border is enabled,false
when this border style represents no border.
-
hashCode
int hashCode()
-
-
-
-