public class GContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGN_CENTER |
static int |
ALIGN_CENTER_UP |
static int |
ALIGN_LEFT |
static int |
ALIGN_RIGHT |
static String |
BOX_DOWN |
static String |
BOX_UP |
static String |
BOX_WIDTH |
Font |
boxFont |
static String |
CHAR_WIDTH |
Stack<Color> |
colorStack |
Container |
container |
boolean |
drawdimension |
boolean |
drawnode |
GEngine |
engine |
static String |
EPSILON_DOWN |
static String |
EPSILON_UP |
static String |
EPSILON_WIDTH |
Graphics2D |
g2d |
static String |
LINE_SPACE |
Color |
linkColor |
static String |
NODE_DOWN |
static String |
NODE_UP |
static String |
NODE_WIDTH |
Color |
nodeColor |
int |
offsetX |
int |
offsetY |
GContextProvider |
provider |
Skin |
skin |
Font |
titleFont |
protected float |
value_factor |
| Constructor and Description |
|---|
GContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
void |
drawArc(float x,
float y,
float w,
float h,
int a0,
int a1) |
void |
drawArcConnector(float x0,
float y0,
float x1,
float y1,
float start_offset,
float end_offset,
float ctrl_offset,
float arc_offset,
boolean arrow) |
void |
drawCircle(float x,
float y,
float r,
boolean erase) |
void |
drawDownArrow(float ox,
float oy,
float w,
float h) |
void |
drawLine(float x0,
float y0,
float x1,
float y1) |
void |
drawLink(GLink link) |
void |
drawNode(GNode node) |
void |
drawOval(float x,
float y,
float dx,
float dy,
boolean erase) |
void |
drawRect(float x,
float y,
float dx,
float dy,
boolean erase) |
void |
drawRightArrow(float ox,
float oy,
float w,
float h) |
void |
drawRoundRect(float x,
float y,
float dx,
float dy,
float arc_dx,
float arc_dy,
boolean erase) |
void |
drawSpline(float x0,
float y0,
float x1,
float y1,
float startOffset,
float endOffset,
float flateness,
boolean arrow) |
void |
drawString(Font font,
String s,
float x,
float y,
int align) |
void |
drawUpArrow(float ox,
float oy,
float w,
float h) |
void |
fillCircle(float x,
float y,
float r) |
void |
fillOval(float x,
float y,
float dx,
float dy) |
void |
fillRect(float x,
float y,
float dx,
float dy) |
Font |
getBoxFont() |
static String |
getBoxWidth(String label) |
Color |
getColorForLabel(String label) |
float |
getEndOffset() |
float |
getFactor() |
Graphics2D |
getGraphics2D() |
float |
getPixelArrowHeight() |
float |
getPixelArrowWidth() |
float |
getPixelBoxDown() |
float |
getPixelBoxEdge() |
float |
getPixelBoxUp() |
float |
getPixelBoxWidth() |
float |
getPixelEpsilonDown() |
float |
getPixelEpsilonUp() |
float |
getPixelLineSpace() |
float |
getPixelNodeWidth() |
float |
getPixelValue(String s) |
Font |
getRuleFont() |
float |
getStartOffset() |
static String |
getStringWidth(String label) |
boolean |
isObjectVisible(GObject object) |
boolean |
isShowRuleName() |
boolean |
objectContainsPoint(GObject object,
Point p) |
void |
popColor() |
void |
pushColor(Color color) |
void |
repaint() |
void |
setColor(Color color) |
void |
setContainer(Container container) |
void |
setEngine(GEngine engine) |
void |
setFactor(float factor) |
void |
setGraphics2D(Graphics2D g2d) |
void |
setLineWidth(float width) |
void |
setProvider(GContextProvider provider) |
void |
setShowRuleName(boolean showRuleName) |
void |
setSkin(Skin skin) |
public static final String EPSILON_WIDTH
public static final String EPSILON_UP
public static final String EPSILON_DOWN
public static final String BOX_WIDTH
public static final String BOX_UP
public static final String BOX_DOWN
public static final String NODE_WIDTH
public static final String NODE_UP
public static final String NODE_DOWN
public static final String CHAR_WIDTH
public static final String LINE_SPACE
public static final int ALIGN_CENTER
public static final int ALIGN_CENTER_UP
public static final int ALIGN_RIGHT
public static final int ALIGN_LEFT
public Container container
public GContextProvider provider
public GEngine engine
public Skin skin
protected float value_factor
public int offsetX
public int offsetY
public boolean drawnode
public boolean drawdimension
public Color nodeColor
public Color linkColor
public Font boxFont
public Font titleFont
public Graphics2D g2d
public void setProvider(GContextProvider provider)
public void clearCache()
public void setContainer(Container container)
public void setEngine(GEngine engine)
public void setGraphics2D(Graphics2D g2d)
public Graphics2D getGraphics2D()
public void setSkin(Skin skin)
public float getStartOffset()
public float getEndOffset()
public void setFactor(float factor)
public float getFactor()
public boolean isShowRuleName()
public void setShowRuleName(boolean showRuleName)
public float getPixelEpsilonUp()
public float getPixelEpsilonDown()
public float getPixelBoxWidth()
public float getPixelBoxUp()
public float getPixelBoxDown()
public float getPixelBoxEdge()
public float getPixelLineSpace()
public float getPixelNodeWidth()
public float getPixelArrowWidth()
public float getPixelArrowHeight()
public Font getBoxFont()
public Font getRuleFont()
public float getPixelValue(String s)
public void setColor(Color color)
public void pushColor(Color color)
public void popColor()
public void setLineWidth(float width)
public void repaint()
public void drawLine(float x0,
float y0,
float x1,
float y1)
public void drawArc(float x,
float y,
float w,
float h,
int a0,
int a1)
public void drawCircle(float x,
float y,
float r,
boolean erase)
public void drawRect(float x,
float y,
float dx,
float dy,
boolean erase)
public void drawRoundRect(float x,
float y,
float dx,
float dy,
float arc_dx,
float arc_dy,
boolean erase)
public void drawOval(float x,
float y,
float dx,
float dy,
boolean erase)
public void fillRect(float x,
float y,
float dx,
float dy)
public void fillOval(float x,
float y,
float dx,
float dy)
public void fillCircle(float x,
float y,
float r)
public void drawRightArrow(float ox,
float oy,
float w,
float h)
public void drawUpArrow(float ox,
float oy,
float w,
float h)
public void drawDownArrow(float ox,
float oy,
float w,
float h)
public void drawSpline(float x0,
float y0,
float x1,
float y1,
float startOffset,
float endOffset,
float flateness,
boolean arrow)
public void drawArcConnector(float x0,
float y0,
float x1,
float y1,
float start_offset,
float end_offset,
float ctrl_offset,
float arc_offset,
boolean arrow)
public void drawNode(GNode node)
public void drawLink(GLink link)
public boolean isObjectVisible(GObject object)
Copyright © 2013. All rights reserved.