public class PolyDesigner extends ReportComponent<PolyWorkSheet,PolyElementCasePane,BlockCreator> implements ScrollRulerComponent
限定符和类型 | 类和说明 |
---|---|
static class |
PolyDesigner.SelectionType
选中的类型--1.什么都没选中2.选中一个聚合块内部的内容3.选中聚合块本省
|
限定符和类型 | 字段和说明 |
---|---|
javax.swing.JComponent |
polyArea |
elementCasePane
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
PolyDesigner(PolyWorkSheet report) |
限定符和类型 | 方法和说明 |
---|---|
void |
addBlockCreator(BlockCreator creator)
增加组件
|
void |
addEditor(BlockEditor currentEditor)
增加组件
|
void |
addSelectionChangeListener(SelectionListener selectionListener)
添加选中的SelectionListener
|
java.awt.Point |
calculateScroll(int oldmax,
int max,
int newValue,
int oldValue,
int visi,
int orientation)
计算滚动条的值和max
|
boolean |
containsBlocks(TargetComponent targetComponent)
是否含有聚和报表块
|
void |
copy()
复制
|
AuthorityEditPane |
createAuthorityEditPane()
权限编辑状态
|
EditingState |
createEditingState()
创建正在编辑的状态.
|
boolean |
cut()
剪切
|
boolean |
delete()
删除
|
AddedData |
getAddedData() |
AddingData |
getAddingData() |
double |
getAreaLocationX()
获取当前聚合报表区域左上角x坐标
|
double |
getAreaLocationY()
获取当前聚合报表区域左上角y坐标
|
BlockCreator |
getDefaultSelectElement() |
int |
getDesignerHeight() |
int |
getDesignerWidth() |
javax.swing.JPanel |
getEastDownPane() |
javax.swing.JPanel |
getEastUpPane() |
TemplateBlock |
getEditingTarget() |
javax.swing.JScrollBar |
getHorizontalScrollBar() |
int |
getHorizontalValue() |
int |
getMenuState() |
int |
getMinHeight() |
int |
getMinWidth() |
javax.swing.JPanel |
getPloyAreaPane() |
int |
getResolution() |
short |
getRulerLengthUnit() |
BlockCreator |
getSelection() |
PolyDesigner.SelectionType |
getSelectionType() |
javax.swing.JScrollBar |
getVerticalScrollBar() |
int |
getVerticalValue() |
boolean |
intersectsAllBlock(BlockCreator creator)
检测指定块是否与其他的块有重叠区域
|
boolean |
intersectsAllBlock(TemplateBlock block)
检测指定块是否与其他的块有重叠区域
|
boolean |
intersectsAllBlock(UnitRectangle rec,
java.lang.String blockName)
检测指定块是否与其他的块有重叠区域
|
boolean |
isChooseBlock()
是否选中聚合块本身
|
boolean |
isChooseChartInner()
是否选中图表聚合块内部
|
boolean |
isSelectedECBolck()
选中的是否是报表块
|
MenuDef[] |
menus4Target()
目标的菜单
|
void |
move(int x,
int y)
移动
|
void |
noAuthorityEdit()
不支持权限编辑
|
void |
paintComponent(java.awt.Graphics g) |
boolean |
paste()
黏贴
|
void |
removeEditor(BlockEditor currentEditor)
移除组件
|
void |
removeSelectionChangeListener(SelectionListener selectionListener)
移除选中的SelectionListener
|
void |
setAddedData(AddedData addedData) |
void |
setAddingData(AddingData addData) |
void |
setChooseType(PolyDesigner.SelectionType type) |
void |
setHorizontalScrollBar(javax.swing.JScrollBar horScrollBar)
Sets horizontal scroll bar
|
void |
setHorizontalValue(int horizontalValue) |
void |
setResolution(int resolution) |
void |
setSelection(BlockCreator selectElement)
选中一个聚合快
|
void |
setTarget(PolyWorkSheet t) |
void |
setVerticalScrollBar(javax.swing.JScrollBar verScrollBar)
Sets vertical scroll bar
|
void |
setVerticalValue(int verticalValue) |
ShortCut[] |
shortcut4TemplateMenu()
模板的子菜单
|
void |
startEditing(java.lang.String blockName)
开始编辑
|
void |
stopAddingState()
停止编辑
|
void |
stopEditing()
停止编辑
|
javax.swing.JComponent[] |
toolBarButton4Form()
表单的工具按钮
|
ToolBarDef[] |
toolbars4Target()
模板的工具
|
void |
updateJSliderValue()
更新JSliderPane
|
void |
updateUI() |
cancelFormat, getEditingElementCasePane, getTemplateReport, shortCuts4Authority
addTargetModifiedListener, fireTargetModified, getTarget, getToolBarMenuDockPlus, removeTargetModifiedListener
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, update
add, 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, validateTree
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, getPeer, 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, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
repaint
public PolyDesigner(PolyWorkSheet report)
public void setResolution(int resolution)
public int getResolution()
public void updateUI()
updateUI
在类中 javax.swing.JComponent
public boolean containsBlocks(TargetComponent targetComponent)
targetComponent
- 目标组件public void setTarget(PolyWorkSheet t)
setTarget
在类中 TargetComponent<PolyWorkSheet>
public javax.swing.JPanel getPloyAreaPane()
public void addEditor(BlockEditor currentEditor)
currentEditor
- 组件public void removeEditor(BlockEditor currentEditor)
currentEditor
- 组件public AuthorityEditPane createAuthorityEditPane()
createAuthorityEditPane
在类中 TargetComponent<PolyWorkSheet>
public void paintComponent(java.awt.Graphics g)
paintComponent
在类中 javax.swing.JComponent
public void addBlockCreator(BlockCreator creator)
creator
- 组件public AddingData getAddingData()
public void setAddingData(AddingData addData)
addData
- public AddedData getAddedData()
public void setAddedData(AddedData addedData)
addedData
- public TemplateBlock getEditingTarget()
public BlockCreator getSelection()
getSelection
在接口中 Selectedable<BlockCreator>
public void setSelection(BlockCreator selectElement)
setSelection
在接口中 Selectedable<BlockCreator>
public boolean isSelectedECBolck()
public void noAuthorityEdit()
public int getHorizontalValue()
getHorizontalValue
在接口中 ScrollRulerComponent
public void setHorizontalValue(int horizontalValue)
setHorizontalValue
在接口中 ScrollRulerComponent
horizontalValue
- public int getVerticalValue()
getVerticalValue
在接口中 ScrollRulerComponent
public void setVerticalValue(int verticalValue)
setVerticalValue
在接口中 ScrollRulerComponent
verticalValue
- public short getRulerLengthUnit()
getRulerLengthUnit
在接口中 ScrollRulerComponent
public void copy()
copy
在类中 TargetComponent<PolyWorkSheet>
public boolean paste()
paste
在类中 TargetComponent<PolyWorkSheet>
public void stopAddingState()
public boolean delete()
public boolean cut()
cut
在类中 TargetComponent<PolyWorkSheet>
public void move(int x, int y)
move
在类中 java.awt.Component
x
- 横坐标y
- 纵坐标public void stopEditing()
stopEditing
在类中 TargetComponent<PolyWorkSheet>
public javax.swing.JScrollBar getVerticalScrollBar()
public void setVerticalScrollBar(javax.swing.JScrollBar verScrollBar)
public javax.swing.JScrollBar getHorizontalScrollBar()
public void setHorizontalScrollBar(javax.swing.JScrollBar horScrollBar)
public int getMinWidth()
getMinWidth
在接口中 ScrollRulerComponent
public int getMinHeight()
getMinHeight
在接口中 ScrollRulerComponent
public int getDesignerHeight()
getDesignerHeight
在接口中 ScrollRulerComponent
public int getDesignerWidth()
getDesignerWidth
在接口中 ScrollRulerComponent
public void startEditing(java.lang.String blockName)
blockName
- 聚合块名称public EditingState createEditingState()
createEditingState
在类中 TargetComponent<PolyWorkSheet>
public ToolBarDef[] toolbars4Target()
toolbars4Target
在类中 TargetComponent<PolyWorkSheet>
public javax.swing.JComponent[] toolBarButton4Form()
toolBarButton4Form
在类中 TargetComponent<PolyWorkSheet>
public ShortCut[] shortcut4TemplateMenu()
shortcut4TemplateMenu
在类中 ReportComponent<PolyWorkSheet,PolyElementCasePane,BlockCreator>
public int getMenuState()
getMenuState
在类中 TargetComponent<PolyWorkSheet>
public MenuDef[] menus4Target()
menus4Target
在类中 TargetComponent<PolyWorkSheet>
public BlockCreator getDefaultSelectElement()
public void updateJSliderValue()
ReportComponent
public PolyDesigner.SelectionType getSelectionType()
public void setChooseType(PolyDesigner.SelectionType type)
type
- public javax.swing.JPanel getEastUpPane()
getEastUpPane
在类中 TargetComponent<PolyWorkSheet>
public javax.swing.JPanel getEastDownPane()
getEastDownPane
在类中 TargetComponent<PolyWorkSheet>
public boolean isChooseBlock()
public boolean isChooseChartInner()
public void addSelectionChangeListener(SelectionListener selectionListener)
addSelectionChangeListener
在接口中 Selectedable<BlockCreator>
selectionListener
- 选中的listenerpublic void removeSelectionChangeListener(SelectionListener selectionListener)
removeSelectionChangeListener
在接口中 Selectedable<BlockCreator>
selectionListener
- 选中的listenerpublic java.awt.Point calculateScroll(int oldmax, int max, int newValue, int oldValue, int visi, int orientation)
calculateScroll
在接口中 ScrollRulerComponent
oldmax
- 之前最大值max
- 当前最大值newValue
- 当前valueoldValue
- 之前valuevisi
- designer的大小orientation
- 滚动条方向public double getAreaLocationX()
public double getAreaLocationY()
public boolean intersectsAllBlock(BlockCreator creator)
creator
- 指定的块编辑器public boolean intersectsAllBlock(TemplateBlock block)
block
- 指定的块public boolean intersectsAllBlock(UnitRectangle rec, java.lang.String blockName)
rec
- 指定的块区域blockName
- 指定的块名称