Style Intelligence v12.0

inetsoft.graph.aesthetic
Class GTexture

java.lang.Object
  extended by inetsoft.graph.aesthetic.GTexture
All Implemented Interfaces:
Serializable, Cloneable

public class GTexture
extends Object
implements Cloneable, Serializable

The GTexture class is the base class for all texture aesthetics.

See Also:
Serialized Form

Field Summary
static GTexture PATTERN_0
          Pattern0.
static GTexture PATTERN_1
          Pattern1.
static GTexture PATTERN_10
          Pattern10.
static GTexture PATTERN_11
          Pattern11.
static GTexture PATTERN_12
          Pattern12.
static GTexture PATTERN_13
          Pattern13.
static GTexture PATTERN_14
          Pattern14.
static GTexture PATTERN_15
          Pattern15.
static GTexture PATTERN_16
          Pattern16.
static GTexture PATTERN_17
          Pattern17.
static GTexture PATTERN_18
          Pattern18.
static GTexture PATTERN_19
          Pattern19.
static GTexture PATTERN_2
          Pattern2.
static GTexture PATTERN_3
          Pattern3.
static GTexture PATTERN_4
          Pattern4.
static GTexture PATTERN_5
          Pattern5.
static GTexture PATTERN_6
          Pattern6.
static GTexture PATTERN_7
          Pattern7.
static GTexture PATTERN_8
          Pattern8.
static GTexture PATTERN_9
          Pattern9.
 
Constructor Summary
GTexture()
          Create a solid fill.
GTexture(int gap, double rotation, int size)
          Create a texture with specified fill pattern.
 
Method Summary
 Object clone()
          Create a copy of this object.
 boolean equals(Object obj)
          Check if equals another objects.
 int getLineGap()
          Get the line gap.
 double getLineRotation(int idx)
          Get the line rotation.
 int getLineWidth()
          Get the line width.
 void paint(Graphics2D g2, Shape clip)
          Paint the texture.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PATTERN_0

public static final GTexture PATTERN_0
Pattern0.


PATTERN_1

public static final GTexture PATTERN_1
Pattern1.


PATTERN_2

public static final GTexture PATTERN_2
Pattern2.


PATTERN_3

public static final GTexture PATTERN_3
Pattern3.


PATTERN_4

public static final GTexture PATTERN_4
Pattern4.


PATTERN_5

public static final GTexture PATTERN_5
Pattern5.


PATTERN_6

public static final GTexture PATTERN_6
Pattern6.


PATTERN_7

public static final GTexture PATTERN_7
Pattern7.


PATTERN_8

public static final GTexture PATTERN_8
Pattern8.


PATTERN_9

public static final GTexture PATTERN_9
Pattern9.


PATTERN_10

public static final GTexture PATTERN_10
Pattern10.


PATTERN_11

public static final GTexture PATTERN_11
Pattern11.


PATTERN_12

public static final GTexture PATTERN_12
Pattern12.


PATTERN_13

public static final GTexture PATTERN_13
Pattern13.


PATTERN_14

public static final GTexture PATTERN_14
Pattern14.


PATTERN_15

public static final GTexture PATTERN_15
Pattern15.


PATTERN_16

public static final GTexture PATTERN_16
Pattern16.


PATTERN_17

public static final GTexture PATTERN_17
Pattern17.


PATTERN_18

public static final GTexture PATTERN_18
Pattern18.


PATTERN_19

public static final GTexture PATTERN_19
Pattern19.

Constructor Detail

GTexture

public GTexture()
Create a solid fill.


GTexture

public GTexture(int gap,
                double rotation,
                int size)
Create a texture with specified fill pattern.

Parameters:
gap - gap between lines.
rotation - the angle to be rotated.
size - the number of the line.
Method Detail

getLineGap

public int getLineGap()
Get the line gap.


getLineRotation

public double getLineRotation(int idx)
Get the line rotation.


getLineWidth

public int getLineWidth()
Get the line width.


paint

public void paint(Graphics2D g2,
                  Shape clip)
Paint the texture.

Parameters:
clip - the shape to paint.

clone

public Object clone()
Create a copy of this object.

Overrides:
clone in class Object
Returns:
a copy of this object.

equals

public boolean equals(Object obj)
Check if equals another objects.

Overrides:
equals in class Object
Parameters:
obj - the specified object.
Returns:
true if equals, false otherwise.

toString

public String toString()
Overrides:
toString in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.