TransformedStroke

Inheritance: java.lang.Object

All Implemented Interfaces: java.awt.Stroke

public class TransformedStroke implements Stroke

Un tratto che contiene una trasformazione.

Costruttori

CostruttoreDescrizione
TransformedStroke(Stroke base, AffineTransform at)Crea un TransformedStroke basato su un altro Stroke e su un AffineTransform.

Metodi

MetodoDescrizione
createStrokedShape(Shape s)Traccia la Shape fornita con questo stroke, creando un contorno.
equals(Object arg0)
getBaseStroke()Ottiene lo stroke di base.
getClass()
getTransform()Ottiene una trasformazione.
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

TransformedStroke(Stroke base, AffineTransform at)

public TransformedStroke(Stroke base, AffineTransform at)

Crea un TransformedStroke basato su un altro Stroke e su un AffineTransform.

Parameters:

ParametroTipoDescrizione
basejava.awt.StrokeLa base dello stroke.
atjava.awt.geom.AffineTransformLa trasformazione affine.

createStrokedShape(Shape s)

public Shape createStrokedShape(Shape s)

Traccia la Shape fornita con questo stroke, creando un contorno. Questo contorno è distorto dal nostro AffineTransform rispetto al contorno che sarebbe fornito dallo stroke di base, ma solo in termini di scala (cioè spessore delle linee), poiché la traslazione e la rotazione vengono annullate dopo il tracciamento.

Parameters:

ParametroTipoDescrizione
sjava.awt.ShapeCome shape da contornare.

Returns: java.awt.Shape - Un contorno della shape.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParametroTipoDescrizione
arg0java.lang.Object

Returns: boolean

getBaseStroke()

public Stroke getBaseStroke()

Ottiene lo stroke di base.

Returns: java.awt.Stroke - Stroke di base.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getTransform()

public AffineTransform getTransform()

Ottiene una trasformazione.

Returns: java.awt.geom.AffineTransform - Una trasformazione.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParametroTipoDescrizione
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParametroTipoDescrizione
arg0long
arg1int