public abstract class DBase extends DefaultMutableTreeNode implements Serializable, TDataConstants, TFileConstants, TGuiConstants
_0131_height
_0131_height
height_labelis the text that describes the property in the grid.
height_editcan the property be edited.
height_showis the property visible in the grid.
height_tooltipthe tooltip text for the property grid.
height_editorthe object used to edit the property.
height_validatorthe object used to validate the proerty value.
height_updaterthe name of the method to call after the property has changed.
EMPTY_ENUMERATION
ADD_A_CHILD, ADD_CLOSE_HANDLER, ADD_DRAW_HANDLER, ADD_HANDLER, ADD_KEY_HANDLER, ADD_MOUSE_HANDLER, ADD_POST_HANDLER, ADD_PRE_HANDLER, CLOSE_ACTION, CODE_ANY, CODE_GWINDOW_CLOSE, CODE_GWINDOW_DRAW, CODE_GWINDOW_KEY, CODE_GWINDOW_MOUSE, CODE_GWINDOW_PEE, CODE_GWINDOW_POST, CODE_NO_EVENT_PARAM, CODE_TAG, COLLAPSED, COLLAPSIBLE, COLOUR_SCHEME, COMPONENT_NAME, COMPONENT_NAME_0, CTOR_DROPLIST, CTOR_GBUTTON, CTOR_GCHECKBOX, CTOR_GCUSTOMSLIDER, CTOR_GKNOB, CTOR_GLABEL, CTOR_GOPTION, CTOR_GOPTIONGROUP, CTOR_GPANEL, CTOR_GPASSWORD1, CTOR_GPASSWORD2, CTOR_GSLIDER, CTOR_GSLIDER2D, CTOR_GSTICK, CTOR_GTEXTAREA, CTOR_GTEXTFIELD, CTOR_GTIMER, CTOR_IMG_BTN_XYF, CTOR_IMG_BTN_XYFM, CTOR_IMG_BTN_XYWHF, CTOR_IMG_BTN_XYWHFM, CTOR_IMG_TOG_BTN_0, CTOR_IMG_TOG_BTN_1, CTOR_IMG_TOG_BTN_2, CTOR_SET_LIST, CTOR_SPAD, CTOR_WINDOW, CURSOR_CHANGER, DRAGGABLE, EVENT_TYPE_TIME, FIRST_CHAR_INVALID, H_ALIGN_2, H_ALIGN_3, HAS_A_SPACE, INDENT, INIT_DELAY_TIMER, INVALID_CHAR, INVALID_LENGTH, KNOB_CTRL, LOOP_WINDOW, MAKE_VERT, METHOD_END, METHOD_START_0, METHOD_START_1, ON_CLOSE, PWORD_SIZE, RENDERER, SBAR_POLICY, SCALE, SEL_OPTION, SET_ACTION_ON_CLOSE, SET_CONTROLLER, SET_CURSOR_OFF, SET_DRAG_SENSITIVITY, SET_EASING, SET_G4P_MESSAGES, SET_ICON, SET_ICON_ALIGN, SET_LIMITS, SET_LOCAL_COLOR, SET_MOUSE_OVER_ON, SET_NBR_TICKS, SET_OPAQUE, SET_OVER_ARC_ONLY, SET_OVER_GRIP_ONLY, SET_PROMPT_TEXT, SET_SHOW_ARC_ONLY, SET_SHOW_LIMITS, SET_SHOW_TICKS, SET_SHOW_TRACK, SET_SHOW_VALUE, SET_SKETCH_COLOR, SET_SKETCH_TITLE, SET_STICK_MODE, SET_STICK_TICKS, SET_TEXT, SET_TEXT_ALIGN, SET_TEXT_BOLD, SET_TEXT_ITALIC, SET_TEXT_ORIENT, SET_TURN_RANGE, SET_VALUE_TYPE, SET_X_LIMITS, SET_Y_LIMITS, SK_SIZE, SLIDER_SKIN, START_TIMER_0, START_TIMER_1, STICK_TYPE, TEXT_ORIENT, TIME, UNAVAILABLE, V_ALIGN, VALID, VALUE_TYPE, WIN_DRAW, WIN_KEY, WIN_MOUSE, WIN_POST, WIN_PRE
CONFIG_FOLDER, G4P_LIB, G4P_TOOL_DATA_FOLDER, GUI_MODEL_FILE, GUI_MODEL_FILE_FILTER, GUI_MODEL_FILENAME, GUI_PDE_BASE, PDE_TAB_NAME, PDE_TAB_PRETTY_NAME, SEP, TAB0_PDE_BASE
BOTTOM, CENTER, csdrBack, csdrBorder, csdrSlideBack, csdrSlideBorder, csdrThumb, dashed, DASHED_EDGE_COLOR, displayFont, HANDLE_SIZE, heavyStroke, ICON_ONLY, LEFT, MIDDLE, needleStroke, OVER_COMP, OVER_DIAG, OVER_HORZ, OVER_NONE, OVER_VERT, RIGHT, selStroke, stdStroke, TEXT_AND_ICON, TEXT_ONLY, TOP, winBack, winEdge
Constructor and Description |
---|
DBase() |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
AffineTransform af,
DBase selected) |
void |
drawSelector(Graphics2D g)
Draw a selector if the control is the one being edited.
|
String |
get_name() |
BufferedImage |
getImageFromDataFolder(String filename)
Will return null if no image was loaded.
|
int |
getSize()
Get the actual area of the control
|
CtrlPropModel |
getTableModel()
Get the property model for this component.
|
boolean |
isMoveable() |
void |
isOver(MutableDBase m,
int x,
int y)
Determines whether a position is over the control and if it is whether it is
over the body of the control or a resize handle.
|
boolean |
isResizeable() |
boolean |
isSelectable() |
void |
make_creator(ArrayList<String> lines,
DBase parent,
String window)
Recursive function to first get the creator code for this
component then repeat for any children.
|
void |
make_declaration(ArrayList<String> lines)
Recursive function to get the variable declaration.
|
void |
make_event_method(ArrayList<String> lines)
Recursive function to get the event methods for all controls
|
void |
make_window_loop(ArrayList<String> lines)
Make windows loop
|
void |
makeTableModel() |
void |
set_event_name(String e_name) |
void |
set_name(String name) |
String |
show()
Display details - used for debugging only
|
String |
toString()
Use this to return the name of the component
|
void |
updatedInGUI()
Called when the control has been changed in the GUI.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public String componentClass
public static int globalColorSchemeID
public static String globalColorSchemeName
public static Color[] globalJpalette
public Integer[] id
public String _0010_name
public String name_label
public String name_tooltip
public Boolean name_edit
public Boolean name_show
public Validator name_validator
public int _0820_x
public String x_label
public String x_tooltip
public Boolean x_edit
public Boolean x_show
public Validator x_validator
public int _0821_y
public String y_label
public String y_tooltip
public Boolean y_edit
public Boolean y_show
public Validator y_validator
public int _0826_width
public String width_label
public String width_tooltip
public Boolean width_edit
public Boolean width_show
public Validator width_validator
public int _0827_height
public String height_label
public String height_tooltip
public Boolean height_edit
public Boolean height_show
public Validator height_validator
public String _0030_eventHandler
public String eventHandler_label
public String eventHandler_tooltip
public Boolean eventHandler_edit
public Boolean eventHandler_show
public Validator eventHandler_validator
public void make_event_method(ArrayList<String> lines)
lines
- public void make_declaration(ArrayList<String> lines)
lines
- public void make_window_loop(ArrayList<String> lines)
lines
- public void make_creator(ArrayList<String> lines, DBase parent, String window)
lines
- parent
- the control that has this as a child default = nullwindow
- the window responsible for drawing this control default = "this"public String show()
public String toString()
toString
in class DefaultMutableTreeNode
public void draw(Graphics2D g2, AffineTransform af, DBase selected)
public void updatedInGUI()
public void drawSelector(Graphics2D g)
g
- public void isOver(MutableDBase m, int x, int y)
m
- x
- y
- public void set_name(String name)
public void set_event_name(String e_name)
public String get_name()
public boolean isSelectable()
public boolean isResizeable()
public boolean isMoveable()
public void makeTableModel()
public CtrlPropModel getTableModel()
public BufferedImage getImageFromDataFolder(String filename)
filename
- public int getSize()
Processing tool G4PTool by Peter Lager. (C) 2015