Style Intelligence v12.0

inetsoft.graph.aesthetic
Class SVGShape

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

public class SVGShape
extends GShape

This class draws a SVG image as a shape.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.graph.aesthetic.GShape
GShape.ImageShape
 
Field Summary
static SVGShape CHECK
          Check mark icon.
static SVGShape DOWN_ARROW
          Down arrow icon.
static SVGShape FACE_BLANK
          A blank face.
static SVGShape FACE_HAPPY
          A happy face.
static SVGShape FACE_OK
          A face with no expression.
static SVGShape FACE_SAD
          A sad face.
static SVGShape FACE_SMILE
          A smiling face.
static SVGShape FEMALE
          Female person icon.
static SVGShape LEFT_ARROW
          Left arrow icon.
static SVGShape MALE
          Male person icon.
static SVGShape MINUS
          Minus icon.
static SVGShape PLUS
          Plus icon.
static SVGShape RIGHT_ARROW
          Right arrow icon.
static SVGShape STAR
          Star icon.
static SVGShape SUN
          Sun icon.
static SVGShape UP_ARROW
          Up arrow icon.
static SVGShape WARNING
          Warning icon.
static SVGShape X
          X icon.
 
Fields inherited from class inetsoft.graph.aesthetic.GShape
ARROW, ARROWBAR, CIRCLE, CROSS, DIAMOND, FILLED_ARROW, FILLED_ARROWBAR, FILLED_CIRCLE, FILLED_DIAMOND, FILLED_SQUARE, FILLED_TRIANGLE, HYPHEN, LINE, LSHAPE, NIL, SQUARE, STICK, TRIANGLE, VSHAPE, XSHAPE
 
Constructor Summary
SVGShape()
          Create an empty image shape.
SVGShape(String icon)
          Create a image shape.
 
Method Summary
 double getMinSize()
          Get the minimum size (width and height) this shape needs.
 Shape getShape(double x, double y, double w, double h)
           
 String getSVG()
          Get the image for filling the shape.
 void paint(Graphics2D g, Shape shape)
          Paint a shape.
 void setSVG(String icon)
          Set the image for filling the shape.
 
Methods inherited from class inetsoft.graph.aesthetic.GShape
clone, create, equals, getCenter, getLineColor, isAntiAlias, isFill, isOutline, paint, paint, setFill, setLineColor, setOutline
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHECK

public static SVGShape CHECK
Check mark icon.


MINUS

public static SVGShape MINUS
Minus icon.


PLUS

public static SVGShape PLUS
Plus icon.


STAR

public static SVGShape STAR
Star icon.


SUN

public static SVGShape SUN
Sun icon.


X

public static SVGShape X
X icon.


FACE_BLANK

public static SVGShape FACE_BLANK
A blank face.


FACE_OK

public static SVGShape FACE_OK
A face with no expression.


FACE_SAD

public static SVGShape FACE_SAD
A sad face.


FACE_SMILE

public static SVGShape FACE_SMILE
A smiling face.


FACE_HAPPY

public static SVGShape FACE_HAPPY
A happy face.


UP_ARROW

public static SVGShape UP_ARROW
Up arrow icon.


DOWN_ARROW

public static SVGShape DOWN_ARROW
Down arrow icon.


LEFT_ARROW

public static SVGShape LEFT_ARROW
Left arrow icon.


RIGHT_ARROW

public static SVGShape RIGHT_ARROW
Right arrow icon.


MALE

public static SVGShape MALE
Male person icon.


FEMALE

public static SVGShape FEMALE
Female person icon.


WARNING

public static SVGShape WARNING
Warning icon.

Constructor Detail

SVGShape

public SVGShape()
Create an empty image shape. Image must be set before it's used.


SVGShape

public SVGShape(String icon)
Create a image shape.

Parameters:
icon - the svg file resource path.
Method Detail

setSVG

public void setSVG(String icon)
Set the image for filling the shape.

Parameters:
icon - the svg file resource path.

getSVG

public String getSVG()
Get the image for filling the shape.


getMinSize

public double getMinSize()
Description copied from class: GShape
Get the minimum size (width and height) this shape needs.

Overrides:
getMinSize in class GShape

getShape

public Shape getShape(double x,
                      double y,
                      double w,
                      double h)
Specified by:
getShape in class GShape

paint

public void paint(Graphics2D g,
                  Shape shape)
Description copied from class: GShape
Paint a shape. The shape could be from GShape.getShape() and possibly transformed.

Overrides:
paint in class GShape

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