OdGraphicStyle

Inheritance: java.lang.Object

public class OdGraphicStyle

The open document graphic style.

Constructors

ConstructorDescription
OdGraphicStyle()

Methods

MethodDescription
getBrush()Gets the brush.
setBrush(OdBrush value)The brush.
getPen()Gets the pen.
getFont()Gets the font.
getTextColor()Gets or sets the color of the text.
setTextColor(int value)Gets or sets the color of the text.
getTextAlign()Gets the text align.
setTextAlign(int value)Sets the text align.
getLineHeight()Gets or sets the height of the line.
setLineHeight(int value)Gets or sets the height of the line.
getTransformInfo()Gets the transform information.
getStartMarker()Gets or sets the start marker.
setStartMarker(OdMarker value)Gets or sets the start marker.
getEndMarker()Gets or sets the end marker.
setEndMarker(OdMarker value)Gets or sets the end marker.
getStartMarkerWidth()Gets or sets the start width of the marker.
setStartMarkerWidth(float value)Gets or sets the start width of the marker.
getEndMarkerWidth()Gets or sets the end width of the marker.
setEndMarkerWidth(float value)Gets or sets the end width of the marker.
getOpacity()Gets or sets the opacity.
setOpacity(int value)Gets or sets the opacity.
getSpaceBefore()Gets or sets the space before.
setSpaceBefore(float value)Gets or sets the space before.
getPaddingTop()Gets or sets the padding top.
setPaddingTop(float value)Gets or sets the padding top.
getPaddingLeft()Gets or sets the padding left.
setPaddingLeft(float value)Gets or sets the padding left.
getPaddingRight()Gets or sets the padding right.
setPaddingRight(float value)Gets or sets the padding right.
getPaddingBottom()Gets or sets the padding bottom.
setPaddingBottom(float value)Gets or sets the padding bottom.
getMarginBottom()Gets or sets the margin bottom.
setMarginBottom(float value)Gets or sets the margin bottom.
getMarginTop()Gets or sets the margin top.
setMarginTop(float value)Gets or sets the margin top.
getStartGuide()Gets or sets the start guide.
setStartGuide(float value)Gets or sets the start guide.
getEndGuide()Gets or sets the end guide.
setEndGuide(float value)Gets or sets the end guide.
getMeasureLineDistance()Gets or sets the measure line distance.
setMeasureLineDistance(float value)Gets or sets the measure line distance.
getStylePosition()Gets or sets the style position.
setStylePosition(float value)Gets or sets the style position.
copy()Copies this instance.

OdGraphicStyle()

public OdGraphicStyle()

getBrush()

public final OdBrush getBrush()

Gets the brush.

Value: The brush.

Returns: OdBrush - the brush.

setBrush(OdBrush value)

public final void setBrush(OdBrush value)

The brush.

Value: The brush.

Parameters:

ParameterTypeDescription
valueOdBrushthe brush.

getPen()

public OdPen getPen()

Gets the pen.

Returns: OdPen - The pen.

getFont()

public OdFont getFont()

Gets the font.

Returns: OdFont - The font.

getTextColor()

public int getTextColor()

Gets or sets the color of the text.

Returns: int - The color of the text.

setTextColor(int value)

public void setTextColor(int value)

Gets or sets the color of the text.

Parameters:

ParameterTypeDescription
valueintThe color of the text.

getTextAlign()

public final int getTextAlign()

Gets the text align.

Returns: int - the text align.

setTextAlign(int value)

public final void setTextAlign(int value)

Sets the text align.

Parameters:

ParameterTypeDescription
valueintthe text align.

getLineHeight()

public int getLineHeight()

Gets or sets the height of the line.

Returns: int - The height of the line.

setLineHeight(int value)

public void setLineHeight(int value)

Gets or sets the height of the line.

Parameters:

ParameterTypeDescription
valueintThe height of the line.

getTransformInfo()

public OdTransformInfo getTransformInfo()

Gets the transform information.

Returns: OdTransformInfo - The transform information.

getStartMarker()

public OdMarker getStartMarker()

Gets or sets the start marker.

Returns: OdMarker - The start marker.

setStartMarker(OdMarker value)

public void setStartMarker(OdMarker value)

Gets or sets the start marker.

Parameters:

ParameterTypeDescription
valueOdMarkerThe start marker.

getEndMarker()

public OdMarker getEndMarker()

Gets or sets the end marker.

Returns: OdMarker - The end marker.

setEndMarker(OdMarker value)

public void setEndMarker(OdMarker value)

Gets or sets the end marker.

Parameters:

ParameterTypeDescription
valueOdMarkerThe end marker.

getStartMarkerWidth()

public float getStartMarkerWidth()

Gets or sets the start width of the marker.

Returns: float - The start width of the marker.

setStartMarkerWidth(float value)

public void setStartMarkerWidth(float value)

Gets or sets the start width of the marker.

Parameters:

ParameterTypeDescription
valuefloatThe start width of the marker.

getEndMarkerWidth()

public float getEndMarkerWidth()

Gets or sets the end width of the marker.

Returns: float - The end width of the marker.

setEndMarkerWidth(float value)

public void setEndMarkerWidth(float value)

Gets or sets the end width of the marker.

Parameters:

ParameterTypeDescription
valuefloatThe end width of the marker.

getOpacity()

public int getOpacity()

Gets or sets the opacity.

Returns: int - The opacity.

setOpacity(int value)

public void setOpacity(int value)

Gets or sets the opacity.

Parameters:

ParameterTypeDescription
valueintThe opacity.

getSpaceBefore()

public float getSpaceBefore()

Gets or sets the space before.

Returns: float - The space before.

setSpaceBefore(float value)

public void setSpaceBefore(float value)

Gets or sets the space before.

Parameters:

ParameterTypeDescription
valuefloatThe space before.

getPaddingTop()

public float getPaddingTop()

Gets or sets the padding top.

Returns: float - The padding top.

setPaddingTop(float value)

public void setPaddingTop(float value)

Gets or sets the padding top.

Parameters:

ParameterTypeDescription
valuefloatThe padding top.

getPaddingLeft()

public float getPaddingLeft()

Gets or sets the padding left.

Returns: float - The padding left.

setPaddingLeft(float value)

public void setPaddingLeft(float value)

Gets or sets the padding left.

Parameters:

ParameterTypeDescription
valuefloatThe padding left.

getPaddingRight()

public float getPaddingRight()

Gets or sets the padding right.

Returns: float - The padding right.

setPaddingRight(float value)

public void setPaddingRight(float value)

Gets or sets the padding right.

Parameters:

ParameterTypeDescription
valuefloatThe padding right.

getPaddingBottom()

public float getPaddingBottom()

Gets or sets the padding bottom.

Returns: float - The padding bottom.

setPaddingBottom(float value)

public void setPaddingBottom(float value)

Gets or sets the padding bottom.

Parameters:

ParameterTypeDescription
valuefloatThe padding bottom.

getMarginBottom()

public float getMarginBottom()

Gets or sets the margin bottom.

Returns: float - The margin bottom.

setMarginBottom(float value)

public void setMarginBottom(float value)

Gets or sets the margin bottom.

Parameters:

ParameterTypeDescription
valuefloatThe margin bottom.

getMarginTop()

public float getMarginTop()

Gets or sets the margin top.

Returns: float - The margin top.

setMarginTop(float value)

public void setMarginTop(float value)

Gets or sets the margin top.

Parameters:

ParameterTypeDescription
valuefloatThe margin top.

getStartGuide()

public float getStartGuide()

Gets or sets the start guide.

Returns: float - The start guide.

setStartGuide(float value)

public void setStartGuide(float value)

Gets or sets the start guide.

Parameters:

ParameterTypeDescription
valuefloatThe start guide.

getEndGuide()

public float getEndGuide()

Gets or sets the end guide.

Returns: float - The end guide.

setEndGuide(float value)

public void setEndGuide(float value)

Gets or sets the end guide.

Parameters:

ParameterTypeDescription
valuefloatThe end guide.

getMeasureLineDistance()

public float getMeasureLineDistance()

Gets or sets the measure line distance.

Returns: float - The measure line distance.

setMeasureLineDistance(float value)

public void setMeasureLineDistance(float value)

Gets or sets the measure line distance.

Parameters:

ParameterTypeDescription
valuefloatThe measure line distance.

getStylePosition()

public float getStylePosition()

Gets or sets the style position.

Returns: float - The style position.

setStylePosition(float value)

public void setStylePosition(float value)

Gets or sets the style position.

Parameters:

ParameterTypeDescription
valuefloatThe style position.

copy()

public OdGraphicStyle copy()

Copies this instance.

Returns: OdGraphicStyle - Gets the copy of this instance.