public class LayoutGraphic extends LayoutElement
| 构造器 | 说明 |
|---|---|
LayoutGraphic(Graphic aGraphic,
MapLayout aMapLayout) |
Constructor
|
LayoutGraphic(Graphic aGraphic,
MapLayout aMapLayout,
LayoutMap aLayoutMap) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
fireLocationChangedEvent() |
|
Graphic |
getGraphic() |
|
boolean |
isPaint() |
Get if paint
|
boolean |
isTitle() |
Get if is title
|
void |
moveUpdate() |
Move update method
|
void |
paint(Graphics2D g) |
Paint method
|
void |
paintGraphics(Graphics2D g,
PointF pageLocation,
float zoom) |
Paint graphics
|
void |
paintOnLayout(Graphics2D g,
PointF pageLocation,
float zoom) |
Paint on layout method
|
void |
resizeUpdate() |
Resize update method
|
void |
setGraphic(Graphic graphic) |
|
void |
setIsPaint(boolean istrue) |
Set if paint
|
void |
setIsTitle(boolean istrue) |
Set if is title
|
void |
setLabelText(String text) |
Set label text
|
void |
updateControlSize() |
Update control size
|
void |
verticeEditUpdate(int vIdx,
double newX,
double newY) |
Vertice edited update
|
addLocationChangedListener, addSizeChangedListener, fireSizeChangedEvent, getBackColor, getBottom, getBounds, getElementType, getForeColor, getHeight, getLeft, getResizeAbility, getRight, getTop, getWidth, isDrawBackColor, isSelected, isVisible, pageToScreen, removeLocationChangedListener, removeSizeChangedListener, setBackColor, setDrawBackColor, setElementType, setForeColor, setHeight, setLeft, setResizeAbility, setSelected, setTop, setVisible, setWidthpublic LayoutGraphic(Graphic aGraphic, MapLayout aMapLayout)
aGraphic - GraphicaMapLayout - MapLayoutpublic Graphic getGraphic()
public void setGraphic(Graphic graphic)
public boolean isTitle()
public void setIsTitle(boolean istrue)
istrue - Booleanpublic boolean isPaint()
public void setIsPaint(boolean istrue)
istrue - If paintpublic void setLabelText(String text)
text - Label textpublic void updateControlSize()
public void verticeEditUpdate(int vIdx,
double newX,
double newY)
vIdx - Vertice indexnewX - New xnewY - New ypublic void paint(Graphics2D g)
LayoutElementpaint 在类中 LayoutElementg - Graphics2Dpublic void paintOnLayout(Graphics2D g, PointF pageLocation, float zoom)
LayoutElementpaintOnLayout 在类中 LayoutElementg - Grahpics2DpageLocation - Page locationzoom - Zoompublic void paintGraphics(Graphics2D g, PointF pageLocation, float zoom)
g - Graphics2DpageLocation - page locationzoom - Zoompublic void moveUpdate()
LayoutElementmoveUpdate 在类中 LayoutElementpublic void resizeUpdate()
LayoutElementresizeUpdate 在类中 LayoutElementpublic void fireLocationChangedEvent()
Copyright © 2019. All rights reserved.