Style Intelligence v12.0

inetsoft.graph.aesthetic
Class GShape.ImageShape

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

public static class GShape.ImageShape
extends GShape

Image fill shape.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.graph.aesthetic.GShape
GShape.ImageShape
 
Field Summary
 
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, STAR, STICK, TRIANGLE, VSHAPE, XSHAPE
 
Constructor Summary
GShape.ImageShape()
          Create an empty image shape.
GShape.ImageShape(Image image)
          Create a image shape.
GShape.ImageShape(String path)
          Create an image shape.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another objects.
 Color getIgnoredColor()
          Get the color to ignore when applying color to image.
 Image getImage()
          Get the image for filling the shape.
 double getMinSize()
          Get the minimum size (width and height) this shape needs.
 Shape getShape(double x, double y, double w, double h)
           
 boolean isApplyColor()
          Check if the graphics color should be applied on image.
 boolean isTile()
          Check whether to tile or resize the image.
 void paint(Graphics2D g, Shape shape)
          Paint a shape.
 void setApplyColor(boolean color)
          Set if the graphics color should be applied on image.
 void setIgnoredColor(Color color)
          Set the color to ignore when applying color to image.
 void setImage(Image image)
          Set the image for filling the shape.
 void setTile(boolean tile)
          Set whether to tile or resize the image.
 
Methods inherited from class inetsoft.graph.aesthetic.GShape
clone, create, 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
 

Constructor Detail

GShape.ImageShape

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


GShape.ImageShape

public GShape.ImageShape(String path)
Create an image shape.

Parameters:
path - image file or resource path.

GShape.ImageShape

public GShape.ImageShape(Image image)
Create a image shape.

Method Detail

setImage

public void setImage(Image image)
Set the image for filling the shape.


getImage

public Image getImage()
Get the image for filling the shape.


setTile

public void setTile(boolean tile)
Set whether to tile or resize the image.


isTile

public boolean isTile()
Check whether to tile or resize the image.


setApplyColor

public void setApplyColor(boolean color)
Set if the graphics color should be applied on image. The default is false.


isApplyColor

public boolean isApplyColor()
Check if the graphics color should be applied on image.


setIgnoredColor

public void setIgnoredColor(Color color)
Set the color to ignore when applying color to image.


getIgnoredColor

public Color getIgnoredColor()
Get the color to ignore when applying color to image.


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

equals

public boolean equals(Object obj)
Description copied from class: GShape
Check if equals another objects.

Overrides:
equals in class GShape

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