/** * A convenience method for <code>getRegion().isSubregion()</code>. * * @return {@code true} if the context represents a subregion, {@code false} * otherwise. */ @SuppressWarnings("all") public boolean isSubregion() { return getRegion().isSubregion(); }
registeredRegions.put(region.getName(), region);
} else if (clazz == null && registeredRegions.containsKey(parts[partIndex].s)) { Region r = registeredRegions.get(parts[partIndex].s); Component parent = r.isSubregion() ? c : c.getParent();
boolean subregion = context.getRegion().isSubregion(); if ((subregion && style.isOpaque(context)) || (!subregion && c.isOpaque())) {
boolean subregion = context.getRegion().isSubregion(); if ((subregion && style.isOpaque(context)) || (!subregion && c.isOpaque())) {
boolean subregion = context.getRegion().isSubregion(); if ((subregion && style.isOpaque(context)) || (!subregion && c.isOpaque())) {
boolean subregion = context.getRegion().isSubregion(); if ((subregion && style.isOpaque(context)) || (!subregion && c.isOpaque())) {
boolean subregion = state.getRegion().isSubregion();
/** * A convenience method to return where the foreground should be painted for * the Component identified by the passed in AbstractSynthContext. * * @param state the SynthContext representing the current state. * @param insets an Insets object to be filled with the painting insets. * * @return the insets object passed in and filled with the painting insets. */ public static Insets getPaintingInsets(SynthContext state, Insets insets) { if (state.getRegion().isSubregion()) { insets = state.getStyle().getInsets(state, insets); } else { insets = state.getComponent().getInsets(insets); } return insets; }
int cs = context.getComponentState(); if (!id.isSubregion() && cs == SynthConstants.ENABLED) { if (type == ColorType.BACKGROUND) { return c.getBackground();