class-Com.Tecnick.Pdf.Graph.Style

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class Style

Com\Tecnick\Pdf\Graph\Style

Com\Tecnick\Pdf\Graph\Base
Extended by Com\Tecnick\Pdf\Graph\Style

Direct known subclasses

Com\Tecnick\Pdf\Graph\Transform
Abstract
Namespace: Com\Tecnick\Pdf\Graph
Package: PdfGraph
Category: Library
Copyright: 2011-2016 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2011-05-23
Link: https://github.com/tecnickcom/tc-lib-pdf-graph
Located at Style.php
Methods summary
public
# init( )

Initialize default style

public string
# add( array $style = array(), boolean $inheritlast = false )

Add a new style

public string
# pop( )

Remove and return last style

public
# saveStyleStaus( )

Save the current style ID to be restored later

public
# restoreStyleStaus( )

Restore the saved style status

public array
# getCurrentStyleArray( )

Returns the last style array

public mixed
# getLastStyleProperty( string $property, mixed $default = null )

Returns the last set value of the specified property

public mixed
# getCurrentStyleItem( $item )

Returns the value of th especified item from the last inserted style

public string
# getStyle( )

Returns the PDF string of the last style added.

public string
# getStyleCmd( array $style )

Returns the PDF string of the specified style.

protected string
# getLineModeCmd( array $style )

Returns the PDF string of the specified line style

public string
# getPathPaintOp( string $mode, string $default = 'S' )

Get the Path-Painting Operators.

public boolean
# isFillingMode( string $mode )

Returns true if the specified path paint operator includes the filling option

public boolean
# isStrokingMode( string $mode )

Returns true if the specified mode includes the stroking option

public boolean
# isClosingMode( string $mode )

Returns true if the specified mode includes "closing the path" option

public string
# getModeWithoutClose( string $mode )

Remove the Close option from the specified Path paint operator.

public string
# getModeWithoutFill( string $mode )

Remove the Fill option from the specified Path paint operator.

public string
# getModeWithoutStroke( string $mode )

Remove the Stroke option from the specified Path paint operator.

public string
# getExtGState( array $parms )

Add transparency parameters to the current extgstate

Methods inherited from Com\Tecnick\Pdf\Graph\Base
__construct(), getObjectNumber(), getOutExtGState(), getOutExtGStateResources(), getOutGradientCols(), getOutGradientResources(), getOutGradientShaders(), getOutPatternObj(), setKUnit(), setPageHeight(), setPageWidth()
Constants inherited from Com\Tecnick\Pdf\Graph\Base
MPI
Properties summary
protected array $style

Stack containing style data

# array()
protected integer $styleid

Stack index

# -1
protected array $stylemark

Array of restore points (style ID)

# array(0)
protected float $kunit

Unit of measure conversion ratio

# 1.0
protected static array $linecapmap

Map values for lineCap

# array(0 => 0, 1 => 1, 2 => 2, 'butt' => 0, 'round'=> 1, 'square' => 2)
protected static array $linejoinmap

Map values for lineJoin

# array(0 => 0, 1 => 1, 2 => 2, 'miter' => 0, 'round' => 1, 'bevel' => 2)
protected static array $ppopmap

Map path paint operators

# array( 'S' => 'S', 'D' => 'S', 's' => 's', 'h S' => 's', 'd' => 's', 'f' => 'f', 'F' => 'f', 'h f' => 'h f', 'f*' => 'f*', 'F*' => 'f*', 'h f*' => 'h f*', 'B' => 'B', 'FD' => 'B', 'DF' => 'B', 'B*' => 'B*', 'F*D' => 'B*', 'DF*' => 'B*', 'b' => 'b', 'h B' => 'b', 'fd' => 'b', 'df' => 'b', 'b*' => 'b*', 'h B*' => 'b*', 'f*d' => 'b*', 'df*' => 'b*', 'W n' => 'W n', 'CNZ' => 'W n', 'W* n' => 'W* n', 'CEO' => 'W* n', 'h' => 'h', 'n' => 'n' )
protected array $extgstates

Array of transparency objects and parameters.

# array()
Properties inherited from Com\Tecnick\Pdf\Graph\Base
$col, $enc, $pageh, $pagew, $pdfa, $pon
 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy