Documentation of 'edu.uci.ics.jung.visualization.transform.shape.TransformingGraphics' Java class
TransformingGraphics
edu.uci.ics.jung.visualization.transform.shape

Class TransformingGraphics

  • Direct Known Subclasses:
    TransformingFlatnessGraphics


    public class TransformingGraphics
    extends GraphicsDecorator
    subclassed to pass certain operations thru the Function before the base class method is applied This is useful when you want to apply non-affine transformations to the Graphics2D used to draw elements of the graph.
    • Method Detail

      • setTransformer

        public void setTransformer(BidirectionalTransformer Function)
        Parameters:
        Function - The Function to set.
      • draw

        public void draw(java.awt.Shape s)
        transform the shape before letting the delegate draw it
        Overrides:
        draw in class Graphics2DWrapper
      • draw

        public void draw(java.awt.Shape s,
                         float flatness)
      • fill

        public void fill(java.awt.Shape s)
        transform the shape before letting the delegate fill it
        Overrides:
        fill in class Graphics2DWrapper
      • fill

        public void fill(java.awt.Shape s,
                         float flatness)
      • drawImage

        public boolean drawImage(java.awt.Image img,
                                 int x,
                                 int y,
                                 java.awt.image.ImageObserver observer)
        Overrides:
        drawImage in class Graphics2DWrapper
      • drawImage

        public boolean drawImage(java.awt.Image img,
                                 java.awt.geom.AffineTransform at,
                                 java.awt.image.ImageObserver observer)
        Overrides:
        drawImage in class Graphics2DWrapper
      • hit

        public boolean hit(java.awt.Rectangle rect,
                           java.awt.Shape s,
                           boolean onStroke)
        transform the shape before letting the delegate apply 'hit' with it
        Overrides:
        hit in class Graphics2DWrapper

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.