public class EntityPlotterImpl extends Object implements EntityPlotter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoExpand |
protected Image |
backgroundImage |
protected float |
bgImageTransperancy |
protected Shape |
bodyShape |
protected Color |
borderColor |
protected int |
borderWidth |
protected Rectangle |
bounds |
protected boolean |
bufferActivated |
protected boolean |
changeImgSize |
protected HashMap<String,EntityPlotter> |
connectedEntities |
protected boolean |
connectFrom |
protected HashMap<Integer,Integer> |
connectionPoints |
protected Vector<EntityConnector> |
connections |
protected Color |
connectorColor |
protected int |
connectorSize |
protected Color |
connectStartBackground |
protected boolean |
connectTo |
protected Color |
contentBackground |
protected Color |
contentFontColor |
protected String |
contents |
protected 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 Color |
highlightColor |
protected String |
id |
protected HashMap<String,BufferedImage> |
imgBuffer |
protected BufferedImage |
normalState |
protected float |
origImageTransperancy |
protected boolean |
refreshImgBuffer |
protected boolean |
selected |
protected 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 String |
title |
protected int |
titleAlignment |
protected Color |
titleBackground |
protected Color |
titleDarkColor |
protected Font |
titleFont |
protected Color |
titleFontColor |
protected Color |
titleLightColor |
protected int |
titleRightMargin |
protected int |
titleSideMargin |
protected int |
titleTopMargin |
protected double |
totalContentHeight |
protected Dimension |
ts |
protected int |
type |
protected 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 and Description |
|---|
EntityPlotterImpl(int x,
int y,
int width,
int height) |
EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
Color contentBGColor) |
EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
Color contentBGColor,
Color borderColor) |
EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
Color contentBGColor,
Color borderColor,
String title) |
protected 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 Dimension ts
protected Rectangle bounds
protected Font titleFont
protected Font contentsFont
protected Color connectorColor
protected Color contentBackground
protected Color titleBackground
protected Color borderColor
protected Color titleFontColor
protected Color contentFontColor
protected Color highlightColor
protected Color connectStartBackground
protected Color selectedBackground
protected Color titleDarkColor
protected Color titleLightColor
protected String title
protected String id
protected 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 Image backgroundImage
protected BufferedImage normalState
protected HashMap<String,BufferedImage> imgBuffer
protected HashMap<String,EntityPlotter> connectedEntities
protected Vector<EntityConnector> connections
protected Shape bodyShape
public EntityPlotterImpl(int x,
int y,
int width,
int height)
public EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
Color contentBGColor)
public EntityPlotterImpl(int x,
int y,
int width,
int height,
PlotShape shape,
Color contentBGColor,
Color borderColor)
public void highlight(boolean highlight)
highlight in interface EntityPlotterpublic void setConnectingState(boolean connecting)
setConnectingState in interface EntityPlotterpublic void setPosition(Point p)
setPosition in interface EntityPlotterpublic void setRelativePosition(Point p)
setRelativePosition in interface EntityPlotterpublic void startDragForPosition(Point p)
startDragForPosition in interface EntityPlotterpublic boolean hitPoint(Point p)
hitPoint in interface EntityPlotterpublic boolean hitConnector(Point p)
protected void setContentBackgroundState(Graphics2D g)
protected void paintBody(Graphics2D g)
public void resetConnectionPoints()
protected void paintBorder(Graphics2D g)
protected void fillBufferedImage(BufferedImage bim)
public void refreshBuffer()
public void paintEntity(Graphics2D g)
protected void plotShadow(Graphics2D g)
public void plot(Graphics2D g)
plot in interface EntityPlotterprotected void paintTitle(Graphics2D g, Dimension ts)
public void calibrate(Graphics2D g)
calibrate in interface EntityPlotterprotected void drawContentsBackground(Graphics2D g)
protected void paintContents(Graphics2D g, int th)
protected float detectContentsFirstLine(Graphics2D g, int th, double singleLineHeight, int lineNo)
protected int processConPointDis(int position)
public Point getConnectionPoint(int position, boolean checkDisplacement)
getConnectionPoint in interface EntityPlotterpublic Point getConnectionPoint1(int position)
public void paintConnectorOn(int position,
Graphics2D g)
paintConnectorOn in interface EntityPlotterpublic String dumpLayoutInfo()
dumpLayoutInfo in interface EntityPlotterpublic String dumpGUIConfig()
dumpGUIConfig in interface EntityPlotterpublic void adjustToGUIConfigInfo(String data)
adjustToGUIConfigInfo in interface EntityPlotterpublic void adjustToLayoutInfo(String data)
adjustToLayoutInfo in interface EntityPlotterpublic boolean equals(EntityPlotter compare)
equals in interface EntityPlotterpublic void activateConnectionTo(boolean activate)
public void activateConnectionFrom(boolean activate)
public boolean canConnectFrom()
canConnectFrom in interface EntityPlotterpublic boolean canConnectTo()
canConnectTo in interface EntityPlotterpublic HashMap<String,EntityPlotter> getConnectedEntities()
getConnectedEntities in interface EntityPlotterpublic void newConnection(EntityConnector newCon)
newConnection in interface EntityPlotterpublic void removeConnection(EntityConnector delCon)
removeConnection in interface EntityPlotterpublic EntityConnector getConnectorForEntity(EntityPlotter entity)
getConnectorForEntity in interface EntityPlotterpublic boolean isDraggable()
isDraggable in interface EntityPlotterpublic void setDraggable(boolean draggable)
setDraggable in interface EntityPlotterpublic void setShape(PlotShape shape)
public 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 EntityPlotterprotected void changeHeight(int height)
public Color getContentBackground()
getContentBackground in interface EntityPlotterpublic void setContentBackground(Color contentBackground)
setContentBackground in interface EntityPlotterpublic PlotShape getShape()
public String getContents()
getContents in interface EntityPlotterpublic void setContents(String contents)
setContents in interface EntityPlotterpublic Rectangle2D getBounds()
getBounds in interface EntityPlotterpublic void setAutoExpand(boolean expand)
setAutoExpand in interface EntityPlotterpublic String getId()
getId in interface EntityPlotterpublic void setId(String id)
public String getTitle()
getTitle in interface EntityPlotterpublic void setTitle(String title)
setTitle in interface EntityPlotterpublic Color getBorderColor()
public void setBorderColor(Color borderColor)
public Color getTitleBackground()
public int getTextLeftMargin()
public void setTextLeftMargin(int textLeftMargin)
public void setTitleBackground(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 Object getUserObject()
getUserObject in interface EntityPlotterpublic void setUserObject(Object userObject)
setUserObject in interface EntityPlotterpublic boolean isShowTitle()
isShowTitle in interface EntityPlotterpublic void setShowTitle(boolean showTitle)
setShowTitle in interface EntityPlotterpublic Font getContentsFont()
getContentsFont in interface EntityPlotterpublic void setContentsFont(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)
public Color getTitleDarkColor()
getTitleDarkColor in interface EntityPlotterpublic void setTitleDarkColor(Color titleDarkColor)
setTitleDarkColor in interface EntityPlotterpublic Color getTitleLightColor()
getTitleLightColor in interface EntityPlotterpublic void setTitleLightColor(Color titleLightColor)
setTitleLightColor in interface EntityPlotterpublic Font getTitleFont()
getTitleFont in interface EntityPlotterpublic void setTitleFont(Font titleFont)
setTitleFont in interface EntityPlotterpublic Color getTitleFontColor()
getTitleFontColor in interface EntityPlotterpublic void setTitleFontColor(Color titleFontColor)
setTitleFontColor in interface EntityPlotterpublic Color getContentFontColor()
getContentFontColor in interface EntityPlotterpublic void setContentFontColor(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 Color getConnectorColor()
getConnectorColor in interface EntityPlotterpublic void setConnectorColor(Color connectorColor)
public Image getBackgroundImage()
public void setBackgroundImage(Image backgroundImage)
public Vector<EntityConnector> getConnections()
getConnections 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.