Package org.meteoinfo.layout
Class LayoutGraphic
- java.lang.Object
-
- org.meteoinfo.layout.LayoutElement
-
- org.meteoinfo.layout.LayoutGraphic
-
public class LayoutGraphic extends LayoutElement
-
-
Constructor Summary
Constructors Constructor Description LayoutGraphic(Graphic aGraphic, MapLayout aMapLayout)ConstructorLayoutGraphic(Graphic aGraphic, MapLayout aMapLayout, LayoutMap aLayoutMap)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireLocationChangedEvent()GraphicgetGraphic()booleanisPaint()Get if paintbooleanisTitle()Get if is titlevoidmoveUpdate()Move update methodvoidpaint(java.awt.Graphics2D g)Paint methodvoidpaintGraphics(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint graphicsvoidpaintOnLayout(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint on layout methodvoidresizeUpdate()Resize update methodvoidsetGraphic(Graphic graphic)voidsetIsPaint(boolean istrue)Set if paintvoidsetIsTitle(boolean istrue)Set if is titlevoidsetLabelText(java.lang.String text)Set label textvoidupdateControlSize()Update control sizevoidverticeEditUpdate(int vIdx, double newX, double newY)Vertice edited update-
Methods inherited from class org.meteoinfo.layout.LayoutElement
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, setWidth
-
-
-
-
Method Detail
-
getGraphic
public Graphic getGraphic()
-
setGraphic
public void setGraphic(Graphic graphic)
-
isTitle
public boolean isTitle()
Get if is title- Returns:
- If is title
-
setIsTitle
public void setIsTitle(boolean istrue)
Set if is title- Parameters:
istrue- Boolean
-
isPaint
public boolean isPaint()
Get if paint- Returns:
- If paint
-
setIsPaint
public void setIsPaint(boolean istrue)
Set if paint- Parameters:
istrue- If paint
-
setLabelText
public void setLabelText(java.lang.String text)
Set label text- Parameters:
text- Label text
-
updateControlSize
public void updateControlSize()
Update control size
-
verticeEditUpdate
public void verticeEditUpdate(int vIdx, double newX, double newY)Vertice edited update- Parameters:
vIdx- Vertice indexnewX- New xnewY- New y
-
paint
public void paint(java.awt.Graphics2D g)
Description copied from class:LayoutElementPaint method- Specified by:
paintin classLayoutElement- Parameters:
g- Graphics2D
-
paintOnLayout
public void paintOnLayout(java.awt.Graphics2D g, PointF pageLocation, float zoom)Description copied from class:LayoutElementPaint on layout method- Specified by:
paintOnLayoutin classLayoutElement- Parameters:
g- Grahpics2DpageLocation- Page locationzoom- Zoom
-
paintGraphics
public void paintGraphics(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint graphics- Parameters:
g- Graphics2DpageLocation- page locationzoom- Zoom
-
moveUpdate
public void moveUpdate()
Description copied from class:LayoutElementMove update method- Specified by:
moveUpdatein classLayoutElement
-
resizeUpdate
public void resizeUpdate()
Description copied from class:LayoutElementResize update method- Specified by:
resizeUpdatein classLayoutElement
-
fireLocationChangedEvent
public void fireLocationChangedEvent()
- Overrides:
fireLocationChangedEventin classLayoutElement
-
-