CmxOutline

Inheritance: java.lang.Object

public class CmxOutline

Represents an outline style.

Constructors

ConstructorDescription
CmxOutline()

Methods

MethodDescription
getLineType()Gets the type of the line.
setLineType(byte value)Sets the type of the line.
getCapsType()Gets the type of the line caps.
setCapsType(int value)Sets the type of the line caps.
getJoinType()Gets the type of the line join.
setJoinType(int value)Sets the type of the line join.
getLineWidth()Gets the width of the line.
setLineWidth(float value)Sets the width of the line.
getStretch()Gets the stretch value.
setStretch(float value)Sets the stretch value.
getAngle()Gets the angle.
setAngle(double value)Sets the angle.
getColor()Gets the outline color.
setColor(CmxColor value)Sets the outline color.
getStroke()Gets the stroke pattern.
setStroke(int[] value)Sets the stroke pattern.
getStartArrowhead()Gets the shape for the start of the line
setStartArrowhead(CmxArrowSpec value)Sets the shape for the start of the line
getEndArrowhead()Gets the shape for the end of the line
setEndArrowhead(CmxArrowSpec value)Sets the shape for the end of the line
toString()Returns a String that represents this instance.
equals(Object o)Check if objects are equal.
hashCode()Get hash code of the current object.

CmxOutline()

public CmxOutline()

getLineType()

public final byte getLineType()

Gets the type of the line.

Returns: byte - the type of the line.

setLineType(byte value)

public final void setLineType(byte value)

Sets the type of the line.

Parameters:

ParameterTypeDescription
valuebytethe type of the line.

getCapsType()

public final int getCapsType()

Gets the type of the line caps.

Returns: int - the type of the line caps.

setCapsType(int value)

public final void setCapsType(int value)

Sets the type of the line caps.

Parameters:

ParameterTypeDescription
valueintthe type of the line caps.

getJoinType()

public final int getJoinType()

Gets the type of the line join.

Returns: int - the type of the line join.

setJoinType(int value)

public final void setJoinType(int value)

Sets the type of the line join.

Parameters:

ParameterTypeDescription
valueintthe type of the line join.

getLineWidth()

public final float getLineWidth()

Gets the width of the line. Uses common document distance measure unit.

Returns: float - the width of the line.

setLineWidth(float value)

public final void setLineWidth(float value)

Sets the width of the line. Uses common document distance measure unit.

Parameters:

ParameterTypeDescription
valuefloatthe width of the line.

getStretch()

public final float getStretch()

Gets the stretch value.

Returns: float - the stretch value.

setStretch(float value)

public final void setStretch(float value)

Sets the stretch value.

Parameters:

ParameterTypeDescription
valuefloatthe stretch value.

getAngle()

public final double getAngle()

Gets the angle.

Returns: double - the angle.

setAngle(double value)

public final void setAngle(double value)

Sets the angle.

Parameters:

ParameterTypeDescription
valuedoublethe angle.

getColor()

public final CmxColor getColor()

Gets the outline color.

Returns: CmxColor - the outline color.

setColor(CmxColor value)

public final void setColor(CmxColor value)

Sets the outline color.

Parameters:

ParameterTypeDescription
valueCmxColorthe outline color.

getStroke()

public final int[] getStroke()

Gets the stroke pattern.

Returns: int[] - the stroke pattern.

setStroke(int[] value)

public final void setStroke(int[] value)

Sets the stroke pattern.

Parameters:

ParameterTypeDescription
valueint[]the stroke pattern.

getStartArrowhead()

public final CmxArrowSpec getStartArrowhead()

Gets the shape for the start of the line

Returns: CmxArrowSpec - the shape for the start of the line

setStartArrowhead(CmxArrowSpec value)

public final void setStartArrowhead(CmxArrowSpec value)

Sets the shape for the start of the line

Parameters:

ParameterTypeDescription
valueCmxArrowSpecthe shape for the start of the line

getEndArrowhead()

public final CmxArrowSpec getEndArrowhead()

Gets the shape for the end of the line

Returns: CmxArrowSpec - the shape for the end of the line

setEndArrowhead(CmxArrowSpec value)

public final void setEndArrowhead(CmxArrowSpec value)

Sets the shape for the end of the line

Parameters:

ParameterTypeDescription
valueCmxArrowSpecthe shape for the end of the line

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.

equals(Object o)

public boolean equals(Object o)

Check if objects are equal.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.

hashCode()

public int hashCode()

Get hash code of the current object.

Returns: int - The hash code.