Class PSTAngleParameter

  • All Implemented Interfaces:
    ExpressionConstants, PicObjectConstants

    public class PSTAngleParameter
    extends StatementExpression
    implements PicObjectConstants
    Used by PSTParametersExpression to parse statements involving angles, for instance "hatchangle=45" or "shadowangle=90".
    Version:
    $Id: PSTAngleParameter.java,v 1.4.2.1 2007/09/02 11:56:11 reynal Exp $
    Author:
    Sylvain Reynal
    • Constructor Detail

      • PSTAngleParameter

        public PSTAngleParameter​(Pool pl,
                                 java.lang.String tag,
                                 PicAttributeName attributeName,
                                 Pool.Key attributeSetKey)
        Parameters:
        pl - parser's pool
        tag - LHS tag (e.g. "hatchangle" or "shadowangle") for the StatementExpression
        attribute - name of attribute to modify (must be a predefined PicAttributeName of type "Double" or at least "Number")
        attributeSetKey - used to fetch the attribute set in which parsed parameters are stored.
    • Method Detail

      • action

        public void action​(ParserEvent e)
        Description copied from class: AbstractRegularExpression
        Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation. Should be overriden by daughter classes to process proper action, e.g. set Element's attributes... Current implementation does nothing, but sending a debugging string.
        Overrides:
        action in class AbstractRegularExpression