Class CanvasGraphicsNode

  • All Implemented Interfaces:
    java.lang.Iterable, java.util.Collection, java.util.List, GraphicsNode

    public class CanvasGraphicsNode
    extends CompositeGraphicsNode
    The graphics node container with a background color.
    • Field Detail

      • positionTransform

        protected java.awt.geom.AffineTransform positionTransform
        This is the position transform for this graphics node. This is needed because getCTM returns the transform to the viewport coordinate system which is after viewing but before positioning.
      • viewingTransform

        protected java.awt.geom.AffineTransform viewingTransform
        This is the viewing transform for this graphics node. This is needed because getCTM returns the transform to the viewport coordinate system which is after viewing but before positioning.
      • backgroundPaint

        protected java.awt.Paint backgroundPaint
        The background of this canvas graphics node.
    • Constructor Detail

      • CanvasGraphicsNode

        public CanvasGraphicsNode()
        Constructs a new empty CanvasGraphicsNode.
    • Method Detail

      • setBackgroundPaint

        public void setBackgroundPaint​(java.awt.Paint newBackgroundPaint)
        Sets the background paint of this canvas graphics node.
        Parameters:
        newBackgroundPaint - the new background paint
      • getBackgroundPaint

        public java.awt.Paint getBackgroundPaint()
        Returns the background paint of this canvas graphics node.
      • setPositionTransform

        public void setPositionTransform​(java.awt.geom.AffineTransform at)
      • getPositionTransform

        public java.awt.geom.AffineTransform getPositionTransform()
      • setViewingTransform

        public void setViewingTransform​(java.awt.geom.AffineTransform at)
      • getViewingTransform

        public java.awt.geom.AffineTransform getViewingTransform()