|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.aesthetic.GShape
public abstract class GShape
The GShape class is the base class for all shape aesthetics.
| Nested Class Summary | |
|---|---|
static class |
GShape.ImageShape
Image fill shape. |
| Field Summary | |
|---|---|
static GShape |
ARROW
A left arrow shape. |
static GShape |
ARROWBAR
A bar with an upward arrow. |
static GShape |
CIRCLE
A circle shape. |
static GShape |
CROSS
A cross shape. |
static GShape |
DIAMOND
A diamond shape. |
static GShape |
FILLED_ARROW
A filled left arrow shape. |
static GShape |
FILLED_ARROWBAR
A filled bar with an upward arrow. |
static GShape |
FILLED_CIRCLE
A filled circle shape. |
static GShape |
FILLED_DIAMOND
A filled diamond shape. |
static GShape |
FILLED_SQUARE
A filled square shape. |
static GShape |
FILLED_TRIANGLE
A filled triangle shape. |
static GShape |
HYPHEN
A horizontal line. |
static GShape |
LINE
A vertical line. |
static GShape |
LSHAPE
A half moon shape. |
static GShape |
NIL
An empty shape. |
static GShape |
SQUARE
A square shape. |
static GShape |
STAR
A star shape. |
static GShape |
STICK
A vertical stick with two ends. |
static GShape |
TRIANGLE
A triangle shape. |
static GShape |
VSHAPE
A V shape. |
static GShape |
XSHAPE
An x shape. |
| Constructor Summary | |
|---|---|
protected |
GShape()
Constructor. |
| Method Summary | |
|---|---|
Object |
clone()
Clone this shape object. |
GShape |
create(boolean outline,
boolean fill)
Create a variation of the shape. |
boolean |
equals(Object obj)
Check if equals another objects. |
Point2D |
getCenter(Shape shape)
Get the center point of the shape. |
Color |
getLineColor()
Get the outline color. |
double |
getMinSize()
Get the minimum size (width and height) this shape needs. |
abstract Shape |
getShape(double x,
double y,
double w,
double h)
|
protected boolean |
isAntiAlias()
Check if the shape should be painted with anti-aliasing on. |
boolean |
isFill()
Check if the shape should be filled. |
boolean |
isOutline()
Check if the outer border is drawn. |
void |
paint(Graphics2D g,
double x,
double y,
double size)
|
void |
paint(Graphics2D g,
double x,
double y,
double w,
double h)
|
void |
paint(Graphics2D g,
Shape shape)
Paint a shape. |
protected void |
setFill(boolean fill)
Set whether this shape should be filled. |
void |
setLineColor(Color color)
Set the outline color. |
protected void |
setOutline(boolean outline)
Set if the outer border is drawn. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GShape CIRCLE
public static final GShape TRIANGLE
public static final GShape SQUARE
public static final GShape CROSS
public static final GShape STAR
public static final GShape DIAMOND
public static final GShape XSHAPE
public static final GShape FILLED_CIRCLE
public static final GShape FILLED_TRIANGLE
public static final GShape FILLED_SQUARE
public static final GShape FILLED_DIAMOND
public static final GShape VSHAPE
public static final GShape LSHAPE
public static final GShape ARROW
public static final GShape FILLED_ARROW
public static final GShape STICK
public static final GShape ARROWBAR
public static final GShape FILLED_ARROWBAR
public static final GShape LINE
public static final GShape HYPHEN
public static final GShape NIL
| Constructor Detail |
|---|
protected GShape()
| Method Detail |
|---|
public Point2D getCenter(Shape shape)
public boolean isOutline()
protected void setOutline(boolean outline)
public boolean isFill()
protected void setFill(boolean fill)
public GShape create(boolean outline,
boolean fill)
outline - true to force an outline even if filled.fill - fill the shape instead of drawing the outline.public void setLineColor(Color color)
public Color getLineColor()
protected boolean isAntiAlias()
public void paint(Graphics2D g,
double x,
double y,
double size)
public void paint(Graphics2D g,
double x,
double y,
double w,
double h)
public void paint(Graphics2D g,
Shape shape)
public double getMinSize()
public Object clone()
clone in class Object
public abstract Shape getShape(double x,
double y,
double w,
double h)
public boolean equals(Object obj)
equals in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||