TransformedStroke
Inheritance: java.lang.Object
All Implemented Interfaces: java.awt.Stroke
public class TransformedStroke implements Stroke
Un tratto che contiene una trasformazione.
Costruttori
| Costruttore | Descrizione |
|---|---|
| TransformedStroke(Stroke base, AffineTransform at) | Crea un TransformedStroke basato su un altro Stroke e su un AffineTransform. |
Metodi
| Metodo | Descrizione |
|---|---|
| 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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| base | java.awt.Stroke | La base dello stroke. |
| at | java.awt.geom.AffineTransform | La 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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| s | java.awt.Shape | Come shape da contornare. |
Returns: java.awt.Shape - Un contorno della shape.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long | |
| arg1 | int |