ImageObserver, MenuContainer, Serializable, Accessible, IWebMapPanelpublic class MapLayout extends JPanel implements IWebMapPanel
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyContainer.AccessibleAWTContainerJComponent.AccessibleJComponentJPanel.AccessibleJPanelaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| 构造器 | 说明 |
|---|---|
MapLayout() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addActiveMapFrameChangedListener(IActiveMapFrameChangedListener listener) |
|
LayoutChart |
addChart(int left,
int top) |
Add a layout chart
|
void |
addElement(LayoutElement aElement) |
Add a layout element
|
void |
addElementSelectedListener(IElementSelectedListener listener) |
|
LayoutLegend |
addLegend(int left,
int top) |
Add a layout legend
|
void |
addMapFramesUpdatedListener(IMapFramesUpdatedListener listener) |
|
LayoutNorthArrow |
addNorthArrow(int left,
int top) |
Add a layout north arrow
|
LayoutScaleBar |
addScaleBar(int left,
int top) |
Add a layout scale bar
|
LayoutGraphic |
addText(String text,
int x,
int y) |
Add a text label element
|
LayoutGraphic |
addText(String text,
int x,
int y,
float fontSize) |
Add a text label element
|
LayoutGraphic |
addText(String text,
int x,
int y,
String fontName,
float fontSize) |
Add a text label element
|
void |
addUndoEditListener(IUndoEditListener listener) |
|
LayoutGraphic |
addWindArrow(int left,
int top) |
|
void |
addZoomChangedListener(IZoomChangedListener listener) |
|
void |
exportProjectXML(Document m_Doc,
Element parent) |
Export project XML content
|
void |
exportToPicture(String aFile) |
Export to a picture file
|
void |
exportToPicture(String fileName,
Integer dpi) |
Export to a picture file
|
void |
fireActiveMapFrameChangedEvent() |
|
void |
fireElementSelectedEvent() |
|
void |
fireMapFramesUpdatedEvent() |
|
void |
fireUndoEditEvent(UndoableEdit undoEdit) |
|
void |
fireZoomChangedEvent() |
|
LayoutMap |
getActiveLayoutMap() |
Get active layout map
|
MapFrame |
getActiveMapFrame() |
Get active map frame
|
LabelBreak |
getDefLabelBreak() |
Get default label break
|
PointBreak |
getDefPointBreak() |
Get default point break
|
PolygonBreak |
getDefPolygonBreak() |
Get default polygon break
|
PolylineBreak |
getDefPolylineBreak() |
Get default polyline break
|
List<LayoutGraphic> |
getLayoutGraphics() |
Get layout graphic list
|
List<LayoutMap> |
getLayoutMaps() |
Get layout map elements
|
List<LayoutLegend> |
getLegends() |
Get layout legend list
|
List<MapFrame> |
getMapFrames() |
Get map frames
|
FrmMeasurement |
getMeasurementForm() |
Get measurement form
|
MouseMode |
getMouseMode() |
Get mouse mode
|
Color |
getPageBackColor() |
Get page background color
|
Rectangle |
getPageBounds() |
Get page bounds
|
Color |
getPageForeColor() |
Get page foreground color
|
PointF |
getPageLocation() |
Get page location
|
PaperSize |
getPaperSize() |
Get paper size
|
List<LayoutElement> |
getSelectedElements() |
Get selected elements
|
LayoutGraphic |
getText(String text) |
Get a text graphic by text string
|
List<LayoutGraphic> |
getTexts() |
Get text graphic list
|
BufferedImage |
getViewImage() |
Get view image
|
int |
getWebMapZoom() |
Get web map layer zoom
|
float |
getZoom() |
Get zoom
|
boolean |
hasLegendElement() |
If has legend element
|
void |
importProjectXML(Element parent) |
Import project XML element
|
boolean |
isAntiAlias() |
Get if antialias
|
boolean |
isLandscape() |
Get if is landscape
|
boolean |
isLockViewUpdate() |
Get if lock view update
|
void |
loadProjectFile(String aFile) |
Load project file
|
void |
onScrollValueChanged(AdjustmentEvent e) |
|
void |
paintComponent(Graphics g) |
|
void |
paintGraphics() |
|
void |
paintGraphics(Graphics2D g) |
Paint graphics
|
void |
paintGraphicsOnLayout(Graphics2D g) |
Paint graphics on layout
|
void |
reDraw() |
Re draw function
|
void |
removeActiveMapFrameChangedListener(IActiveMapFrameChangedListener listener) |
|
void |
removeElement(LayoutElement aElement) |
Remove a layout element
|
void |
removeElementSelectedListener(IElementSelectedListener listener) |
|
void |
removeMapFramesUpdatedListener(IMapFramesUpdatedListener listener) |
|
void |
removeUndoEditListener(IUndoEditListener listener) |
|
void |
removeZoomChangedListener(IZoomChangedListener listener) |
|
PointF |
screenToPage(float screenX,
float screenY) |
Convert screen coordinate to page coordinate
|
Point |
screenToPage(int screenX,
int screenY) |
Convert screen coordinate to page coordinate
|
void |
setActiveMapFrame(MapFrame mapFrame) |
Set a map frame as active
|
void |
setAntiAlias(boolean istrue) |
Set if antialias
|
void |
setDefLabelBreak(LabelBreak lb) |
Set default label break
|
void |
setDefPointBreak(PointBreak pb) |
Set default point break
|
void |
setDefPolygonBreak(PolygonBreak pb) |
Set default polygon break
|
void |
setDefPolylineBreak(PolylineBreak pb) |
Set default polyline break
|
void |
setLandscape(boolean istrue) |
Set if is landscape
|
void |
setLockViewUpdate(boolean istrue) |
Set if lock view update
|
void |
setMapFrames(List<MapFrame> mfs) |
Set map frames
|
void |
setMeasurementForm(FrmMeasurement form) |
set measurement form
|
void |
setMouseMode(MouseMode mm) |
Set mouse mode
|
void |
setPageBackColor(Color c) |
Set page background color
|
void |
setPageBounds(Rectangle pb) |
Set page bounds
|
void |
setPageForeColor(Color c) |
Set page foreground color
|
void |
setPageLocation(PointF p) |
Set page location
|
void |
setPaperSize(int width,
int height) |
Set paper size
|
void |
setPaperSize(PaperSize ps) |
Set paper size
|
void |
setZoom(float zoom) |
Set zoom
|
void |
showMeasurementForm() |
Show measurment form
|
void |
updateMapFrameOrder() |
Update the order of the map frames
|
void |
updateMapFrames(List<MapFrame> mapFrames) |
Update map frames
|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updategetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIpublic void addMapFramesUpdatedListener(IMapFramesUpdatedListener listener)
public void removeMapFramesUpdatedListener(IMapFramesUpdatedListener listener)
public void fireMapFramesUpdatedEvent()
public void addActiveMapFrameChangedListener(IActiveMapFrameChangedListener listener)
public void removeActiveMapFrameChangedListener(IActiveMapFrameChangedListener listener)
public void fireActiveMapFrameChangedEvent()
public void addElementSelectedListener(IElementSelectedListener listener)
public void removeElementSelectedListener(IElementSelectedListener listener)
public void fireElementSelectedEvent()
public void addZoomChangedListener(IZoomChangedListener listener)
public void removeZoomChangedListener(IZoomChangedListener listener)
public void fireZoomChangedEvent()
public void addUndoEditListener(IUndoEditListener listener)
public void removeUndoEditListener(IUndoEditListener listener)
public void fireUndoEditEvent(UndoableEdit undoEdit)
public void onScrollValueChanged(AdjustmentEvent e)
public boolean isLockViewUpdate()
public void setLockViewUpdate(boolean istrue)
istrue - If lock view updatepublic MapFrame getActiveMapFrame()
public LayoutMap getActiveLayoutMap()
public boolean isLandscape()
public void setLandscape(boolean istrue)
istrue - public MouseMode getMouseMode()
public void setMouseMode(MouseMode mm)
mm - The mouse modepublic boolean isAntiAlias()
public void setAntiAlias(boolean istrue)
istrue - Booleanpublic Color getPageForeColor()
public void setPageForeColor(Color c)
c - Page foreground colorpublic Color getPageBackColor()
public void setPageBackColor(Color c)
c - Page background colorpublic PaperSize getPaperSize()
public void setPaperSize(PaperSize ps)
ps - Paper sizepublic void setPaperSize(int width,
int height)
width - Widthheight - Heightpublic List<LayoutMap> getLayoutMaps()
public List<LayoutElement> getSelectedElements()
public Rectangle getPageBounds()
public void setPageBounds(Rectangle pb)
pb - Page boundspublic PointF getPageLocation()
public void setPageLocation(PointF p)
p - Page locationpublic float getZoom()
public void setZoom(float zoom)
zoom - Zoompublic PointBreak getDefPointBreak()
public void setDefPointBreak(PointBreak pb)
pb - Default point breakpublic LabelBreak getDefLabelBreak()
public void setDefLabelBreak(LabelBreak lb)
lb - Default label breakpublic PolylineBreak getDefPolylineBreak()
public void setDefPolylineBreak(PolylineBreak pb)
pb - Default polyline breakpublic PolygonBreak getDefPolygonBreak()
public void setDefPolygonBreak(PolygonBreak pb)
pb - Default polygon breakpublic FrmMeasurement getMeasurementForm()
public void setMeasurementForm(FrmMeasurement form)
form - Measurement formpublic BufferedImage getViewImage()
public int getWebMapZoom()
IWebMapPanelgetWebMapZoom 在接口中 IWebMapPanelpublic void reDraw()
IWebMapPanelreDraw 在接口中 IWebMapPanelpublic void paintComponent(Graphics g)
paintComponent 在类中 JComponentpublic void paintGraphics()
public void paintGraphicsOnLayout(Graphics2D g)
g - Graphics2Dpublic void paintGraphics(Graphics2D g)
g - Graphics2Dpublic void exportToPicture(String aFile) throws FileNotFoundException, PrintException, IOException
aFile - File pathFileNotFoundExceptionPrintExceptionIOExceptionpublic void exportToPicture(String fileName, Integer dpi) throws FileNotFoundException, PrintException, IOException
fileName - File pathdpi - DPIFileNotFoundExceptionPrintExceptionIOExceptionpublic Point screenToPage(int screenX, int screenY)
screenX - Screen xscreenY - Screen ypublic PointF screenToPage(float screenX, float screenY)
screenX - Screen xscreenY - Screen ypublic void updateMapFrameOrder()
public void updateMapFrames(List<MapFrame> mapFrames)
mapFrames - The map framespublic void addElement(LayoutElement aElement)
aElement - The layout elementpublic void removeElement(LayoutElement aElement)
aElement - The layout elementpublic LayoutGraphic addText(String text, int x, int y)
text - The textx - Center xy - Center ypublic LayoutGraphic addText(String text, int x, int y, float fontSize)
text - The textx - Center xy - Center yfontSize - Font sizepublic LayoutGraphic addText(String text, int x, int y, String fontName, float fontSize)
text - The textx - Center xy - Center yfontName - Font namefontSize - Font sizepublic LayoutGraphic addWindArrow(int left, int top)
public LayoutLegend addLegend(int left, int top)
left - Lefttop - Toppublic LayoutScaleBar addScaleBar(int left, int top)
left - Lefttop - Toppublic LayoutNorthArrow addNorthArrow(int left, int top)
left - Lefttop - Toppublic LayoutChart addChart(int left, int top)
left - Lefttop - Toppublic List<LayoutGraphic> getLayoutGraphics()
public List<LayoutGraphic> getTexts()
public LayoutGraphic getText(String text)
text - Text stringpublic List<LayoutLegend> getLegends()
public void setActiveMapFrame(MapFrame mapFrame)
mapFrame - The map framepublic boolean hasLegendElement()
public void showMeasurementForm()
public void exportProjectXML(Document m_Doc, Element parent)
m_Doc - XML documentparent - Parent XML elementpublic void loadProjectFile(String aFile) throws ParserConfigurationException, SAXException, IOException
aFile - The project fileParserConfigurationExceptionSAXExceptionIOExceptionpublic void importProjectXML(Element parent)
parent - Parent elementCopyright © 2019. All rights reserved.