EntityPlotter, PlotConstantsEntityBasicFlowChartpublic class EntityPlotterImpl extends java.lang.Object implements EntityPlotter
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
autoExpand |
|
protected java.awt.Image |
backgroundImage |
|
protected float |
bgImageTransperancy |
|
protected java.awt.Shape |
bodyShape |
|
protected java.awt.Color |
borderColor |
|
protected int |
borderWidth |
|
protected java.awt.Rectangle |
bounds |
|
protected boolean |
bufferActivated |
|
protected boolean |
changeImgSize |
|
protected java.util.HashMap<java.lang.String,EntityPlotter> |
connectedEntities |
|
protected boolean |
connectFrom |
|
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> |
connectionPoints |
|
protected java.util.Vector<EntityConnector> |
connections |
|
protected java.awt.Color |
connectorColor |
|
protected int |
connectorSize |
|
protected java.awt.Color |
connectStartBackground |
|
protected boolean |
connectTo |
|
protected java.awt.Color |
contentBackground |
|
protected java.awt.Color |
contentFontColor |
|
protected java.lang.String |
contents |
|
protected java.awt.Font |
contentsFont |
|
protected int |
contentsHorizontalAlignment |
|
protected int |
contentsVerticalAlignment |
|
protected int |
cornerCurve |
|
protected int |
dndX |
|
protected int |
dndY |
|
protected boolean |
doHighlight |
|
protected boolean |
doShowConnecting |
|
protected boolean |
draggable |
|
protected boolean |
dropReflection |
|
protected boolean |
dropShadow |
|
protected float |
entityTransperancy |
|
protected int |
height |
|
protected java.awt.Color |
highlightColor |
|
protected java.lang.String |
id |
|
protected java.util.HashMap<java.lang.String,java.awt.image.BufferedImage> |
imgBuffer |
|
protected java.awt.image.BufferedImage |
normalState |
|
protected float |
origImageTransperancy |
|
protected boolean |
refreshImgBuffer |
|
protected boolean |
selected |
|
protected java.awt.Color |
selectedBackground |
|
protected int |
selectionWidth |
|
protected boolean |
setTransperant |
|
protected PlotShape |
shape |
|
protected int |
shLen |
|
protected boolean |
showBorder |
|
protected boolean |
showTitle |
|
protected int |
textButtomMargin |
|
protected int |
textLeftMargin |
|
protected int |
textLineMargin |
|
protected TextPlotter |
textPlot |
|
protected int |
textRightMargin |
|
protected int |
textTopMargin |
|
protected java.lang.String |
title |
|
protected int |
titleAlignment |
|
protected java.awt.Color |
titleBackground |
|
protected java.awt.Color |
titleDarkColor |
|
protected java.awt.Font |
titleFont |
|
protected java.awt.Color |
titleFontColor |
|
protected java.awt.Color |
titleLightColor |
|
protected int |
titleRightMargin |
|
protected int |
titleSideMargin |
|
protected int |
titleTopMargin |
|
protected double |
totalContentHeight |
|
protected java.awt.Dimension |
ts |
|
protected int |
type |
|
protected java.lang.Object |
userObject |
|
protected boolean |
visible |
|
protected int |
width |
|
protected int |
x |
|
protected int |
y |
ALIGN_POSITION_BUTTOM, ALIGN_POSITION_CENTER_HORIZONTAL, ALIGN_POSITION_CENTER_VERTICAL, ALIGN_POSITION_LEFT, ALIGN_POSITION_RIGHT, ALIGN_POSITION_SPACE_HORIZONTAL, ALIGN_POSITION_SPACE_VERTICAL, ALIGN_POSITION_STAIR_LEFT, ALIGN_POSITION_STAIR_RIGHT, ALIGN_POSITION_TOP, ALIGNMENT_BUTTOM, ALIGNMENT_CENTER, ALIGNMENT_LEFT, ALIGNMENT_MIDDLE, ALIGNMENT_RIGHT, ALIGNMENT_TOP, POSITION_BUT, POSITION_BUT_LEFT, POSITION_BUT_RIGHT, POSITION_MID, POSITION_MID_LEFT, POSITION_MID_RIGHT, POSITION_TOP, POSITION_TOP_LEFT, POSITION_TOP_RIGHT, SHAPE_CIRCLE, SHAPE_OVAL, SHAPE_RECTANGLE| Constructor | Description |
|---|---|
EntityPlotterImpl(int x,
int y,
int width,
int height) |
|
EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
java.awt.Color contentBGColor) |
|
EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
java.awt.Color contentBGColor,
java.awt.Color borderColor) |
|
EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
java.awt.Color contentBGColor,
java.awt.Color borderColor,
java.lang.String title) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
activateConnectionFrom(boolean activate) |
|
void |
activateConnectionTo(boolean activate) |
|
void |
adjustToGUIConfigInfo(java.lang.String data) |
|
void |
adjustToLayoutInfo(java.lang.String data) |
|
void |
calibrate(java.awt.Graphics2D g) |
|
boolean |
canConnectFrom() |
|
boolean |
canConnectTo() |
|
protected void |
changeHeight(int height) |
|
protected void |
changeWidth(int width) |
|
protected float |
detectContentsFirstLine(java.awt.Graphics2D g,
int th,
double singleLineHeight,
int lineNo) |
|
protected void |
drawContentsBackground(java.awt.Graphics2D g) |
|
java.lang.String |
dumpGUIConfig() |
|
java.lang.String |
dumpLayoutInfo() |
|
boolean |
equals(EntityPlotter compare) |
|
protected void |
fillBufferedImage(java.awt.image.BufferedImage bim) |
|
java.awt.Image |
getBackgroundImage() |
|
java.awt.Color |
getBorderColor() |
|
int |
getBorderWidth() |
|
java.awt.geom.Rectangle2D |
getBounds() |
|
java.util.HashMap<java.lang.String,EntityPlotter> |
getConnectedEntities() |
|
java.awt.Point |
getConnectionPoint(int position,
boolean checkDisplacement) |
|
java.awt.Point |
getConnectionPoint1(int position) |
|
java.util.Vector<EntityConnector> |
getConnections() |
|
java.awt.Color |
getConnectorColor() |
|
EntityConnector |
getConnectorForEntity(EntityPlotter entity) |
|
int |
getConnectorSize() |
|
java.awt.Color |
getContentBackground() |
|
java.awt.Color |
getContentFontColor() |
|
java.lang.String |
getContents() |
|
java.awt.Font |
getContentsFont() |
|
int |
getContentsHorizontalAlignment() |
|
int |
getContentsVerticalAlignment() |
|
float |
getEntityTransperancy() |
|
int |
getHeight() |
|
java.lang.String |
getId() |
|
PlotShape |
getShape() |
|
int |
getTextLeftMargin() |
|
java.lang.String |
getTitle() |
|
int |
getTitleAlignment() |
|
java.awt.Color |
getTitleBackground() |
|
java.awt.Color |
getTitleDarkColor() |
|
java.awt.Font |
getTitleFont() |
|
java.awt.Color |
getTitleFontColor() |
|
java.awt.Color |
getTitleLightColor() |
|
int |
getType() |
|
java.lang.Object |
getUserObject() |
|
int |
getWidth() |
|
int |
getX() |
|
int |
getY() |
|
void |
highlight(boolean highlight) |
|
boolean |
hitConnector(java.awt.Point p) |
|
boolean |
hitPoint(java.awt.Point p) |
|
boolean |
isDraggable() |
|
boolean |
isDropReflection() |
|
boolean |
isDropShadow() |
|
boolean |
isHighlighted() |
|
boolean |
isSelected() |
|
boolean |
isShowBorder() |
|
boolean |
isShowTitle() |
|
boolean |
isTransperant() |
|
boolean |
isVisible() |
|
void |
newConnection(EntityConnector newCon) |
|
protected void |
paintBody(java.awt.Graphics2D g) |
|
protected void |
paintBorder(java.awt.Graphics2D g) |
|
void |
paintConnectorOn(int position,
java.awt.Graphics2D g) |
|
protected void |
paintContents(java.awt.Graphics2D g,
int th) |
|
void |
paintEntity(java.awt.Graphics2D g) |
|
protected void |
paintTitle(java.awt.Graphics2D g,
java.awt.Dimension ts) |
|
void |
plot(java.awt.Graphics2D g) |
|
protected void |
plotShadow(java.awt.Graphics2D g) |
|
protected int |
processConPointDis(int position) |
|
void |
refreshBuffer() |
|
void |
removeConnection(EntityConnector delCon) |
|
void |
resetConnectionPoints() |
|
void |
setAutoExpand(boolean expand) |
|
void |
setBackgroundImage(java.awt.Image backgroundImage) |
|
void |
setBGImageTransperancy(float newValue) |
|
void |
setBorderColor(java.awt.Color borderColor) |
|
void |
setBorderWidth(int borderWidth) |
|
void |
setConnectingState(boolean connecting) |
|
void |
setConnectorColor(java.awt.Color connectorColor) |
|
void |
setContentBackground(java.awt.Color contentBackground) |
|
protected void |
setContentBackgroundState(java.awt.Graphics2D g) |
|
void |
setContentFontColor(java.awt.Color contentFontColor) |
|
void |
setContents(java.lang.String contents) |
|
void |
setContentsFont(java.awt.Font contentsFont) |
|
void |
setContentsHorizontalAlignment(int contentsAlignment) |
|
void |
setContentsVerticalAlignment(int contentsVerticalAlignment) |
|
void |
setCornerCurve(int cornerCurve) |
|
void |
setDraggable(boolean draggable) |
|
void |
setDropReflection(boolean dropReflection) |
|
void |
setDropShadow(boolean dropShadow) |
|
void |
setEntityTransperancy(float entityTransperancy) |
|
void |
setHeight(int height) |
|
void |
setId(java.lang.String id) |
|
void |
setPosition(java.awt.Point p) |
|
void |
setRelativePosition(java.awt.Point p) |
|
void |
setSelected(boolean selected) |
|
void |
setShape(PlotShape shape) |
|
void |
setShowBorder(boolean showBorder) |
|
void |
setShowTitle(boolean showTitle) |
|
void |
setTextLeftMargin(int textLeftMargin) |
|
void |
setTitle(java.lang.String title) |
|
void |
setTitleAlignment(int titleAlignment) |
|
void |
setTitleBackground(java.awt.Color titleBackground) |
|
void |
setTitleDarkColor(java.awt.Color titleDarkColor) |
|
void |
setTitleFont(java.awt.Font titleFont) |
|
void |
setTitleFontColor(java.awt.Color titleFontColor) |
|
void |
setTitleLightColor(java.awt.Color titleLightColor) |
|
void |
setTransperant(boolean setTransperant) |
|
void |
setType(int type) |
|
void |
setUserObject(java.lang.Object userObject) |
|
void |
setVisible(boolean visible) |
|
void |
setWidth(int width) |
|
void |
setX(int x) |
|
void |
setY(int y) |
|
void |
startDragForPosition(java.awt.Point p) |
protected java.lang.Object userObject
protected int textLeftMargin
protected int textButtomMargin
protected int textRightMargin
protected int titleTopMargin
protected int titleSideMargin
protected int titleRightMargin
protected int textTopMargin
protected int textLineMargin
protected int borderWidth
protected int connectorSize
protected int selectionWidth
protected int dndX
protected int dndY
protected int x
protected int y
protected int width
protected int height
protected int type
protected int contentsHorizontalAlignment
protected int contentsVerticalAlignment
protected int titleAlignment
protected int cornerCurve
protected double totalContentHeight
protected float bgImageTransperancy
protected float entityTransperancy
protected float origImageTransperancy
protected int shLen
protected java.awt.Dimension ts
protected java.awt.Rectangle bounds
protected java.awt.Font titleFont
protected java.awt.Font contentsFont
protected java.awt.Color connectorColor
protected java.awt.Color contentBackground
protected java.awt.Color titleBackground
protected java.awt.Color borderColor
protected java.awt.Color titleFontColor
protected java.awt.Color contentFontColor
protected java.awt.Color highlightColor
protected java.awt.Color connectStartBackground
protected java.awt.Color selectedBackground
protected java.awt.Color titleDarkColor
protected java.awt.Color titleLightColor
protected java.lang.String title
protected java.lang.String id
protected java.lang.String contents
protected boolean autoExpand
protected boolean draggable
protected boolean doHighlight
protected boolean connectFrom
protected boolean connectTo
protected boolean visible
protected boolean selected
protected boolean doShowConnecting
protected boolean showTitle
protected boolean showBorder
protected boolean setTransperant
protected boolean bufferActivated
protected boolean refreshImgBuffer
protected boolean changeImgSize
protected boolean dropShadow
protected boolean dropReflection
protected PlotShape shape
protected TextPlotter textPlot
protected java.awt.Image backgroundImage
protected java.awt.image.BufferedImage normalState
protected java.util.HashMap<java.lang.String,java.awt.image.BufferedImage> imgBuffer
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> connectionPoints
protected java.util.HashMap<java.lang.String,EntityPlotter> connectedEntities
protected java.util.Vector<EntityConnector> connections
protected java.awt.Shape bodyShape
public EntityPlotterImpl(int x,
int y,
int width,
int height)
public EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
java.awt.Color contentBGColor)
public EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
java.awt.Color contentBGColor,
java.awt.Color borderColor)
public EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
java.awt.Color contentBGColor,
java.awt.Color borderColor,
java.lang.String title)
public void setShape(PlotShape shape)
setShape in interface EntityPlotterpublic void highlight(boolean highlight)
highlight in interface EntityPlotterpublic void setConnectingState(boolean connecting)
setConnectingState in interface EntityPlotterpublic void setPosition(java.awt.Point p)
setPosition in interface EntityPlotterpublic void setRelativePosition(java.awt.Point p)
setRelativePosition in interface EntityPlotterpublic void startDragForPosition(java.awt.Point p)
startDragForPosition in interface EntityPlotterpublic boolean hitPoint(java.awt.Point p)
hitPoint in interface EntityPlotterpublic boolean hitConnector(java.awt.Point p)
protected void setContentBackgroundState(java.awt.Graphics2D g)
protected void paintBody(java.awt.Graphics2D g)
public void resetConnectionPoints()
protected void paintBorder(java.awt.Graphics2D g)
protected void fillBufferedImage(java.awt.image.BufferedImage bim)
public void refreshBuffer()
public void paintEntity(java.awt.Graphics2D g)
protected void plotShadow(java.awt.Graphics2D g)
public void plot(java.awt.Graphics2D g)
plot in interface EntityPlotterprotected void paintTitle(java.awt.Graphics2D g,
java.awt.Dimension ts)
public void calibrate(java.awt.Graphics2D g)
calibrate in interface EntityPlotterprotected void drawContentsBackground(java.awt.Graphics2D g)
protected void paintContents(java.awt.Graphics2D g,
int th)
protected float detectContentsFirstLine(java.awt.Graphics2D g,
int th,
double singleLineHeight,
int lineNo)
protected int processConPointDis(int position)
public java.awt.Point getConnectionPoint(int position,
boolean checkDisplacement)
getConnectionPoint in interface EntityPlotterpublic java.awt.Point getConnectionPoint1(int position)
public void paintConnectorOn(int position,
java.awt.Graphics2D g)
paintConnectorOn in interface EntityPlotterpublic java.lang.String dumpLayoutInfo()
dumpLayoutInfo in interface EntityPlotterpublic java.lang.String dumpGUIConfig()
dumpGUIConfig in interface EntityPlotterpublic void adjustToGUIConfigInfo(java.lang.String data)
adjustToGUIConfigInfo in interface EntityPlotterpublic void adjustToLayoutInfo(java.lang.String data)
adjustToLayoutInfo in interface EntityPlotterpublic boolean equals(EntityPlotter compare)
equals in interface EntityPlotterpublic void activateConnectionTo(boolean activate)
activateConnectionTo in interface EntityPlotterpublic void activateConnectionFrom(boolean activate)
activateConnectionFrom in interface EntityPlotterpublic boolean canConnectFrom()
canConnectFrom in interface EntityPlotterpublic boolean canConnectTo()
canConnectTo in interface EntityPlotterpublic java.util.HashMap<java.lang.String,EntityPlotter> getConnectedEntities()
getConnectedEntities in interface EntityPlotterpublic void newConnection(EntityConnector newCon)
newConnection in interface EntityPlotterpublic void removeConnection(EntityConnector delCon)
removeConnection in interface EntityPlotterpublic java.util.Vector<EntityConnector> getConnections()
getConnections in interface EntityPlotterprotected void changeHeight(int height)
public EntityConnector getConnectorForEntity(EntityPlotter entity)
getConnectorForEntity in interface EntityPlotterpublic boolean isDraggable()
isDraggable in interface EntityPlotterpublic void setDraggable(boolean draggable)
setDraggable in interface EntityPlotterpublic int getX()
getX in interface EntityPlotterpublic void setX(int x)
setX in interface EntityPlotterpublic int getY()
getY in interface EntityPlotterpublic void setY(int y)
setY in interface EntityPlotterpublic int getWidth()
getWidth in interface EntityPlotterpublic void setWidth(int width)
setWidth in interface EntityPlotterprotected void changeWidth(int width)
public int getHeight()
getHeight in interface EntityPlotterpublic void setHeight(int height)
setHeight in interface EntityPlotterpublic java.awt.Color getContentBackground()
getContentBackground in interface EntityPlotterpublic void setContentBackground(java.awt.Color contentBackground)
setContentBackground in interface EntityPlotterpublic PlotShape getShape()
public java.lang.String getContents()
getContents in interface EntityPlotterpublic void setContents(java.lang.String contents)
setContents in interface EntityPlotterpublic java.awt.geom.Rectangle2D getBounds()
getBounds in interface EntityPlotterpublic void setAutoExpand(boolean expand)
setAutoExpand in interface EntityPlotterpublic java.lang.String getId()
getId in interface EntityPlotterpublic void setId(java.lang.String id)
setId in interface EntityPlotterpublic java.lang.String getTitle()
getTitle in interface EntityPlotterpublic void setTitle(java.lang.String title)
setTitle in interface EntityPlotterpublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color borderColor)
setBorderColor in interface EntityPlotterpublic java.awt.Color getTitleBackground()
public int getTextLeftMargin()
public void setTextLeftMargin(int textLeftMargin)
public void setTitleBackground(java.awt.Color titleBackground)
public int getConnectorSize()
getConnectorSize in interface EntityPlotterpublic boolean isHighlighted()
isHighlighted in interface EntityPlotterpublic boolean isSelected()
isSelected in interface EntityPlotterpublic void setSelected(boolean selected)
setSelected in interface EntityPlotterpublic boolean isVisible()
isVisible in interface EntityPlotterpublic void setVisible(boolean visible)
setVisible in interface EntityPlotterpublic int getType()
getType in interface EntityPlotterpublic void setType(int type)
setType in interface EntityPlotterpublic java.lang.Object getUserObject()
getUserObject in interface EntityPlotterpublic void setUserObject(java.lang.Object userObject)
setUserObject in interface EntityPlotterpublic boolean isShowTitle()
isShowTitle in interface EntityPlotterpublic void setShowTitle(boolean showTitle)
setShowTitle in interface EntityPlotterpublic java.awt.Font getContentsFont()
getContentsFont in interface EntityPlotterpublic void setContentsFont(java.awt.Font contentsFont)
setContentsFont in interface EntityPlotterpublic int getContentsHorizontalAlignment()
getContentsHorizontalAlignment in interface EntityPlotterpublic void setContentsHorizontalAlignment(int contentsAlignment)
setContentsHorizontalAlignment in interface EntityPlotterpublic int getTitleAlignment()
getTitleAlignment in interface EntityPlotterpublic void setTitleAlignment(int titleAlignment)
setTitleAlignment in interface EntityPlotterpublic void setCornerCurve(int cornerCurve)
setCornerCurve in interface EntityPlotterpublic java.awt.Color getTitleDarkColor()
getTitleDarkColor in interface EntityPlotterpublic void setTitleDarkColor(java.awt.Color titleDarkColor)
setTitleDarkColor in interface EntityPlotterpublic java.awt.Color getTitleLightColor()
getTitleLightColor in interface EntityPlotterpublic void setTitleLightColor(java.awt.Color titleLightColor)
setTitleLightColor in interface EntityPlotterpublic java.awt.Font getTitleFont()
getTitleFont in interface EntityPlotterpublic void setTitleFont(java.awt.Font titleFont)
setTitleFont in interface EntityPlotterpublic java.awt.Color getTitleFontColor()
getTitleFontColor in interface EntityPlotterpublic void setTitleFontColor(java.awt.Color titleFontColor)
setTitleFontColor in interface EntityPlotterpublic java.awt.Color getContentFontColor()
getContentFontColor in interface EntityPlotterpublic void setContentFontColor(java.awt.Color contentFontColor)
setContentFontColor in interface EntityPlotterpublic int getBorderWidth()
public void setBorderWidth(int borderWidth)
public boolean isShowBorder()
public void setShowBorder(boolean showBorder)
public int getContentsVerticalAlignment()
getContentsVerticalAlignment in interface EntityPlotterpublic void setContentsVerticalAlignment(int contentsVerticalAlignment)
setContentsVerticalAlignment in interface EntityPlotterpublic java.awt.Color getConnectorColor()
getConnectorColor in interface EntityPlotterpublic void setConnectorColor(java.awt.Color connectorColor)
public java.awt.Image getBackgroundImage()
public void setBackgroundImage(java.awt.Image backgroundImage)
setBackgroundImage in interface EntityPlotterpublic void setBGImageTransperancy(float newValue)
setBGImageTransperancy in interface EntityPlotterpublic float getEntityTransperancy()
getEntityTransperancy in interface EntityPlotterpublic void setEntityTransperancy(float entityTransperancy)
setEntityTransperancy in interface EntityPlotterentityTransperancy - the entityTransperancy to setpublic boolean isTransperant()
isTransperant in interface EntityPlotterpublic void setTransperant(boolean setTransperant)
setTransperant in interface EntityPlottersetTransperant - the setTransperant to setpublic boolean isDropShadow()
isDropShadow in interface EntityPlotterpublic void setDropShadow(boolean dropShadow)
setDropShadow in interface EntityPlotterdropShadow - the dropShadow to setpublic boolean isDropReflection()
isDropReflection in interface EntityPlotterpublic void setDropReflection(boolean dropReflection)
setDropReflection in interface EntityPlotterdropReflection - the dropReflection to setCopyright © 2019 SMYLD. All rights reserved.