Maven module :un.storage : model2d-ps :
Class : un.storage.model2d.ps.vm.GraphicState
Extends/Implements : -
Subclasses : -

State of the painter2d and active geometries.
author  Johann Sorel


Variables : isSave, currentGeometry, clip, lineWidth, miterLimit, lineOffset, lineCap, lineJoin, dashes, ctm, paint, font
Functions : GraphicState, reset, restore, restoreBrush, copy



Different behavior of gsave/grestore if the state was saved with gsave or save.
public boolean isSave

public Path currentGeometry

public Path clip

public float lineWidth

public float miterLimit

public float lineOffset

public int lineCap

public int lineJoin

public float[] dashes

public Matrix4 ctm

public Paint paint

public Font font


public void GraphicState (boolean isSave)

public void reset ()

public void restore (Painter2D painter)

public void restoreBrush (Painter2D painter)

public GraphicState copy (boolean isSave)