org.boxed_economy.components.cell
クラス CellFieldPanel

java.lang.Object
  拡張java.awt.Component
      拡張java.awt.Container
          拡張javax.swing.JComponent
              拡張javax.swing.JPanel
                  拡張org.boxed_economy.components.cell.CellFieldPanel
すべての実装インタフェース:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public abstract class CellFieldPanel
extends javax.swing.JPanel

CellSpaceの情報を表示するためのパネルです。各コンポーネントによって このクラスを継承してCellSpace描画パネルを作成してください。 プレゼンテーションコンポーネントではありません。

バージョン:
$Id: CellFieldPanel.java,v 1.1 2004/03/21 12:07:47 macchan Exp $
作成者:
Boxed Economy Project & Numeric Co,Ltd.
関連項目:
直列化された形式

入れ子クラスの概要
 
クラス javax.swing.JPanel から継承した入れ子クラス
javax.swing.JPanel.AccessibleJPanel
 
クラス javax.swing.JComponent から継承した入れ子クラス
javax.swing.JComponent.AccessibleJComponent
 
クラス java.awt.Container から継承した入れ子クラス
java.awt.Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承した入れ子クラス
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
フィールドの概要
 
クラス javax.swing.JComponent から継承したフィールド
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
インタフェース java.awt.image.ImageObserver から継承したフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
CellFieldPanel()
           
 
メソッドの概要
protected abstract  void drawAgents(java.awt.Graphics g)
          Agentを描画します。
protected  void drawBackGround(java.awt.Graphics g)
          背景を描画します。
protected  void drawBorder(java.awt.Graphics g)
          格子を描画します。
 void drawField()
          外からこのパネルを描画するために呼ばれるメソッドです。
protected  void drawOthers(java.awt.Graphics g)
          その他relation等を描画します。
 java.awt.Color getBgColor()
          Returns the bgColor.
 int getCellSize()
          Returns the cellSize.
 CellSpace getCellSpace()
          Returns the cellSpace.
 java.awt.Color getForeColor()
          Returns the foreColor.
 boolean isValidData()
          Returns the isValidData.
 boolean isWriteBorder()
          Returns the writeBorder.
protected  void paintComponent(java.awt.Graphics g)
           
 void setBgColor(java.awt.Color bgColor)
          Sets the bgColor.
 void setCellSize(int cellSize)
          Sets the cellSize.
 void setCellSpace(CellSpace cellSpace)
          Method setCellSpace.
 void setForeColor(java.awt.Color foreColor)
          Sets the foreColor.
 void setIsValidData(boolean isValidData)
          Sets the isValidData.
 void setWriteBorder(boolean writeBorder)
          Sets the writeBorder.
 
クラス javax.swing.JPanel から継承したメソッド
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
クラス javax.swing.JComponent から継承したメソッド
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
クラス java.awt.Container から継承したメソッド
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
クラス java.awt.Component から継承したメソッド
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

CellFieldPanel

public CellFieldPanel()
メソッドの詳細

drawField

public final void drawField()
外からこのパネルを描画するために呼ばれるメソッドです。


paintComponent

protected void paintComponent(java.awt.Graphics g)
関連項目:
JComponent.paintComponent(Graphics)

drawBackGround

protected void drawBackGround(java.awt.Graphics g)
背景を描画します。デフォルトでは設定した背景色で塗りますが、 コンポーネント作成者がオーバーライドできます。

パラメータ:
g -

drawBorder

protected void drawBorder(java.awt.Graphics g)
格子を描画します。デフォルトでは設定した色で格子を描画しますが、 コンポーネント作成者がオーバーライドできます。


drawAgents

protected abstract void drawAgents(java.awt.Graphics g)
Agentを描画します。コンポーネント作成者がオーバーライドしてください。

パラメータ:
g -

drawOthers

protected void drawOthers(java.awt.Graphics g)
その他relation等を描画します。必要があればコンポーネント作成者がオーバーライドしてください。

パラメータ:
g -

setCellSpace

public void setCellSpace(CellSpace cellSpace)
Method setCellSpace.

パラメータ:
cellSpace -

getCellSpace

public CellSpace getCellSpace()
Returns the cellSpace.

戻り値:
CellSpace

getCellSize

public int getCellSize()
Returns the cellSize.

戻り値:
int

setCellSize

public void setCellSize(int cellSize)
Sets the cellSize.

パラメータ:
cellSize - The cellSize to set

getBgColor

public java.awt.Color getBgColor()
Returns the bgColor.

戻り値:
Color

getForeColor

public java.awt.Color getForeColor()
Returns the foreColor.

戻り値:
Color

setBgColor

public void setBgColor(java.awt.Color bgColor)
Sets the bgColor.

パラメータ:
bgColor - The bgColor to set

setForeColor

public void setForeColor(java.awt.Color foreColor)
Sets the foreColor.

パラメータ:
foreColor - The foreColor to set

isWriteBorder

public boolean isWriteBorder()
Returns the writeBorder.

戻り値:
boolean

setWriteBorder

public void setWriteBorder(boolean writeBorder)
Sets the writeBorder.

パラメータ:
writeBorder - The writeBorder to set

isValidData

public boolean isValidData()
Returns the isValidData.

戻り値:
boolean

setIsValidData

public void setIsValidData(boolean isValidData)
Sets the isValidData.

パラメータ:
isValidData - The isValidData to set