public class DashStyle extends Object
Constructor and Description |
---|
DashStyle()
|
DashStyle(double[] dashes,
double offset)
Initializes a new instance of the
DashStyle class using the provided dashes and offset. |
Modifier and Type | Method and Description |
---|---|
com.yworks.yfiles.view.Freezable |
clone()
Clones this instance by returning a
Object.clone() or this in case this instance is already
frozen . |
void |
freeze()
Freezes this instance.
|
protected void |
freezeCore()
Callback that needs to be overridden by subclasses to actually freeze the instance.
|
static DashStyle |
getDash()
Gets the dash style with a single dash.
|
static DashStyle |
getDashDot()
Gets the dash style with a single dash and dot.
|
static DashStyle |
getDashDotDot()
Gets the dash style with a single dash and two dots.
|
List<Double> |
getDashes()
Gets the dashes.
|
static DashStyle |
getDot()
Gets the dash style with a single dot.
|
double |
getOffset()
Gets the offset.
|
static DashStyle |
getSolid()
Gets the solid dash style with no dashes.
|
boolean |
isCanFreeze()
Determines whether this instance is not yet
frozen . |
boolean |
isFrozen()
Gets a value indicating whether this instance is frozen.
|
void |
setDashes(List<Double> value)
Sets the dashes.
|
void |
setOffset(double value)
Sets the offset.
|
public DashStyle()
public DashStyle(double[] dashes, double offset)
DashStyle
class using the provided dashes and offset.dashes
- The dashes.offset
- The offset.public static DashStyle getDash()
public static DashStyle getDashDot()
public static DashStyle getDashDotDot()
public final List<Double> getDashes()
setDashes(List)
public static DashStyle getDot()
public final double getOffset()
setOffset(double)
public static DashStyle getSolid()
public final void setDashes(List<Double> value)
value
- The dashes.getDashes()
public final void setOffset(double value)
value
- The offset.getOffset()
public com.yworks.yfiles.view.Freezable clone()
Object.clone()
or this in case this instance is already
frozen
.clone
in interface ICloneable
clone
in class Object
Object.clone()
public final void freeze()
protected void freezeCore()
public final boolean isCanFreeze()
frozen
.public final boolean isFrozen()
true
if this instance is frozen; otherwise, false
.